A publish-and-subscribe (also known as pub/sub) is a Java Message Service model. It has the following characteristics:
- In this, one producer can send a message to many consumers through a virtual channel known as a topic.
- Every client that has subscribed to a topic receives its own copy of messages published to that topic.
- A single message produced by one publisher may be copied and distributed to hundreds, or even thousands of subscribers.