Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Publish - Subscribe (PubSub)

In software architecture, publish–subscribe is a messaging pattern where senders of messages, called publishers, do not program the messages to be sent directly to specific receivers, called subscribers, but instead categorize published messages into classes without knowledge of which subscribers, if any, there may be. Similarly, subscribers express interest in one or more classes and only receive messages that are of interest, without knowledge of which publishers, if any, there are.

Publish–subscribe is a sibling of the [message-queue] paradigm, and is typically one part of a larger message-oriented middleware system.

Examples