We may earn an affiliate commission when you visit our partners.

Mediator

Save
May 1, 2024 3 minute read

The mediator design pattern is a behavioral design pattern that defines an object that encapsulates how a set of objects interact. This pattern is used to reduce the coupling between objects that communicate with each other. The mediator object serves as a central point of communication, allowing objects to communicate with each other indirectly through the mediator.

Understanding the Mediator Design Pattern

The mediator design pattern consists of the following key components:

  1. Mediator: The mediator is the central object that coordinates the communication between other objects. It defines an interface for communication and manages the interactions between the objects.
  2. Concrete Mediator: The concrete mediator implements the mediator interface and defines the specific logic for coordinating the communication between the objects.
  3. Colleague: The colleague objects are the objects that communicate with each other through the mediator. They implement the mediator interface and can only communicate with each other through the mediator.

Benefits of Using the Mediator Design Pattern

The mediator design pattern offers several benefits, including:

Path to Mediator

Take the first step.
We've curated two courses to help you on your path to Mediator. Use these to develop your skills, build background knowledge, and put what you learn to practice.
Sorted from most relevant to least relevant:

Share

Help others find this page about Mediator: by sharing it with your friends and followers:

Reading list

We've selected ten books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Mediator.
This classic book on design patterns provides a comprehensive overview of the Mediator pattern, including its benefits, drawbacks, and implementation details. It is an excellent resource for anyone who wants to learn more about this design pattern.
Provides a clear and concise introduction to the Mediator pattern. It uses simple examples and diagrams to explain the concepts behind the pattern, making it a great choice for beginners.
Provides a comprehensive overview of design patterns that are commonly used in enterprise applications. It includes a chapter on the Mediator pattern, which discusses its role in distributed systems and SOA architectures.
Provides a catalog of design patterns for enterprise integration. It includes a chapter on the Mediator pattern, which discusses its role in message-based systems and SOA architectures.
Provides a comprehensive overview of scalability in distributed systems. It includes a chapter on the Mediator pattern, which discusses its role in scaling systems by decoupling components.
Provides a practical guide to implementing Domain-Driven Design (DDD) in software applications. It includes a chapter on the Mediator pattern, which discusses its role in implementing DDD's aggregate root pattern.
Provides a catalog of design patterns for microservices. It includes a chapter on the Mediator pattern, which discusses its role in implementing microservices that are loosely coupled and independently deployable.
Provides a catalog of design patterns for event-driven architectures. It includes a chapter on the Mediator pattern, which discusses its role in implementing event-driven systems that are scalable and fault-tolerant.
Provides a comprehensive overview of design patterns for distributed systems. It includes a chapter on the Mediator pattern, which discusses its role in implementing distributed systems that are scalable and fault-tolerant.
Provides a comprehensive overview of concurrency in Java. It includes a chapter on the Mediator pattern, which discusses its role in implementing concurrent systems that are scalable and fault-tolerant.
Table of Contents
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser