F
F
ff0xff2019-01-30 11:07:43
RabbitMQ
ff0xff, 2019-01-30 11:07:43

Can RabbitMQ queue up tasks with grouping?

Good day, I have a question, I am completely new to RabbitMQ and I want to ask experienced users on the following topic;
I have a task that should be solved in 3 stages (in the figure they are highlighted in red blocks)
the stages are signed as "step 1 step2 step 3"....
Condition: you can not go to step 2 if step 1 has not been completed and similarly to step 3 if not done 2.
the queue may receive an unknown number of tasks that consist of 3 steps. (the step-to-task relationship is marked with # and logically highlighted in a blue rectangle) tasks should be distributed among all subscribed consumers to the queue, but with the conditions of the steps.
How can this be implemented in RabbitMQ?
Yes, the steps are separate tasks in the RabbitMQ context.
Is it possible to make a chain of tasks?
Whether it is possible to make so that from these chains of tasks each following task went for processing? (next step)
Can RabbitMQ solve these problems? How can I do that?
5c515b04e0979318628171.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2019-01-30
@ff0xff

No, the rabbit is not for that. There are other interesting AWS Step Functions products for this , for example. There are other analogues from Apache, Netflix and other monsters, but they are harder to get along with

S
Sergey, 2019-01-30
@yarkin

RabbitMQ is low-level for a simple solution to such a task, but, in principle, it can be solved using three different queue exchangers, where after each stage of processing, the handler code itself will throw the task to the "next stage".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question