akalend / amqpcpp

rabbitcpp is a C++ library for Message Queue Server RabbitMQ
MIT License
231 stars 142 forks source link

How to confirm that the message is sent successfully #90

Open geek199019 opened 3 years ago

geek199019 commented 3 years ago

How can the sender confirm that the message is sent successfully

olusis commented 2 years ago

The basics - in my humble opimion you should not. Systems that use a messaging broker such as RabbitMQ are by definition distributed. Since protocol methods (messages) sent are not guaranteed to reach the peer or be successfully processed by it, both publishers and consumers need a mechanism for delivery and processing confirmation. Iif you don't receve message - it should not be there. Or Your application is late. It should work and it does. In asynch way.

olusis commented 2 years ago

Interprocess commz should be this way. IMHO