[rabbitmq-discuss] Example using publish confirms with Erlang client?
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!)
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:
> Cheers, Simon
> Simon MacMullen
> RabbitMQ, Pivotal
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss