I am trying to use RabbitMQ for a distributed system that would work something like:
- a producer puts in a queue a JSON-formatted list of order ids
- several consumers pull out of that queue, do the business logic with that order ids and the result (JSON formatted) as well is put back into another queue
- from the second queue, another consumer will take the data and pass it back to the caller
I am still very new to RabbitMQ and I am wondering if this model is the right approach, given the fact that the data should be back as fast as possible (sometimes in the matter of seconds, max 5) so there are real time requirements. Also, how large can the message passed to a queue can be? The JSON that the producer will get back will be fairly large, based on what the consumer does.
Thanks for any ideas!