简体   繁体   中英

Azure: create O365 events from MySQL database

I want to create Office 365 calendar events which are in a MySQL table (on-premise server).

Currently, I'm planning to do it with Azure Data Factory and a Functions App. I copying the MySQL Data from MySQL table to Azure Table Storage (this is working great).

After that, I want to create the event entries via Azure Function (HTTP Trigger, Looping all storage entities and creating calendar event via Graph API) but there are over 10,000 events in that table. The function would probably run too long.

Is there a better way to create these events? O365 can only be used as a source in Azure Data Factory. Maybe a batch in Azure Data Factory is better than a function? Should I run the Function, not for all events? For every single event (table insert trigger)? Are there other/better options to do that in Azure?

If you are already writing to table storage then make a Table Trigger and process one record at a time. So then all your 10000 event will be processed in multiple threads. But then you probably will need to think about write limits to calendar.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM