40

RabbitMQ如何保证队列里的消息99.99%被消费?-Java_老男孩

 4 years ago
source link: https://blog.51cto.com/14230003/2405277
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1.本篇概要其实,还有1种场景需要考虑:当消费者接收到消息后,还没处理完业务逻辑,消费者挂掉了,那消息也算丢失了?,比如用户下单,订单中心发送了1个消息到RabbitMQ里的队列,积分中心收到这个消息,准备给这个下单的用户增加20积分,但积分还没增加成功呢,积分中心自己挂掉了,导致数据出现问题。那么如何解决这种问题呢?为了保证消息被消费者成功的消费,RabbitMQ提供了消息确认机制(messag

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK