Any possibility of message order issue while receive single queue consumer and multiple producer?
producer1
publish message m1
at 2021-06-27 02:57:44.513
and producer2
publish message m2
at 2021-06-27 02:57:44.514
on same queue worker_consumer_queue
. Client code connected to the queue configured as single consumer should receive message in order m1
first and then m2
correct? Sometimes message receive in wrong order. version is ActiveMQ Artemis 2.17.0.
Even though I mentioned that multiple producer, message publish one after another from same thread using property blockOnDurableSend=false
.
I create and close producer on each message publish. On same JVM, my assumption is order of published messages in queue, from same thread or from different threads even with async. timestamp is getJMSTimestamp()
. async publish also maintain any internal queue has order?
producer1
andproducer2
but you also say messages are "publish one after another from same thread." Can you clarify this? Are you creating & closing the producer for every message you send? – Justin BertramgetJMSTimestamp()
. async publish also maintain any internal queue has order? – Rony John