What it is good for

The mediator design pattern is good for keeping coupling between classes loose in an application. It helps to achieve simplicity and maintainability, while still allowing us to model complex interactions between objects in our applications.

Get Scala Design Patterns - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.