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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With