samedi 11 avril 2015

java spring rabbitMQ send to many queues

My program receives a request, then gets data from it, and, depending on the data received, should send Y requests to other services (external), then should collect results from all those services and make a decision which response to send back. Please tell, is it effective to use rabbitMQ, I mean spring amqp rabbit? I have a fixed number of mentioned external services (X), I think its logical to have X queues in rabbit, and on every request the system will send a message to any Y queues, Y<=X, its not required to send messages to all queues. So I think I will have one big queue for incoming requests, and X queues for communication with external services. What do you think? How to implement it in spring amqp? May be there is a way how to do it more effective? Thank you


Aucun commentaire:

Enregistrer un commentaire