# Messages

Messages: Observer the Modern Way: Events and Listeners, Publish/Subscribe: Observer Across the Network.

Updated: November 17, 2026

1. [Observer the Modern Way: Events and Listeners](https://www.ask-codey.com/lessons/dp-observer-modern) (Journeyman): When every device writes Pass 1's listener list again by hand, and a closed phone screen keeps hearing every change because nothing takes it off the list, it's time for each language's own tools: C#'s event, JavaScript's EventTarget, and a subscribe that hands back a way to unsubscribe.
2. [Publish/Subscribe: Observer Across the Network](https://www.ask-codey.com/lessons/dp-publish-subscribe) (Freelancer): When the front door has to tell Maya's phone, which is on another network and sometimes offline, Observer's list breaks down: the door must know the phone, wait for it, and loses the message when it's away; publish/subscribe puts a message board with topics in the middle, so senders post, readers subscribe, and neither knows the other.

Source: https://www.ask-codey.com/courses/design-patterns/topics/dp-messages
