[rabbitmq-discuss] Example using publish confirms with Erlang client?
simon at rabbitmq.com
Thu Mar 13 13:04:37 GMT 2014
On 13/03/14 12:57, Ryan Brown wrote:
> I am attempting to modify an existing Erlang codebase that acts as a
> rest wrapper around rabbitmq providing some additional business logic.
> One of the new requirements is for the client to add a header to their
> request specifying if they want to use publish confirms or not. Our
> current implementation sets-up an exchange in a gen_server that does not
> use publish confirms and re-uses that exchange for all messages. Now I
> am trying to set-up a second exchange that does but am struggling.
Note that the question of whether you're using confirms is per-channel,
> Does anybody know of an example using publish confirms with Erlang
> client? Preferably from within a gen_server I can register as the
> confirm handler (self()).
Have a look at the shovel worker and what it does in ack_mode = on_confirm:
More information about the rabbitmq-discuss