I'm building a demo that syncs users' calendars with my database. Each time a user sets up their account, they can sync all their events from Google Calendar. I can achieve this using workflows. First, I would obtain their credentials, then fetch their accounts, and finally retrieve their events. If a user has, for example, 1,000 calendar events, I want to process these in batches of 100 per loop. For each loop, I would call workflow.start to initiate the flow.
However, I am confused about a few things: First, how does maximum parallelism apply in this scenario? Second, is a workflow or workpool more suitable here? Third, if a workpool is preferable, how do you implement batching? Lastly, if you are batching in a workpool, how would you apply maximum parallelism?