S
S
SJlanguage2015-11-23 13:47:27
PHP
SJlanguage, 2015-11-23 13:47:27

How to make the RabbitMQ broker hold messages until at least one queue appears?

I use RabbitMQ as push notifications. When an event occurs on the server, I send a notification through the rabbit to the android device. To send and receive messages, I used the code specified in the RabbitMQ off -doc (Multiple bindings algorithm). However, there is a problem when the Android program is turned off, there is not one associated queue with the exchange point, so when pushing a message to the exchange point, it is lost. I would like to be able to keep messages stored until a queue appears which could be transferred for processing, and if there are already several queues, with the correct route key, it would be sent to everyone. Is it possible to set it up like this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Stepanov, 2015-12-03
@Vdm17

Re-read the examples in the documentation again. In the second example ( https://www.rabbitmq.com/tutorials/tutorial-two-py... ) they just talked about Message Durability. Specify that your queue and exchange are durable and then whatever happens RabbitMQ will keep the added messages even when completely shut down.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question