I am using Azure ServiceBus to process items sent by multiple clients.
I am testing the part which receives these messages and have run 2 listeners side by side. However if I submit 2 items to the queue. Only 1 listener ever works and the second doesn't pick up the other item.
I have however tried running 2 listeners on different machines and they both process the 2 items pushed to the queue.
Is the issue with running multiple listeners on the same machine and if so, what am i doing wrong and how do i fix?
Thanks for your time.
Dan
I create a console application to receive messages from Service Bus queue, and then I open and run program twice on my machine, both of queue clients/receivers could receive and process messages from same queue.
Call OnMessage method:
Output:
Call Receive method:
Output:
If possible, please share us your code, and then we will reproduce the issue based on your code.