mediator pattern
compound.compound. a way of designing computer software where one central object manages how other objects talk to each other. This stops the different parts of the program from needing to know too much about each other.
compound. a behavioural design pattern that encapsulates how a set of objects interact by introducing a central coordinator. This promotes loose coupling by preventing objects from referring to each other explicitly, allowing their interaction to vary independently.
The mediator pattern helps keep the code clean and organized.
In a complex user interface, the mediator pattern allows buttons and text fields to communicate through a central controller rather than linking to each other directly.
By implementing the mediator pattern, the development team reduced the architectural complexity of the messaging system, ensuring that individual components remained reusable and decoupled from the global communication logic.
Derived from the Latin mediator, meaning one who intervenes between two parties, the term was applied to software design in the 1994 book Design Patterns by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides.
Etymology adapted from Wiktionary, available under CC BY-SA 4.0.
Typically used in the singular when referring to the abstract concept, but countable when referring to specific implementations.
Last updated July 22, 2026