Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Max number of sessions per entity in Azure Service Bus

Azure Service Bus allows to use sessioned entities(queues and topics), we use them to keep batching processing by the same consumer(if we send a batch from producer, it must be processed by the same consumer service). I cannot find any recommendations about max allowed sessions number per entity, we have 4 sessions for 1000 000 messages for now and I am wondered if we can increase the number. If we can, what is max possible value for my case?

Short info about my process: * 1 000 000 messages to be sent to ASB entity * Batch size is 100 messages * Number of sessions is 4 * ASB entities have enabled sessions and partitioning

Thank you

like image 337
Anuar Nurmakanov Avatar asked Oct 26 '25 01:10

Anuar Nurmakanov


1 Answers

Azure Service Bus quotas documentation doesn't spell out a limit on number of concurrent session you can have.

You are limitted by two factors:

  1. The number of concurrent connecitons on a namespace (5,000 for AMQP and 1,000 for SBMP)
  2. Number of concurrent receive request per entity (5,000) you can have.

As long as you don't exceed those quotas, you should be able to scale out your receiver to handle more sessions.

like image 108
Sean Feldman Avatar answered Oct 27 '25 19:10

Sean Feldman