The publish/subscribe model separates a publisher that produces state or event information from subscribers that process notifications independently. The publisher does not know how subscribers are implemented or what they do with the content. section 12.0 section 12.2
Baseball game reports
A baseball reporter publishes each hit or out as it occurs. A logger records events immediately, while table and graph generators accumulate information and report after the game. Each subscriber handles the same events differently. section 12.1
A flexible design lets the system:
- Create content at arbitrary times and notify every current subscriber immediately. section 12.1.1
- Let subscribers fetch content selectively and process it however they choose. section 12.1.1
- Add or remove subscribers without changing the publisher’s code. section 12.1.1 section 12.2




