{"slug":"mediator","group":"behavioral","title":"Mediator","short":"Skupia komunikację w jednym miejscu, żeby obiekty nie zależały od siebie nawzajem.","icon":"messages-square","aliases":[],"order":304,"status":"available","articleCount":2,"groupTitle":"Wzorce behawioralne","intro":"","servedLang":"pl","primaryArticle":{"id":"6b08bd3a80884893657cc9aa","slug":"mediator","title":"Mediator: komponenty rozmawiają przez koordynatora","summary":"Wzorzec Mediator na przykładzie formularza zamówienia w pierogarni: wybór dostawy, adres, godzina i przycisk nie znają się nawzajem, a reguły ich współpracy żyją w jednym miejscu. Do tego uczciwie o MediatR i kod w pięciu językach.","servedLang":"pl","availableLangs":["pl","en"],"topics":["mediator","cqrs"],"techs":["dotnet","typescript","java","go","python"],"tags":["gof","behavioral","mediator","ui","mediatr","coupling"],"level":"intermediate","kind":"article","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":11,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-26T23:14:02.221Z","updatedAt":"2026-11-27T10:05:00.090Z","challengeCount":0,"quizCount":0},"articles":[{"id":"6b08bd3380884893657cc956","slug":"facade","title":"Fasada (Facade) – jedno proste wejście do skomplikowanego podsystemu","summary":"Fasada udostępnia jedną wygodną operację, która w środku koordynuje wiele klas podsystemu. Przykład zapisu na kurs z płatnością, dostępem i e-mailem powitalnym w C#, TypeScript, Javie, Go i Pythonie.","servedLang":"pl","availableLangs":["pl","en"],"topics":["facade","adapter","mediator","layered-architecture"],"techs":["dotnet","typescript","java","go","python"],"tags":["gof","structural","facade","orchestration","api-design"],"level":"beginner","kind":"article","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":10,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-26T23:13:55.487Z","updatedAt":"2026-11-27T10:04:44.619Z","relation":{"position":2,"primary":false,"mainTopic":{"slug":"facade","title":"Fasada"}}}],"challenges":[],"resources":[{"id":"6b0857bf3c96f2d34d0b42cc","type":"article","provider":"web","url":"https://refactoring.guru/pl/design-patterns/mediator","embedUrl":null,"title":"Mediator / Mediator","description":"Mediator to behawioralny wzorzec projektowy pozwalający zredukować chaos zależności pomiędzy obiektami. Wzorzec ten ogranicza bezpośrednią komunikację pomiędzy obiektami i zmusza je do współpracy wyłącznie za pośrednictwem obiektu mediatora","author":"Refactoring.Guru","thumbnailUrl":"https://refactoring.guru/pl/images/refactoring/social/facebook-share-preview.png?id=dbf9e98269595be86eb668f365be6868","durationSec":null,"lang":"pl","topics":["mediator"],"techs":["general"],"tags":["design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":60,"verifiedAt":"2026-11-26T11:26:12.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857b23c96f2d34d0b3484","type":"repo","provider":"github","url":"https://github.com/LuckyPennySoftware/MediatR","embedUrl":null,"title":"LuckyPennySoftware/MediatR","description":"Simple, unambitious mediator implementation in .NET","author":"LuckyPennySoftware","thumbnailUrl":"https://opengraph.githubassets.com/1/LuckyPennySoftware/MediatR","durationSec":null,"lang":"en","topics":["mediator","cqrs"],"techs":["dotnet"],"tags":["hacktoberfest","design-patterns","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2014-03-03T15:01:22.000Z","popularity":79,"verifiedAt":"2026-11-26T10:55:56.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:49.541Z","updatedAt":"2026-11-26T16:00:49.541Z"},{"id":"6b0857c63c96f2d34d0b48c7","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=2xiHO1tv4Cc","embedUrl":"https://www.youtube-nocookie.com/embed/2xiHO1tv4Cc","title":"No, You Really Don't Need MediatR in .NET","description":"Online Workshop: Vibe Coding for Production: https://dometrain.com/workshop/vibe-coding-for-production/?ref=nick-chapsas&promo=mail-list&coupon_code=3YEARS Get every Dometrain 40% off with code 3YEARS: https://dometrain.com/courses/?ref=nick-chapsas&promo=youtube&coupon_code=3YEARS Hello…","author":"Nick Chapsas","thumbnailUrl":"https://i.ytimg.com/vi/2xiHO1tv4Cc/hqdefault.jpg","durationSec":null,"lang":"en","topics":["ai-coding-assistants","ai-in-dotnet"],"techs":["dotnet"],"tags":["ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2026-05-20T12:30:34.000Z","popularity":69,"verifiedAt":"2026-11-26T10:54:20.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"},{"id":"6b0857c03c96f2d34d0b43e9","type":"article","provider":"web","url":"https://milanjovanovic.tech/blog/stop-conflating-cqrs-and-mediatr","embedUrl":null,"title":"CQRS vs MediatR: Do You Need MediatR?","description":"The .NET ecosystem has fused CQRS and MediatR together, and that shortcut leads teams into unnecessary complexity. They solve different problems.","author":"Milan Jovanović","thumbnailUrl":"https://milanjovanovic.tech/blog-covers/mnw_128.png","durationSec":null,"lang":"en","topics":["cqrs"],"techs":["dotnet"],"tags":["software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2025-02-08T00:00:00.000Z","popularity":50,"verifiedAt":"2026-11-26T11:29:03.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857bf3c96f2d34d0b427d","type":"article","provider":"web","url":"https://refactoring.guru/design-patterns/mediator","embedUrl":null,"title":"Mediator","description":"Mediator is a behavioral design pattern that lets you reduce chaotic dependencies between objects. The pattern restricts direct communications between the objects and forces them to collaborate only via a mediator object.","author":"Refactoring.Guru","thumbnailUrl":"https://refactoring.guru/images/refactoring/social/facebook-share-preview.png?id=dbf9e98269595be86eb668f365be6868","durationSec":null,"lang":"en","topics":["mediator"],"techs":["general"],"tags":["design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":65,"verifiedAt":"2026-11-26T11:26:05.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857bb3c96f2d34d0b3f54","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/command-repository-and-mediator-design-patterns/id769189585?i=1000378375285","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id769189585?i=1000378375285","title":"Command, Repository and Mediator Design Patterns","description":"In this episode we go back to the design pattern well that we’ve been away from for so long. We cover the Command, Repository and Mediator design patterns. It was hard for us to believe, but it’s been almost a year since our last design patterns episode!!! Come on in for fun, learning, and of […]","author":"Coding Blocks","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts113/v4/f0/b6/68/f0b6682f-e8bc-181c-95a9-0756ddf63d6e/mza_3128980961332034780.jpg/600x600bb.jpg","durationSec":7684,"lang":"en","topics":["mediator"],"techs":["general"],"tags":["podcast","design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2016-06-03T03:52:46.000Z","popularity":49,"verifiedAt":"2026-11-26T10:57:23.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:57.868Z","updatedAt":"2026-11-26T16:00:57.868Z"},{"id":"6b0857ca3c96f2d34d0b4b85","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=OlcWDZN99w4","embedUrl":"https://www.youtube-nocookie.com/embed/OlcWDZN99w4","title":"Derek Comartin - Fat Controller CQRS Diet","description":"Explore DDD 2017 - Denver, Sept. 21-22 Do your controllers need to go on a diet? Fat controllers can quickly lead to tight coupling by the abundance validation, business logic, and data access. Attendees learned how to organize code by feature by leveraging CQRS and the Mediator pattern to…","author":"Explore DDD","thumbnailUrl":"https://i.ytimg.com/vi/OlcWDZN99w4/hqdefault.jpg","durationSec":null,"lang":"en","topics":["mediator","cqrs","ddd-strategic-design"],"techs":["general"],"tags":["design-patterns","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2017-10-19T20:05:23.000Z","popularity":49,"verifiedAt":"2026-11-26T10:53:26.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:12.872Z","updatedAt":"2026-11-26T16:01:12.872Z"},{"id":"6b0857b23c96f2d34d0b3573","type":"repo","provider":"github","url":"https://github.com/rafaelfgx/Architecture","embedUrl":null,"title":"rafaelfgx/Architecture","description":".NET, Angular, Clean Architecture, Clean Code, SOLID, KISS, DRY, Mediator Pattern, Folder-by-Feature Structure","author":"rafaelfgx","thumbnailUrl":"https://opengraph.githubassets.com/1/rafaelfgx/Architecture","durationSec":null,"lang":"en","topics":["clean-architecture","mediator","microservices"],"techs":["dotnet","typescript"],"tags":["angular","architecture","aspnet-core","aspnetcore","best-practices","c-charp","software-architecture","system-design","clean-code","clean-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2017-10-08T02:17:11.000Z","popularity":68,"verifiedAt":"2026-11-26T10:58:46.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"}],"resourceGroups":[{"type":"video","items":[{"id":"6b0857c63c96f2d34d0b48c7","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=2xiHO1tv4Cc","embedUrl":"https://www.youtube-nocookie.com/embed/2xiHO1tv4Cc","title":"No, You Really Don't Need MediatR in .NET","description":"Online Workshop: Vibe Coding for Production: https://dometrain.com/workshop/vibe-coding-for-production/?ref=nick-chapsas&promo=mail-list&coupon_code=3YEARS Get every Dometrain 40% off with code 3YEARS: https://dometrain.com/courses/?ref=nick-chapsas&promo=youtube&coupon_code=3YEARS Hello…","author":"Nick Chapsas","thumbnailUrl":"https://i.ytimg.com/vi/2xiHO1tv4Cc/hqdefault.jpg","durationSec":null,"lang":"en","topics":["ai-coding-assistants","ai-in-dotnet"],"techs":["dotnet"],"tags":["ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2026-05-20T12:30:34.000Z","popularity":69,"verifiedAt":"2026-11-26T10:54:20.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"},{"id":"6b0857ca3c96f2d34d0b4b85","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=OlcWDZN99w4","embedUrl":"https://www.youtube-nocookie.com/embed/OlcWDZN99w4","title":"Derek Comartin - Fat Controller CQRS Diet","description":"Explore DDD 2017 - Denver, Sept. 21-22 Do your controllers need to go on a diet? Fat controllers can quickly lead to tight coupling by the abundance validation, business logic, and data access. Attendees learned how to organize code by feature by leveraging CQRS and the Mediator pattern to…","author":"Explore DDD","thumbnailUrl":"https://i.ytimg.com/vi/OlcWDZN99w4/hqdefault.jpg","durationSec":null,"lang":"en","topics":["mediator","cqrs","ddd-strategic-design"],"techs":["general"],"tags":["design-patterns","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2017-10-19T20:05:23.000Z","popularity":49,"verifiedAt":"2026-11-26T10:53:26.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:12.872Z","updatedAt":"2026-11-26T16:01:12.872Z"}]},{"type":"podcast","items":[{"id":"6b0857bb3c96f2d34d0b3f54","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/command-repository-and-mediator-design-patterns/id769189585?i=1000378375285","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id769189585?i=1000378375285","title":"Command, Repository and Mediator Design Patterns","description":"In this episode we go back to the design pattern well that we’ve been away from for so long. We cover the Command, Repository and Mediator design patterns. It was hard for us to believe, but it’s been almost a year since our last design patterns episode!!! Come on in for fun, learning, and of […]","author":"Coding Blocks","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts113/v4/f0/b6/68/f0b6682f-e8bc-181c-95a9-0756ddf63d6e/mza_3128980961332034780.jpg/600x600bb.jpg","durationSec":7684,"lang":"en","topics":["mediator"],"techs":["general"],"tags":["podcast","design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2016-06-03T03:52:46.000Z","popularity":49,"verifiedAt":"2026-11-26T10:57:23.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:57.868Z","updatedAt":"2026-11-26T16:00:57.868Z"}]},{"type":"article","items":[{"id":"6b0857bf3c96f2d34d0b42cc","type":"article","provider":"web","url":"https://refactoring.guru/pl/design-patterns/mediator","embedUrl":null,"title":"Mediator / Mediator","description":"Mediator to behawioralny wzorzec projektowy pozwalający zredukować chaos zależności pomiędzy obiektami. Wzorzec ten ogranicza bezpośrednią komunikację pomiędzy obiektami i zmusza je do współpracy wyłącznie za pośrednictwem obiektu mediatora","author":"Refactoring.Guru","thumbnailUrl":"https://refactoring.guru/pl/images/refactoring/social/facebook-share-preview.png?id=dbf9e98269595be86eb668f365be6868","durationSec":null,"lang":"pl","topics":["mediator"],"techs":["general"],"tags":["design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":60,"verifiedAt":"2026-11-26T11:26:12.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857c03c96f2d34d0b43e9","type":"article","provider":"web","url":"https://milanjovanovic.tech/blog/stop-conflating-cqrs-and-mediatr","embedUrl":null,"title":"CQRS vs MediatR: Do You Need MediatR?","description":"The .NET ecosystem has fused CQRS and MediatR together, and that shortcut leads teams into unnecessary complexity. They solve different problems.","author":"Milan Jovanović","thumbnailUrl":"https://milanjovanovic.tech/blog-covers/mnw_128.png","durationSec":null,"lang":"en","topics":["cqrs"],"techs":["dotnet"],"tags":["software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2025-02-08T00:00:00.000Z","popularity":50,"verifiedAt":"2026-11-26T11:29:03.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857bf3c96f2d34d0b427d","type":"article","provider":"web","url":"https://refactoring.guru/design-patterns/mediator","embedUrl":null,"title":"Mediator","description":"Mediator is a behavioral design pattern that lets you reduce chaotic dependencies between objects. The pattern restricts direct communications between the objects and forces them to collaborate only via a mediator object.","author":"Refactoring.Guru","thumbnailUrl":"https://refactoring.guru/images/refactoring/social/facebook-share-preview.png?id=dbf9e98269595be86eb668f365be6868","durationSec":null,"lang":"en","topics":["mediator"],"techs":["general"],"tags":["design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":65,"verifiedAt":"2026-11-26T11:26:05.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"}]},{"type":"repo","items":[{"id":"6b0857b23c96f2d34d0b3484","type":"repo","provider":"github","url":"https://github.com/LuckyPennySoftware/MediatR","embedUrl":null,"title":"LuckyPennySoftware/MediatR","description":"Simple, unambitious mediator implementation in .NET","author":"LuckyPennySoftware","thumbnailUrl":"https://opengraph.githubassets.com/1/LuckyPennySoftware/MediatR","durationSec":null,"lang":"en","topics":["mediator","cqrs"],"techs":["dotnet"],"tags":["hacktoberfest","design-patterns","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2014-03-03T15:01:22.000Z","popularity":79,"verifiedAt":"2026-11-26T10:55:56.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:49.541Z","updatedAt":"2026-11-26T16:00:49.541Z"},{"id":"6b0857b23c96f2d34d0b3573","type":"repo","provider":"github","url":"https://github.com/rafaelfgx/Architecture","embedUrl":null,"title":"rafaelfgx/Architecture","description":".NET, Angular, Clean Architecture, Clean Code, SOLID, KISS, DRY, Mediator Pattern, Folder-by-Feature Structure","author":"rafaelfgx","thumbnailUrl":"https://opengraph.githubassets.com/1/rafaelfgx/Architecture","durationSec":null,"lang":"en","topics":["clean-architecture","mediator","microservices"],"techs":["dotnet","typescript"],"tags":["angular","architecture","aspnet-core","aspnetcore","best-practices","c-charp","software-architecture","system-design","clean-code","clean-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2017-10-08T02:17:11.000Z","popularity":68,"verifiedAt":"2026-11-26T10:58:46.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"}]}],"siblings":[{"slug":"chain-of-responsibility","title":"Łańcuch zobowiązań","icon":"link","status":"available","current":false},{"slug":"command","title":"Polecenie","icon":"terminal","status":"available","current":false},{"slug":"iterator","title":"Iterator","icon":"list-ordered","status":"available","current":false},{"slug":"mediator","title":"Mediator","icon":"messages-square","status":"available","current":true},{"slug":"memento","title":"Pamiątka","icon":"save","status":"available","current":false},{"slug":"observer","title":"Obserwator","icon":"eye","status":"available","current":false},{"slug":"state","title":"Stan","icon":"toggle-right","status":"available","current":false},{"slug":"strategy","title":"Strategia","icon":"route","status":"available","current":false},{"slug":"template-method","title":"Metoda szablonowa","icon":"layout-template","status":"available","current":false},{"slug":"visitor","title":"Odwiedzający","icon":"footprints","status":"available","current":false}]}