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

Поделиться
HTML-код
  • Опубликовано: 30 авг 2023
  • 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/mohamadlawand087
    🎫 LinkedIn - / mlawand
    💥 LinkTree - linktr.ee/mohamadlawand
    Gear I use (affiliate link): amzn.to/3EbT8Jw
    Support my work:
    / mohamadlawand
    www.buymeacoffee.com/mohamadl...
    Hire Me:
    transactions.sendowl.com/prod...
    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

Комментарии • 48

  • @moazzamqureshi7150
    @moazzamqureshi7150 9 месяцев назад +6

    Amazing In depth and systematic explanation!

  • @Andjelko999
    @Andjelko999 3 месяца назад

    Straight to the point, simple and well explained! Well done!

  • @nilokillian
    @nilokillian 10 месяцев назад +1

    love you vids mate, keep it up!

  • @SmittyRG
    @SmittyRG 2 месяца назад

    Awesome content! The diagrams really help to understand the high-level concepts. Great job!

  • @runawayvon01
    @runawayvon01 6 месяцев назад +1

    Awesome content and detailed explanation for beginners.

  • @kellyncodes7421
    @kellyncodes7421 5 месяцев назад

    I love your videos. You explain things in detail, thank you so much. It will be very nice to create the notification path too.🎉🎉👍🤜🤛

  • @xender2112
    @xender2112 10 месяцев назад +1

    Thanks, Mohammad.

  • @sumithc.ekanayake1010
    @sumithc.ekanayake1010 Месяц назад

    Awesome content and good explanation. Thank you

  • @siddistaken
    @siddistaken 7 месяцев назад

    Nice content and project idea end to end.

  • @lindermannla
    @lindermannla 10 месяцев назад

    Excelent content. Congratulations.

  • @TellaTrix
    @TellaTrix 7 месяцев назад

    wow very nice skills to teaching. Thank you for this valuable content

  • @moldovandorin6187
    @moldovandorin6187 24 дня назад

    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

  • @RoyZASTEROiD
    @RoyZASTEROiD 10 месяцев назад +1

    i like your videos like this, thank you.

  • @yoanantoniolopezrodriguez766
    @yoanantoniolopezrodriguez766 Месяц назад

    Amazing...

  • @EldonElledge
    @EldonElledge 8 месяцев назад +1

    Well done and informative. Thank you.

  • @devxbasit
    @devxbasit 5 месяцев назад

    insightful, thank you

  • @onlylovelyvibes4467
    @onlylovelyvibes4467 5 месяцев назад

    Amazing content

  • @okeluelazarus7062
    @okeluelazarus7062 5 месяцев назад

    This video is perfect

  • @andrei9218
    @andrei9218 6 месяцев назад +5

    Hi, could you please create the notification part also?

  • @blessdarah1256
    @blessdarah1256 10 месяцев назад +1

    Yes I am also interested in the notifications part

  • @shivaganga9148
    @shivaganga9148 5 месяцев назад

    Awesome

  • @chuonchuon7386
    @chuonchuon7386 4 месяца назад

    Thank you 😀

  • @fahamakhan3682
    @fahamakhan3682 10 месяцев назад +3

    please create notification part as well, thank you.

  • @mousaabdelnabyahmed878
    @mousaabdelnabyahmed878 Месяц назад

    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.

  • @shivaganga9148
    @shivaganga9148 5 месяцев назад +1

    Thanks!

  • @mohammedabdalla6452
    @mohammedabdalla6452 10 месяцев назад

    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

  • @blessdarah1256
    @blessdarah1256 10 месяцев назад

    Quick question: Does the new connection string improve on performance?

  • @user-hm6wx7kw9i
    @user-hm6wx7kw9i 9 месяцев назад

    yes notification please

  • @alexandermackintosh1755
    @alexandermackintosh1755 4 месяца назад

    Great video thanks! Is there any particular reason you used suffix 'request' instead of 'command' for the commands?

  • @kek_1459
    @kek_1459 10 месяцев назад

    Can you make a video about mediator notifications

  • @ShaZeGaming
    @ShaZeGaming 8 месяцев назад

    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?

  • @mkasem9408
    @mkasem9408 Месяц назад

    Hi, why you do mapping in Handlers and in Controllers?

  • @coreygerhardt9630
    @coreygerhardt9630 2 месяца назад

    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 2 месяца назад

      Per usual, soon after I ask for help, I've figure it out. Great videos!!

  • @kenjohnsiosan9707
    @kenjohnsiosan9707 Месяц назад

    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

  • @andrei9218
    @andrei9218 6 месяцев назад

    And if you could show how to add a new connection string for the queries

  • @foonlam7134
    @foonlam7134 8 месяцев назад +1

    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 4 месяца назад

      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!

  • @tarasiskiv9037
    @tarasiskiv9037 9 месяцев назад +2

    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

    • @ertan1147
      @ertan1147 8 месяцев назад

      I wrote an answer to @foonlam7134 , maybe it will help you too.

    • @syedakashmazhar1875
      @syedakashmazhar1875 5 месяцев назад

      I have the Exactly Same Question..

  • @kedarkulkarin78
    @kedarkulkarin78 2 месяца назад

    github code is not available it seems

  • @dosovi4548bustayes
    @dosovi4548bustayes 10 месяцев назад

    IMO Unitofwork better :)

    • @blessdarah1256
      @blessdarah1256 10 месяцев назад +1

      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 10 месяцев назад

      @@blessdarah1256 too much code..

  • @user-wg7vh6po3y
    @user-wg7vh6po3y 7 месяцев назад +1

    Please explain your videos in Arabic ..... please speak Arabic