R
R
raiboon2020-11-22 14:00:29
RabbitMQ
raiboon, 2020-11-22 14:00:29

How to do exponential backoff in rabbitmq?

I can't find in the api how to make a delayed retry.

Here I received a message, it was not possible to process it, I do a nack and the same message immediately arrives again.

But that's bullshit by default. There must be a way to set the timeouts.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2020-11-22
@inoise

It would seem, what does rabbimq have to do with it? He is passive and doesn't talk to anyone. He has nowhere to have an exponential back-off or retry. This is a FIFO queue with features. The message must either be successfully processed or be recognized as not processed, but in any case be either removed from the queue or remain there until processed.

S
Sergey, 2020-11-22
@yarkin

If it is very necessary that "timeouts" be done by RabbitMQ, then the DLX extension can come to the rescue in a limited form , but additional queues for sumps are also needed. RabbitMQ is a generic queue, it can't solve micro-requirements for every use case.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question