B
B
Bobsans2018-10-20 16:02:21
Python
Bobsans, 2018-10-20 16:02:21

Redis, ZMQ, etc. Is it possible to implement something like pub/sub and queue at the same time?

Good day.
There was a problem at implementation of EventBus'a. It is necessary to implement receiving messages in two ways: for all clients and for the first one that grabs. That is, send messages as in pub / sub or as in queue, depending on the type of message. I write in Python. I planned to use something light as a broker, such as Redis or ZeroMQ. (Maybe you can suggest other options.)
Is there any way to implement this feature?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2018-10-20
@inoise

Look - there are 2 main mechanics - push-based and pull-based. pub/sub is just one of the de facto principles of queues.
what you want to implement is the difference between exchange and queue in RabbitMQ. I wouldn’t recommend ZeroMQ to anyone at all, and Redis isn’t really about queues either - they just know a little about them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question