locked
Azure Service Bus - estimation of the number of brokered connection RRS feed

  • Question

  • Hello everyone!

    I was trying to estimate no. of brokered connections while arrive at pricing for Service Bus (STANDARD TIER) for the following scenario:

    • There are 32 clients sending messages to/ receiving messages from a Service Bus queue through AMQP protocol.
    • Each client connects to the Service Bus several times in an hour, with duration of a single connection (including timeout) ~= 1 minute

    I understand from documentation that Microsoft charges based on the peak number of concurrent brokered connections

    Microsoft charges for the peak number of concurrent brokered connections that exceed the included quantity (1,000 in the standard and premium tier).

    Now for one month, what will be the no. of brokered connections?

    • is it 32? - as, at any given point of time, there are only 32 peak live connections and based on the formula given in Pricing document. Therefore total connections being 32 connections * 24 hours per day * 30.5 days / 730 = 32
    • is it 1920? - as, in an hour, each client connects to Service Bus 60 times (no. of minutes in an hour [=60] / duration of a single connection [=1]). Therefore, total connections being (32 * 60) connections * 24 hours per day * 30,5 days / 730 = 1920.

    Please help me understand how to calculate the no. of brokered connections in this scenario!

    Thanks,

    Lakshmi Kanthan.

    Tuesday, May 5, 2020 7:02 PM

Answers

  • There is an example of such a calculation in the pricing page's FAQ section -
    image

    So, for you case, the calculation would be something like this

    32 * ( ( [time per connection (1 min in your case)] * [number of times in an hour] * [number of hours in a day] ) / 60 ) * [number of days it runs] / 730
    • Marked as answer by dwaipayana23 Wednesday, May 6, 2020 10:46 AM
    Wednesday, May 6, 2020 7:08 AM

All replies

  • There is an example of such a calculation in the pricing page's FAQ section -
    image

    So, for you case, the calculation would be something like this

    32 * ( ( [time per connection (1 min in your case)] * [number of times in an hour] * [number of hours in a day] ) / 60 ) * [number of days it runs] / 730
    • Marked as answer by dwaipayana23 Wednesday, May 6, 2020 10:46 AM
    Wednesday, May 6, 2020 7:08 AM
  • Hi Pramod,

    Thanks for the clarification! I did go through the examples provided in the Pricing FAQs. I estimated 32 based on those eamples. However, I was not sure about creating multiple short-lived connections (duration ~ 1 minute). Hence, I wanted to clarify!

    Thanks! 

    Wednesday, May 6, 2020 10:49 AM