Messaging Paradigms supported
Universal Messaging supports three broad messaging paradigms - Publish/Subscribe, Message Queues and Peer to Peer. Universal Messaging clients can use a mixture of these paradigms from a single session. In addition to this it is possible for clients to further control the conversation that takes place with the server by choosing particular styles of interaction. These styles are available to both readers and writers of messages and include asynchronous, synchronous, transactional and non-transactional.
Publish/Subscribe (using Channels/Topics)
Publish/Subscribe is an asynchronous messaging model where the sender (publisher) of a message and the consumer (subscriber) of a message are decoupled. When using the Channels/Topics, readers and writers of events are both connected to a common topic or channel. The publisher publishes data to the channel. The channel exists within the Universal Messaging realm server. As messages arrive on a channel, the server automatically sends them on to all consumers subscribed to the channel. Universal Messaging supports multiple publishers and subscribers on a single channel.
Publish/Subscribe (using DataStreams and DataGroups)
Universal Messaging DataGroups provide an alternative to Channels/Topics for Publish/Subscribe. Using DataGroups it is possible for remote processes to manage subscriptions on behalf of subscribers. The process of managing subscribers can be carried out by publishers themselves or by some other process. DataGroups are lightweight in nature and are designed to support large numbers of users whose subscriptions are fluid in nature. The addition / removal of users from DataGroups can be entirely transparent from the user perspective.
Message Queues
Like pub/sub, message queues decouple the publisher or sender of data from the consumer of data. The Universal Messaging realm server manages the fan out of messages to consumers. Unlike pub/sub with channels, however, only one consumer can read a message from a queue. If more than one consumer is subscribed to a queue then the messages are distributed in a round-robin fashion.
Peer to Peer
Peer to Peer provides a direct communications path between an instance of a service and the client requiring access to the service. The Universal Messaging realm server brokers the relationship between the service and the client and in doing so becomes transparent as messages pass through it.
Details of Usage for Software Developers
Details of how to develop applications in various languages for the paradigms described above, including code examples, are provided in the appropriate language-specific guides.
The following language-specific guides are available:
Java: | |
C++: | |
C# .NET: | |
Python: | |
JavaScript: | |
Flex: | |
Messaging Paradigms Comparison
| DataGroups | Channels | Queues | Peer to Peer |
Subscriptions Managed Remotely | | | | |
Nestable | | | | |
Clusterable | | | | |
Persistence (data) | | | | |
Persistence (state) | | | | |
Message Replay | | | | |
Synchronous Consumer | | | | |
Asynchronous Consumer | | | | |
Synchronous Producer | | | | |
Asynchronous Producer | | | | |
Transactional Consumer | | | | |
Non-Transactional Consumer | | | | |
Transactional Producer | | | | |
Non-Transactional Producer | | | | |
Destructive Read | | | | |
Delta Delivery | | | | |
Conflation (Event Merge) | | | | |
Conflation (Event Overwrite) | | | | |
Conflation (Throttled Delivery) | | | | |
User Specified Filters | | | | |
Addressable Messages | | | | |
User Access Controlled via ACLs | | | | |
Microsoft Reactive Extensions | | | | |
Accessible via JMS | | | | |