PDA

View Full Version : Pub/Sub



marcioalthmann
04-28-2011, 05:47 PM
I need some help to understand the Pub/Soft system better. I'll post the problem here to see if you can help me.

I'm through a test with the Spring and ActiveMQ, but I need some more resources in it, and I'd like to know if the Pub/Soft can help me.

In the Spring.NmsQuickStart.2008 project there is a communication between the client and the server, all the message control and return to the client. Now, what if my server do not process anything else, recieve the mesage and distribute to other servers, for instance, another server that only works processing reports, is that possible?

1 - The application sends message requesting a report to my queue server.
2 - The queue server warns other servers that there is a report message to process.
3 - Some report specialized server gets this warning, and gets the report message to process.
4 - After the report's been processed, the report server returns the message to the queue server that return the message to the application.

By my undestanding about the Pub/Soft, all the Subs recieve the message. How to control that more than one avoid process the same message? Or the report server do not process the stock calculation message, for example?