Behavioral patterns
Mediator
Centralises communication so objects stop depending on each other directly.
Article
Mediator: components talk through a coordinator
The Mediator pattern through the order form of a pierogi place: the delivery choice, address, time slot and button do not know each other, and the rules of their cooperation live in one place. Plus an honest look at MediatR and code in five languages.
Related articles
- Facade – one simple entry point to a complex subsystem
Facade exposes one convenient operation that coordinates many subsystem classes behind the scenes. An example of course enrollment with payment, access and a welcome email in C#, TypeScript, Java,…
Around the topic
- Mediator / Mediator article · web · Refactoring.Guru
- LuckyPennySoftware/MediatR repo · github · LuckyPennySoftware
- No, You Really Don't Need MediatR in .NET video · youtube · Nick Chapsas
- CQRS vs MediatR: Do You Need MediatR? article · web · Milan Jovanović
- Mediator article · web · Refactoring.Guru
- Command, Repository and Mediator Design Patterns podcast · apple-podcasts · Coding Blocks
- Derek Comartin - Fat Controller CQRS Diet video · youtube · Explore DDD
- rafaelfgx/Architecture repo · github · rafaelfgx