Designing a Fully Scalable Application
Subject:   How scaleable is it?
Date:   2005-04-18 00:21:23
From:   ashevat
Response to: How scaleable is it?

It is important to understand that the "Dispatch Mediator" is based on JMS topic while “Stage Mediator” is based on JMS queue, the question is now when do we use queue (p2p) and when do we use topic (pub-sub). In the example in the article I wanted to use them both, I did not consider getting redundant information in the GUI side as a problem, in a real world scenario it might be better to have a stage for each GUI and let the engine queue the information in those stages.
You can look at p2p and pub-sub like TCP point to point connection versus UDP multicast, both are a good tool to solve a problem , if you know the limitations and advantages of both you know when and where to use each of them.
Amir Shevat