Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Service Bus speed

When I try sending 1000 simple messages to my Azure Service Bus queue from a simple console application (not in debug mode), it takes 90 seconds with http mode.

With standard nettcp mode it takes 70 seconds.

Is the speed everyone else gets also? I expected it to go faster, but maybe this is correct?

like image 509
Martin Avatar asked Oct 12 '12 09:10

Martin


1 Answers

Are you doing all of this in the same thread? Try using multiple Threads/Tasks do submit the messages in parallel. Also, if you want a higher throughput you can try making some changes to your app.config:

  <system.net>
    <settings>
      <servicePointManager expect100Continue="false" useNagleAlgorithm="false"/>
    </settings>
    <connectionManagement>
      <add address = "*" maxconnection = "48" />
    </connectionManagement>
  </system.net>

Finally, try executing the console app from within a Windows Azure VM (preferably the same datacenter). This will rule out any influence of your WAN connection.

like image 191
Sandrino Di Mattia Avatar answered Oct 05 '22 12:10

Sandrino Di Mattia