A
A
Alexander2016-12-09 15:00:56
API
Alexander, 2016-12-09 15:00:56

How to organize the completion of a message by several services?

There is a consumer. which requests data (creates a message in the queue) and, as a result, waits for a response (it doesn’t matter how exactly).
There are 10 services that have part of the knowledge about the requested object. Each service sees the message (give me the data at id =10) and completes the message with its own piece of knowledge about that object. When the object is full (the list of services is filled by types, the response of which we need), it is returned to the consumer.
Question:
How to organize the "completion" of the object inside the message using the rabbit? Is this even possible? Perhaps there are any correct patterns for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-12-09
@yarkin

Some complex algorithm, IMHO.
Is the definition of the "completeness" of an object known in advance? If a list of services is known, why not contact them directly and form a "complete" object based on the responses from each?
In general, some kind of "reducer" of answers is needed, out of the box RMQ does not know any suitable mechanisms for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question