rabbitmq:
addresses: 127.0.0.1
port: 5672
username: guest
password: guest
listener:
type: simple
simple:
retry:
enabled: false
# max-attempts: 3 #重试次数
# initial-interval: 5000 #重试间隔时间
concurrency: 1 #并发数量
max-concurrency: 1 #最大并发
acknowledge-mode: manual #手动确认
prefetch: 1 #消费端限流1,每个消费者尾确认的未处理消息最大数量
在有事务要求的业务中,concurrency和max-concurrency都需要赋值为1,才能保证排队消费
413

被折叠的 条评论
为什么被折叠?



