To limit the number of open connections to our database I need to limit the number of simultaneous function calls.
MassTransit has the UseConcurrentMessageLimit which apparently restricts the number of messages each host instance will process simultaneously, is this the same as maxConcurrentCalls from host.json?
The Azure portal has the App Scale Out -> Maximum Scale Out Limit which restricts the number of hosts that will be created.
To limit the number of simultaneous function calls to n should I set Maximum Scale Out Limit * UseConcurrentMessageLimit or maxCurrentCalls = n?
Can I achieve this with one parameter in MassTransit or the Azure Functions configuration?