Is there a way to control the maximum degree of parallelism when implementing the fan out/fan in pattern on Azure Durable Functions?
I'm currently implementing this pattern to perform a data loading process but I'm hitting database limits on DTU's because of the number of operations is too high for the database to handle.
The solution I'm thinking about involves using the following properties:
- maxConcurrentActivityFunctions
- maxConcurrentOrchestratorFunctions
of the (host.json) file in conjuntion with:
The first 2 properties should limit the number of parallel function executions per host, and the WEBSITE_MAX_DYNAMIC_APPLICATION_SCALE_OUT should limit the number of hosts.
Would this be a correct approach for limiting the max degree of parallelism?