Multi-Window Applications
Many trading applications make use of multi-windows on which we want to keep some information in synch. Cross window communication is tricky across different browsers and this is especially problematic if the apps are cross domain.
A simple mechanism to solve this is by using a GroupTopic
that is keyed to the Username producing effectively a private queue for the user, independently of how many window sessions are active.
This enables all instances of the browser to see the same data while keeping the information private to the User. From the developer’s perspective there is only dealing with the User and generally the number of windows is not a concern.
As we can see from the diagram this can be extended to multiple devices as well as windows.
We can even use other techniques such as echoing messages back on the same topic and disregarding messages that originate from our own instance in the client if we want the windows to see all the outgoing data as well.