[rabbitmq-discuss] Sequential message processing guarantee
Yogesh Ketkar
yogimogi at gmail.com
Sun Jan 22 17:38:40 GMT 2012
Running the code below, gives
channel.basicConsume(QUEUE_NAME, autoAck, CONSUMER_TAG,
new DefaultConsumer(channel) {
@Override
public void handleDelivery(String consumerTag, Envelope
envelope, BasicProperties properties, byte[] body) {
System.out.println(Thread.currentThread().getName());
}
}
o/p like
pool-1-thread-1
pool-1-thread-2
pool-1-thread-3
etc
There are multiple consumer threads consuming the messages.
Though multiple threads are consuming the messages, I observed that
messages still get processed sequentially.
Is that the case and if NOT, what is the way to guarantee sequential
processing of messages on one queue?
regards, Yogesh
More information about the rabbitmq-discuss
mailing list