Some things I want to remember about using the bunny library to publish and read messages from a RabbitMQ server.
No blocking read
The bunny library does not have a blocking read, so you’ll have to synthesize it yourself:
Publishing messages reliably
If you need to be sure that a message was accepted, you’ll have to jump through some hoops:
Set the channel into “confirm select” mode:
Register a callback that will be called if the message is returned:
Now, to publish a message: