[rabbitmq-discuss] Example using publish confirms with Erlang client?

Ryan Brown ryankbrown at gmail.com
Thu Mar 13 13:16:03 GMT 2014

Good clarification Simon. Thank you! I apologize for my confusion.

I will look into the shovel worker. As I mentioned, I am modifying existing
code so, that might be too much of a change in approach. (Whether or not
it's the right approach!)

Thanks again!


On Thursday, March 13, 2014, Simon MacMullen <simon at rabbitmq.com> wrote:

> 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,
> not per-exchange.
>  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:
> http://hg.rabbitmq.com/rabbitmq-shovel/file/4323e6db74c8/src/rabbit_
> shovel_worker.erl
> Cheers, Simon
> --
> Simon MacMullen
> RabbitMQ, Pivotal

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140313/0bfe6c4e/attachment.html>

More information about the rabbitmq-discuss mailing list