jackrabbit
jackrabbit copied to clipboard
Processed confirmation using confirmChannel
"A channel in confirmation mode require each published message to be 'acked' or 'nacked' by the server, thereby indicating that it has been handled." https://www.cloudamqp.com/blog/2015-05-19-part2-2-rabbitmq-for-beginners_example-and-sample-code-node-js.html
Does jackrabbit support confirmation mode?
Jackrabbit provides an ack() callback by default; you can disable message confirmations by setting noAck to true. Some examples:
- https://github.com/hunterloftis/jackrabbit/blob/fd23b94a218757bef05adfe01bbc7bcac71b5187/examples/1-hello-world/receive.js#L7
- https://github.com/hunterloftis/jackrabbit/blob/fd23b94a218757bef05adfe01bbc7bcac71b5187/examples/2-work-queues/english.js#L11
I am referring to the acknowledgement of a message sent, not the acknowledge of a message processed in a consumer. Both of the examples you provider are in the consumer, not the publisher.
Ah, gotcha. Nope, Jackrabbit just creates standard channels:
- https://github.com/hunterloftis/jackrabbit/blob/fd23b94a218757bef05adfe01bbc7bcac71b5187/lib/exchange.js#L63
This would be a great feature, using confirmChannel.