I
I
ince2020-01-20 14:15:58
Message Queues
ince, 2020-01-20 14:15:58

What are queues for?

There is an array of resource-intensive tasks.
There are two services - the service master (the one who issues tasks) and the service executor of these tasks.
The service master knows about all tasks (it keeps the task queue in its memory) and asynchronously issues tasks to perform resource-intensive tasks and receives responses.
Such a system works.
Question - what for to take out queue in separate service?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2020-01-20
@ince

To manage, to control resources, not to fence the garden with your bikes, to Reduce Attack Surface (even with trite errors), for various scaling ... a million reasons

M
Maksim B, 2020-01-20
@Sundagy

Everything is simple, when you restart the master, the queue does not rub off, the queue service can be run on a mega-protected server, it can be scaled, and it’s also convenient to distribute tasks if there are a lot of performer services.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question