# Mediator: The Hub in the Middle

When the front door has to turn off the alarm, turn on the hallway light and stop the music itself, every device knows several others and every new rule means opening a device's class; a Mediator lets each device tell the hub what happened, and only the hub knows who reacts.

![Cheat sheet: Mediator: The Hub in the Middle](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/3b4028799b0748cb8a3349a28bbbdd55.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: coupling, Facade Pattern, Mediator Pattern, OOP
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-mediator-cheat-sheet
