April 2019
Intermediate to advanced
360 pages
9h 17m
English
The publisher-subscriber design pattern establishes two entities: a publisher that sends messages based on events and a subscriber that subscribes to those events. With this design pattern, publishers transmit messages and subscribers listen for them and then take the appropriate action or inaction.
As illustrated next, the Publisher publishes events. The Subscribers subscribe to the events. Once an event is heard, the Subscriber provides the computation or processing as appropriate for the event:

This design pattern is event-driven and can be ...
Read now
Unlock full access