RabbitMQ & Spring amqp retry without blocking consumers -


i'm working rabbitmq , spring amqp prefer not lose messages. using exponential off policy retrying, i'm potentially blocking consumers working off on messages handle. i'd give failed messages several days retry exponential off policy, don't want consumer blocking several days , want keep working on other messages.

i know can achieve kind of functionality activemq(retrying messages @ point in future (activemq)), not find similar solution rabbitmq.

is there way achive spring amqp , rabbitmq?

you can via dead letter exchange. reject message , route dle/dlq , have separate listener container consumes dlq , stop/start container needed.

or, instead of second container can poll dlq using rabbittemplate receive (or receiveandconvert) methods (on schedule) , route failed message(s) primary queue.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -