Mediator Pattern in TypeScript

Objects communicate through the Mediator rather than directly with each other.

As a system evolves and becomes larger and supports more complex functionality and business rules, the problem of communicating between these components becomes more complicated to understand and manage. It may be beneficial to refactor your system to centralize some or all of its functionality via some kind of mediation process.

The mediator pattern is similar to implementing the Facade pattern between your objects and processes. Except that the structure of the Mediator…

--

--

--

A Design Pattern is a description or template that can be repeatedly applied to a commonly recurring problem in software design. A familiarity of Design Patterns is very useful when planning, discussing, managing and documenting your applications from now on and into the future.

Recommended from Medium

API Automation using Postman

May 14th (Thursday)

Fall in Love with ReactJs

The different ways to define a function in JavaSrcipt

Five things we learned building Elegant Seagulls 2017

How to do end-to-end testing on React Native with Detox

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed — JavaScript heap out of…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sean Bradley

Sean Bradley

Developer of real time, low latency, high availability, asynchronous, multi threaded, remotely managed, fully automated and monitored solutions.

More from Medium

Interpreter Pattern in TypeScript

Maintaining TypeScript Superpowers When Types Are Out of Reach

How to deal with inferred TypeScript types and stop using any

5 NestJS Techniques to Build Efficient and Maintainable Apps