0

After publishing message on RabbitMQ like that :

[exchange publishMessage:@"YOUR MESSAGE" usingRoutingKey:routingQueue propertiesMessage:props mandatory:NO immediate:NO error:&error];

It works perfectly but is it possible to receive the acknowledgement from RabbitMQ for each message with this lib ?

https://github.com/profmaad/librabbitmq-objc

OneTwo
  • 1
  • 4

1 Answers1

0

So these publisher acknowledgments (since you wrote in the comment you are interested in broker->publisher) are on the amqp level, handled by RMQ itself. In the "API" level you may get a exception or a return value or some indication depends on the library.

Quote from the aforementioned link:

For unroutable messages, the broker will issue a confirm once the exchange verifies a message won't route to any queue (returns an empty list of queues). If the message is also published as mandatory, the basic.return is sent to the client before basic.ack. The same is true for negative acknowledgements (basic.nack).

For routable messages, the basic.ack is sent when a message has been accepted by all the queues. For persistent messages routed to durable queues, this means persisting to disk. For mirrored queues, this means that all mirrors have accepted the message.

cantSleepNow
  • 9,691
  • 5
  • 31
  • 42