I have a scenario where I receive messages from service bus to trigger a workflow. This workflow does some processing but ultimately inserts some data into SQL DB. When 100,000's of messages appear at once, the DB gets overwhelmed.
Is there a way of restricting the number of concurrent instances?
Here is my test
This receives a non session message, has a 2 minute delay, then a compose just to ad an end activity.
If I submit 10 messages, enable the workflow, immediately all 10 messages cause 10 workflows to activate.
Here is my host.json file