Want to do ~12k units of work: child workflows or activities?

Hello, for about ~12k (and growing) accounts in our system I want to do the following on a monthly basis:

  1. Generate a personalized PDF
  2. Email it to the user

Obviously I’ll be using a schedule. However, I’m unclear if this is a use case to use 12k child workflows or whether it’s best to do 12k activities under a single workflow.

One thing that added to my confusion is that the docs that say not to spawn more than 1,000 child workflows. However, the docs also say (I think) that one cannot create more than 2,000 activities.

I would create 12k schedules.

Oh interesting; I’ll purse that. Thank you @maxim.

Just so that I understand, I would populate all 12k schedules initially and then create/delete schedules as new/existing customers opt in/out of this monthly email?

Yes, you can even implement a workflow to synchronize the list of customers with the list of schedules.

1 Like