Design patterns are used to solve common design problems and reduce the complexities in our code.

The mediator pattern is a behavioral design pattern that promotes loose coupling between objects and helps to organize the code for inter-object communications.This article presents a discussion of the mediator design pattern and how it can be implemented using C#.[ Get started: A developer’s guide to serverless computing. | Keep up with hot topics in programming with InfoWorld’s App Dev Report newsletter. ]
What is the mediator design pattern? 
Imagine an application in which there are many objects that are communicating with each other.

The mediator design pattern is useful when the number of objects grows so large that it becomes difficult to maintain the references to the objects.

The mediator is essentially an object that encapsulates how one or more objects interact with each other.

The mediator design pattern controls how these objects communicate, and helps to reduce the number of dependencies among them that you have to manage.To read this article in full or to leave a comment, please click here

Leave a Reply