I
I
Ildar Gizetdinov2018-02-22 10:59:15
Message Queues
Ildar Gizetdinov, 2018-02-22 10:59:15

Are there analogues of rabbitmq (callbacks, dequeue)?

I use RabbitMQ - at the moment the main problem is getting the result of the work - to get it I have to create two queues
QueueName - here is the message queue to which about 20 servers
are subscribed QueueNameResult - here the message queue to which only the main server is subscribed, and receives the results of the work
Plus to everything is not possible to remove from the queue some packages that have become irrelevant, you have to use a wrapper with your own identifiers, and if a packet with an outdated identifier arrives at the main server, I throw it away
. dequeue batch processing

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RidgeA, 2018-02-22
@RidgeA

Plus, there is no way to remove some packages from the queue that have become irrelevant, you have to use a wrapper with your own identifiers, and if a packet with an outdated identifier arrives at the main server, I throw it away

This is one of the key in the queue - you can't just take and delete a message. Everything that got into the queue remains in it until someone reads it (well, either the queue doesn’t leave or the server doesn’t come up :-))
Maybe then some implementation of rpc? Why queues?

S
Sergey, 2018-02-22
@yarkin

RabbitMQ has a built-in Direct reply-to extension , there is an example of its use .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question