purpose:
How to ensure 100% message delivery
Idempotence concept
Confirm the confirmation message
Return return message
Custom consumers
Preface:
Presumably know RabbitMQ messaging middleware small partner, for the benefits of the introduction of anti middleware can play high concurrency, clipping effect, decoupling is no stranger to the business.
Kankan simple flow chart to find out. Learn more about RabbitMQ be the venue: https://www.cnblogs.com/huangting/p/11989597.html
Note: in general in order to improve the throughput will MQ messaging middleware system stored in memory, if no other processing, once the MQ server is down, the message will be lost;
This will have a huge impact on the business process is not.
The following is our solution to be used
How to ensure 100% message delivery
What is the reliability of the delivery end of the production?
- Ensure the success of the message sent
- MQ nodes successfully receive protection
- MQ sender receives node (Broker) acknowledgment
- Perfect message compensation mechanism (such as a network problem does not return the acknowledgment )
Idempotence concept
Confirm the confirmation message
Return return message
Custom consumers