Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Strange PeekBatch Behaviour

$
0
0

I have an Azure Service Bus setup with 2 queues in it:



I then have some code which creates a client using a connection string and the accesses the Queue Name by a web config string. So, basically, on release my code will access the datasync queue, whilst in development it will access the datasync_dev queue - everything else is exactly the same.

I only have a few messages in the queue (I certainly don't need 16 GB in dev! :)), but I have a web page which uses the following command to display the messages in the queue:

Client.PeekBatch(100).ToList();

At the moment, the Live version shows 9 messages (15 in the queue).

In development, it will never show more than 1 (45 in the queue).

When I debug the worker role, there are clearly messages in the queue as the Client.OnMessage() regularly fires with development messages.

Why won't PeekBatch see all of the messages in the queue?


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>