This evening we were observing extremely slow queuing time. Our trace data told us that the line
await queueClient.SendAsync(message);
was taking 45-60 seconds. This was happening for two queues which had been around for a long time. They hardly ever have more then 1-2 records and we use a web job with a ServiceBusTrigger to pull off stuff. We are putting a simple POCO on the queue. There was another queue which was queueing quickly, so for lack of any other idea I deleted the two which were being troublesome. When the code recreated them (as it was built to do) they started queueing in less than a second. Nothing else changed, expect the deletion of the old queue and the recreation of the old queue. I used the service bus explorer before and after (I wish I had taken a screenshot) and nothing changed as far as I can tell.
Any idea why such a slowdown could occur or why recreating cleared it up? We doing such low volumn stuff as it's just a pilot system.
Thanks!
Dave