A case where senders are sending messages to a Queue, for example message1
is sent by sender1
to a queue. Now a consumer named consumer1
connects to queue and reads the message message1
.
There is another consumer named consumer2
. But the message message1
is already consumed by consumer1
so it will not be available for consumer2
.
When a next message arrives in queue
, consumer2
might receive that message if it reads the queue before consumer1
.
Does it mean that it all is a case whether one consumer reads the queue before the other in order to get the first message available from the queue
?