REFACTORING to MEDIATOR & CQS Pattern | AWS Lambda | ASP NET Core
Hello friend, Refactoring is the process of restructuring existing computer code without changing its external behavior. Refactoring is intended to improve the design, structure, and/or implementation of the software (its non-functional attributes) while preserving its functionality. Refactoring is not a one-time activity but an ongoing process. In this video, I will show you how to refactor an existing application to use the Mediator and CQS pattern. The combination of these two patterns has been effective when building applications for different sizes of applications. It helps keep the code maintainable and extensible. The discoverability of code and functionality is also great with these patterns. I will be using an AWS Serverless Application template that exposes a CRUD API to manage blog items over a DynamoDB database. But the principles and the approach apply to any application you are building, be it ASP NET Core, Console application, etc. I will refactor this 00:00 - Introduction 01:06 - Setting up Application 04:25 - Onion Architecture 09:30 - Patterns To Avoid 11:18 - Mediator & CQS Intro 12:33 - MediatR 14:46 - Add Query 23:25 - Dependency Injection 35:00 - Add Command 🔗Source Repository - https://rahulpnath.visualstudio.com/YouTube%20Samples/_git/refactor-cqs-mediatr Additional Watching 📹AWS DynamoDB - https://youtu.be/BbUmLRaxZG8 📹AWS Lambda - https://youtu.be/IHIJFVUQyFY 📹AWS Series - https://youtube.com/playlist?list=PL59L9XrzUa-kl89ThijziX03fgTrbZCd7 📹Dependency Injection - https://youtu.be/YR6HkvNBpX4 📹Layering - https://youtu.be/43fg4T4iFGw 📹Secrets Manager - https://youtu.be/PkLLP2tcd28 📹ASP NET Core Series - https://www.youtube.com/playlist?list=PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP Come say hi! ✋ 🌍 Blog - https://rahulpnath.com/ ✉ Subscribe to my Newsletter - https://www.rahulpnath.com/subscribe 🐦Twitter - https://twitter.com/rahulpnath 📸Instagram - https://www.instagram.com/rahulpnath/ 🎥 Recording Setup and Workflow - https://www.rahulpnath.com/blog/youtube_setup_and_workflow/ Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.