☄️ Master the Modular Monolith Architecture: bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: / milanjovanovic
Domain Events are a useful pattern to offload important side effects to the background. In this video, I will show you how to use domain events to improve the reliability of your code. Domain events can only be raised in the Domain layer. After a domain event is raised, it is handled in the corresponding domain event handler. Scalability is important. Domain events can help you build a scalable system by allowing you to achieve a decoupled architecture. I'll discuss the pros and cons of publishing domain events with EF Core.
Join my weekly .NET newsletter:
www.milanjovanovic.tech
Read my Blog here:
www.milanjovanovic.tech/blog
How To Use Domain Events To Build Loosely Coupled Systems:
www.milanjovanovic.tech/blog/...
Chapters
0:00 How a Domain Event is raised
1:14 Creating the Domain Event handler
4:03 Publishing Domain Events with EF Core
6:17 Publishing Domain Events BEFORE saving changes
8:46 Publishing Domain Events AFTER saving changes
Негізгі бет Ғылым және технология Don't Make This Common Domain Events Mistake
Пікірлер: 31