HTML and CSS Reference
In-Depth Information
Figure 5-2.
Messaging with topics and queues
•
Queue: A distribution mechanism for delivering messages to a
single consumer. Any number of clients (publishers) can publish
messages to a queue, but every message is consumed by one and
only one client (consumer).
•
Topic: A distribution mechanism for delivering messages
to multiple consumers. Any number of clients (publishers)
can publish messages to a topic, and any number of clients
(consumers) can consume them.
■
not every message broker uses topics and queues. in this chapter, though, we use
Apache ActiveMQ, which does support topics and queues.
Note
