Closed dehypnosis closed 6 years ago
I misunderstood amqp itself. For someone here who misunderstood like me:
ref: http://www.rabbitmq.com/blog/2011/02/10/introducing-publisher-confirms/
The basic rules are as follows: an un-routable mandatory or immediate message is confirmed right after the basic.return; otherwise, a transient message is confirmed the moment it is enqueued; and, a persistent message is confirmed when it is persisted to disk or when it is consumed on every queue.
And can refer RPC pattern for synchronous publisher->broker->consumer->broker->publisher round trip.
In confirmation mode, In single process with two gorutine for each connections for subscriber/publisher channel each. When I send ack for a delivery, nack is dispatched finally..
With below code:
Here is a strange logs with my testcode.
I dont know why below logs appears. I tried to send nack via channel with
(multiple: false, requeue: false);
. it seems there may be a bug in un/serialization or im doing wrong something.Can you give me any hint?