jackrabbit icon indicating copy to clipboard operation
jackrabbit copied to clipboard

Processed confirmation using confirmChannel

Open aaronshaf opened this issue 10 years ago • 4 comments

"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?

aaronshaf avatar Oct 14 '15 19:10 aaronshaf

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

hunterloftis avatar Oct 14 '15 19:10 hunterloftis

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.

aaronshaf avatar Oct 14 '15 21:10 aaronshaf

Ah, gotcha. Nope, Jackrabbit just creates standard channels:

  • https://github.com/hunterloftis/jackrabbit/blob/fd23b94a218757bef05adfe01bbc7bcac71b5187/lib/exchange.js#L63

hunterloftis avatar Oct 14 '15 21:10 hunterloftis

This would be a great feature, using confirmChannel.

hunterloftis avatar Jan 19 '16 20:01 hunterloftis