A
A
Alexander Kulaga2018-12-21 13:29:14
Python
Alexander Kulaga, 2018-12-21 13:29:14

How to set custom Rabbit (pika) overflow policy?

I set the maximum queue length like this:

pika_channel.queue_declare(
                self.RABBIT_QUEUE_NAME,
                durable=False,
                arguments={"x-max-length": 500000},
            )

You need to set your own logic for processing messages that did not fit in the queue. How can I do that?
Rabbit version 3.6.6

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-12-23
@yarkin

In addition to the previous answer, you can also add such a mechanism - Dead Letter Exchanges .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question