Universal Messaging 10.11 | Developer Guide | Web Client APIs | Web Developer's Guide for Javascript | Web Client Development in JavaScript | Message Queue Tasks
 
Message Queue Tasks
 
Overview of using Message Queues
Using a Queue
Subscribing to a Queue
Publishing Events to a Queue
Asynchronous Transactional Queue Consuming
Overview of using Message Queues
The Universal Messaging JavaScript API provides message queue functionality through the use of queue objects. Queues are the logical rendezvous point for publishers (producers) and subscribers (consumers) of data (events).
Message queues differ from publish / subscribe channels in the way that events are delivered to consumers. Whilst queues may have multiple consumers, each event is typically only delivered to one consumer, and once consumed (popped) it is removed from the queue.
This section demonstrates how Universal Messaging message queues work in JavaScript, and provides example code snippets for all relevant concepts.