当前位置:网站首页>mq常见问题
mq常见问题
2022-07-27 05:01:00 【一梦无痕bzy】
1、消息丢失:可能发消息时没发成功、rabbitmq服务器出问题、消费者接到消息但没处理完报错等。启用confirm、return、ack模式、消息补偿
2、rabbitmq防止重复处理:因为网络原因,消费者本身已经接到消息了,但是没有及时给rabbitmq发确认消息,导致mq消息没删除继续往消费者端发送同样的消息。利用redis做修改记录(setnx),当每次操作发现有修改记录了,说明处理重复了
3、消息堆积:就是消费者消费速度远远小于生产者生产速度。可以合理的设置消费者服务的并发量、限流和加服务器来解决
边栏推荐
- Typescript details
- B1024 科学计数法
- 2021 OWASP top 5: security configuration error
- Laozi cloud and Fuxin Kunpeng achieved a major breakthrough in 3D ofd 3D format documents for the first time
- JVM上篇:内存与垃圾回收篇六--运行时数据区-本地方法&本地方法栈
- [optical flow] - data format analysis, flowwarp visualization
- Use of collection framework
- Event Summary - common summary
- [CSAPP] Application of bit vectors | encoding and byte ordering
- Invert a Binary Tree
猜你喜欢

如何快速有效解决数据库连接失败问题

B1021 single digit statistics

ssm框架整合

Could not autowire. No beans of ‘userMapper‘ type found.

Database connection pool & Druid usage

JVM上篇:内存与垃圾回收篇十四--垃圾回收器

Differences among left join, inner join and right join

OFDM 16 lecture 2-ofdm and the DFT

Inspiration from "flying man" Jordan! Another "arena" opened by O'Neill

Critical path principle
随机推荐
Shell course summary
35. Scroll
Explore the mysteries of the security, intelligence and performance of the universal altek platform!
JVM Part 1: memory and garbage collection part 10 - runtime data area - direct memory
Detailed description of binary search tree
JVM上篇:内存与垃圾回收篇十--运行时数据区-直接内存
The difference between strlen and sizeof
Another skill is to earn 30000 yuan a month+
Static and final keyword learning demo exercise
Tcp server是如何一个端口处理多个客户端连接的(一对一还是一对多)
JVM上篇:内存与垃圾回收篇--运行时数据区四-程序计数器
Why is count (*) slow
B1022 D进制的A+B
B1026 程序运行时间
学生管理系统
String class
Advantages of smart exhibition hall design and applicable industry analysis
Bean's life cycle & dependency injection * dependency auto assembly
使用ngrok做内网穿透
来自“飞人”乔丹的启示!奥尼尔开启的另一个“赛场”