January 2020
Intermediate to advanced
532 pages
13h 31m
English
The mediator pattern is used to facilitate communication between different components in an application. This is done in such a way that individual components are decoupled from each other. In most applications, changes in one component can affect another. Sometimes, there are also cascading effects. A mediator can take the responsibility of getting notified when one component is changed, and it can notify other components about the event so that further downstream updates can be made.
As an example, we can consider the use case of a graphical user interface (GUI). Suppose that we have a screen that contains three fields for our favorite banking application:
Read now
Unlock full access