Azure Service Bus Scalability

I am trying to understand how can I make Azure Service Bus Topic to be scaleable to handle >10,000 requests/second from more than 50 different clients. I found this article at Microsoft - http://msdn.microsoft.com/en-us/library/windowsazure/hh528527.aspx. This provides lot of good input to scale azure service bus like creating multiple message factories, sending and receiving asynchronously, doing batch send/receive.

But all these input are from the publisher and subscriber client perspective. What if the node running the Topic can not handle the huge number of transactions? How do I monitor that? How do I have the Topic running on multiple nodes? Any input on that would be helpful.

Also wondering if any one has done any capacity testing with Topic/Queue and I am eager to see those results...

Thanks, Prasanna


If you need 10K or 100K or 1M or more requests per seconds take a look at what's being done on the highway. More traffic, more lanes.

You can get effectively arbitrary flow rates out of Service Bus by partitioning your traffic across multiple entities. Service Bus gives a number of assurances about reliability, e.g. that we don't lose messages once we took them from you or that we assign gapless sequence numbers, and that has throughput impact on the individual entities like a single Topic. That's exactly like a highway lane just being able to deal with X cars/hour. Make more lanes.


Since these replies, Microsoft has released a ton of new capability.

  1. Azure Auto-Scale can monitor the messages in a queue (or CPU load) and start or stop instances to maintain that target.
  2. Service Bus introduced Partitioned Queue's (& topics). This lets you send messages over multiple queues but they look like a single queue to you API. Dramatically increasing the throughput of a Queue.

Before you do that I'd recommend you try:-

  • Async & Batched writes to the queue.
  • Change the Prefetch parameter on the Reads.
  • Also look at Receive.OnMessage() to ensure you get the messages the millisec they are available.

This will improves your perf from ~5 messages / sec to many 100's or 1,000's per sec.