feat:开启retry,防止未处理的异常让消费者一直重试从而阻塞,增强消费者的可靠性

pull/75/head
larry 2 weeks ago
parent 6605316a53
commit ff53cf7aac

@ -65,6 +65,11 @@ spring.rabbitmq.password=123456
spring.rabbitmq.publisher-confirm-type=correlated spring.rabbitmq.publisher-confirm-type=correlated
spring.rabbitmq.publisher-returns=true spring.rabbitmq.publisher-returns=true
spring.rabbitmq.virtual-host=/ spring.rabbitmq.virtual-host=/
#enable retry
spring.rabbitmq.listener.simple.retry.enabled=true
spring.rabbitmq.listener.simple.retry.initial-interval=1000
spring.rabbitmq.listener.simple.retry.multiplier=2
spring.rabbitmq.listener.simple.retry.max-attempts=3
austin.rabbitmq.exchange.name=austin.point austin.rabbitmq.exchange.name=austin.point
spring.rabbitmq.queues.send=austin.queues.send spring.rabbitmq.queues.send=austin.queues.send
spring.rabbitmq.queues.recall=austin.queues.recall spring.rabbitmq.queues.recall=austin.queues.recall

Loading…
Cancel
Save