springboot 与rabbitmq集成+生产者投递确认+消费者手动确认+TTL+死信队列+延时队列
1、生产者的消息可靠性投递机制
1)springboot yml文件配置
spring:
rabbitmq:
host: 10.0.23.83
username: lifwe
password: 123456
virtual-host: amq123
port: 5672
publisher-confirm-type: correlated #类型设置为correlate
publisher-returns: true #需要设置weitrue
原创
2021-03-18 15:08:28 ·
326 阅读 ·
0 评论