A
A
Alexander Savenko2016-08-26 14:15:56
RabbitMQ
Alexander Savenko, 2016-08-26 14:15:56

Why use RabbitMQ?

Hello!
I read an article on Habré about how they made a chat for a bank https://habrahabr.ru/company/redmadrobot/blog/308398/ among other things, I saw that they used RabbitMQ and I can’t understand why? In my humble view, RabbitMQ is a task queue for long operations and that somewhere there is a worker that receives tasks and begins its long work. But chat is instant messages, and what kind of long-term operations can there be? Can you give an example of how RabbitMQ can be used in chat?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-08-26
@rostel

when you need to set a long task(s) without blocking the response to the client, based on his request
, push him on completion, if necessary,
imagine what will happen if he synchronously waits for a response about the execution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question