December 2014
Intermediate to advanced
454 pages
10h 45m
English
Publish/subscribe (often abbreviated Pub/Sub) is probably the best known one-way messaging pattern. We should already be familiar with it, as it's nothing more than a distributed observer pattern. As in the case of observer, we have a set of subscribers registering their interest in receiving a specific category of messages. On the other side, the publisher produces messages that are distributed across all the relevant subscribers. The following figure shows the two main variations of the pub/sub pattern, the first peer-to-peer, the second using a broker to mediate the communication:

What makes pub/sub so special is the ...
Read now
Unlock full access