.NET 7 💥 - Intro to CQRS and MediatR with ASP.NET Core Web Api

  Рет қаралды 30,076

Mohamad Lawand

Mohamad Lawand

Күн бұрын

In this video we will be going to learning about CQRS and MediatR with .NET Web API.
Support me on Patreon to access the source code:
/ mohamadlawand
Base App: • .NET 7 💥 - ASP.NET C...
Let us connect:
🌍 My website - mohamadlawand.com
📸 Instagram - / mohamadlawand087
🐦 Twitter - / moe23
♯ Github - github.com/moh...
🎫 LinkedIn - / mlawand
💥 LinkTree - linktr.ee/moha...
Gear I use (affiliate link): amzn.to/3EbT8Jw
Support my work:
/ mohamadlawand
www.buymeacoff...
Hire Me:
transactions.s...
WHO AM I:
I'm Mohamad, a Enterprise Architect working in Manchester, UK. I make videos about web, cloud, desktop and mobile development.
GET IN TOUCH:
If you’d like to talk, I’d love to hear from you. Tweeting @moe23 directly will be the quickest way to get a response, but if your question is very long, feel free to email me at hello@mohamadlawand.com.
#dotnet #mediatr #cqrs

Пікірлер
@shivaganga9148
@shivaganga9148 Жыл бұрын
Thanks!
@MohamadLawand
@MohamadLawand 11 ай бұрын
Thank you for your support
@hemkumardevarajan8164
@hemkumardevarajan8164 21 күн бұрын
Great job on the presentation! The explanation and example were outstanding!!
@yohanneskindu8794
@yohanneskindu8794 5 ай бұрын
The level of detail, structure, and thought you've put into this content is truly remarkable. Fantastic video! Keep up the incredible work!
@funshorts1248
@funshorts1248 Жыл бұрын
Amazing In depth and systematic explanation!
@Andjelko999
@Andjelko999 10 ай бұрын
Straight to the point, simple and well explained! Well done!
@moldovandorin6187
@moldovandorin6187 7 ай бұрын
this is the only clip where the author actually explains what's happening with the query, the handler and how mediator is using behind the scene the send method to process a query by the handler. Almost all the other videos are just mechanically showing ...this is the query, this is the handler, this is the mediator send ... bla bla bla with zero knowledge transfer. Thank you for the video Mohamad
@runawayvon01
@runawayvon01 Жыл бұрын
Awesome content and detailed explanation for beginners.
@andrei9218
@andrei9218 Жыл бұрын
Hi, could you please create the notification part also?
@SmittyRG
@SmittyRG 9 ай бұрын
Awesome content! The diagrams really help to understand the high-level concepts. Great job!
@kellyncodes7421
@kellyncodes7421 Жыл бұрын
I love your videos. You explain things in detail, thank you so much. It will be very nice to create the notification path too.🎉🎉👍🤜🤛
@nilokillian
@nilokillian Жыл бұрын
love you vids mate, keep it up!
@nasermasri3816
@nasermasri3816 3 ай бұрын
Super work!
@Siddistaken
@Siddistaken Жыл бұрын
Nice content and project idea end to end.
@TellaTrix
@TellaTrix Жыл бұрын
wow very nice skills to teaching. Thank you for this valuable content
@xender2112
@xender2112 Жыл бұрын
Thanks, Mohammad.
@sumithc.ekanayake1010
@sumithc.ekanayake1010 8 ай бұрын
Awesome content and good explanation. Thank you
@blessdarah1256
@blessdarah1256 Жыл бұрын
Yes I am also interested in the notifications part
@TheImranbergi
@TheImranbergi 6 ай бұрын
simply awesome explanation..
@RoyZASTEROiD
@RoyZASTEROiD Жыл бұрын
i like your videos like this, thank you.
@Mohammad_Fael
@Mohammad_Fael 3 ай бұрын
Good explaination but I think it'll be more clear if you name all classes with an end that refers to thier types like ____dto, ____command, _____handler,.....etc.
@vaclavpernicka9471
@vaclavpernicka9471 3 ай бұрын
In the beginning in your slides you have dependencies between services. In the projects itself you just have controllers with business logic inside them. So it's kinda different. In the project IMO initial state should have a BLL.
@kenjohnsiosan9707
@kenjohnsiosan9707 8 ай бұрын
i use PHP for most of my projects, im new to .NET what is the benefit of using different connection string , does that mean there are multiple database? thanks
@foonlam7134
@foonlam7134 Жыл бұрын
I'm see a lot if the Mediatr ir cqrs video show only simple crud operations. I have a complex app where i am processing messages that come in deoending on the message type. The method in my current controller has to call several other services and make http requests to third parties as well. My question is do i put all the method logic into the handler or do i need to create a separate command and separate handler for each if the service calls i make. If so, who will be orchestrating the process flow. If we put the whole logic into the handler are we not just moving the logic into another layer? This is where I'm confused. I wish someone would nake a video showing a bit more complexity in the handlers. I understand that they show the simple stuff so that we understand how it works but i need to know what the right approach is for complex logic
@alexandermackintosh1755
@alexandermackintosh1755 11 ай бұрын
I think moving the business logic into its own layer is a benefit for sure, it's a big part of what using mediatR or services or specifications or whatever all have in common. The core business logic lives in one separated later away from all the interactions with the outside world (external APIs, databases, filesystems etc) so your handler/services/specifications are really obvious what their logic is and really easy to test. Whichever of these you pick I'm not convinced make too much difference tbh, as long as you pick atleast one of them!
@SyedMubeenHussain-v9b
@SyedMubeenHussain-v9b Ай бұрын
best video
@tarasiskiv9037
@tarasiskiv9037 Жыл бұрын
I can't understand for what I need mediatR. So, if I keep all logic in my services, and in the controler's methods I just call methods from my services, why I need to use mediatR? It's easier to avoid mediatR. And also, it requires less code. Can someone explain me, why mediatR is better? Thanks
@graphboss
@graphboss Жыл бұрын
I wrote an answer to @foonlam7134 , maybe it will help you too.
@syedakashmazhar1875
@syedakashmazhar1875 Жыл бұрын
I have the Exactly Same Question..
@lindermannla
@lindermannla Жыл бұрын
Excelent content. Congratulations.
@mkasem9408
@mkasem9408 8 ай бұрын
Hi, why you do mapping in Handlers and in Controllers?
@okeluelazarus7062
@okeluelazarus7062 Жыл бұрын
This video is perfect
@onlylovelyvibes4467
@onlylovelyvibes4467 Жыл бұрын
Amazing content
@fahamakhan3682
@fahamakhan3682 Жыл бұрын
please create notification part as well, thank you.
@alexandermackintosh1755
@alexandermackintosh1755 11 ай бұрын
Great video thanks! Is there any particular reason you used suffix 'request' instead of 'command' for the commands?
@yoanantoniolopezrodriguez766
@yoanantoniolopezrodriguez766 8 ай бұрын
Amazing...
@shivaganga9148
@shivaganga9148 Жыл бұрын
Awesome
@EldonElledge
@EldonElledge Жыл бұрын
Well done and informative. Thank you.
@MohamadLawand
@MohamadLawand Жыл бұрын
Glad it was helpful!
@imsupersir1134
@imsupersir1134 3 ай бұрын
With the mediator pattern, are we creating a bottleneck?, by the way the content is good and the explanations is excellent, thanks a lot.
@mousaabdelnabyahmed878
@mousaabdelnabyahmed878 8 ай бұрын
There is a lot of English content and I noticed that you are smart, It would be great if your content was in Arabic, or at least had another Arabic content besides the english one. Thank you.
@a.g.b7398
@a.g.b7398 2 ай бұрын
can you explain the notification section
@coreygerhardt9630
@coreygerhardt9630 9 ай бұрын
Excellent videos. I've scoured this and its previous video to learn CQRS and Mediatr. I can't find how you made Delete and Update async though.
@coreygerhardt9630
@coreygerhardt9630 9 ай бұрын
Per usual, soon after I ask for help, I've figure it out. Great videos!!
@chuonchuon7386
@chuonchuon7386 11 ай бұрын
Thank you 😀
@andrei9218
@andrei9218 Жыл бұрын
And if you could show how to add a new connection string for the queries
@ShaZeGaming
@ShaZeGaming Жыл бұрын
Hello, im try to learning from you. But in this class, i got the ' No service for type 'MediatR.IRequestHandler' has been registred' Error with MediatR. I try to fix this on the internet bu nothing work for me. Do you have any solution for it?
@blessdarah1256
@blessdarah1256 Жыл бұрын
Quick question: Does the new connection string improve on performance?
@MilanZarathustra
@MilanZarathustra Жыл бұрын
yes notification please
@kek_1459
@kek_1459 Жыл бұрын
Can you make a video about mediator notifications
@mohammedabdalla6452
@mohammedabdalla6452 Жыл бұрын
Hello and thank you for the great content Can you put all of this in a small project and use the tdd approach Thank you again
@kedarkulkarin78
@kedarkulkarin78 9 ай бұрын
github code is not available it seems
@dosovi4548bustayes
@dosovi4548bustayes Жыл бұрын
IMO Unitofwork better :)
@blessdarah1256
@blessdarah1256 Жыл бұрын
UnitOfWork does the job just fine but CQRS really makes it easy to scale your API very well and really have a good separation of concerns.
@dosovi4548bustayes
@dosovi4548bustayes Жыл бұрын
@@blessdarah1256 too much code..
@LuminoSkywalker
@LuminoSkywalker Жыл бұрын
Please explain your videos in Arabic ..... please speak Arabic
Intro to MediatR - Implementing CQRS and Mediator Patterns
1:21:50
IAmTimCorey
Рет қаралды 234 М.
Minecraft: Who made MINGLE the best? 🤔 #Shorts
00:34
Twi Shorts
Рет қаралды 46 МЛН
Squid game
00:17
Giuseppe Barbuto
Рет қаралды 38 МЛН
CQRS pitfalls and patterns - Udi Dahan - NDC Oslo 2023
59:26
NDC Conferences
Рет қаралды 27 М.
Python to blocks pairing with Nicholas and Josh
2:03:25
Nicholas Tollervey
Рет қаралды 3
CQRS & MediatR in a .NET 8 Web API 🚀
22:00
Patrick God
Рет қаралды 20 М.
MediatR: Why should you use it?
7:20
CodeOpinion
Рет қаралды 61 М.
.NET 6 - Web API Caching with Redis ⏲🌐
1:04:23
Mohamad Lawand
Рет қаралды 39 М.
What if all the world's biggest problems have the same solution?
24:52
CQRS Doesn't Have To Be Complicated | Clean Architecture, .NET 6
24:09
Milan Jovanović
Рет қаралды 120 М.