MadeStone

How to Use the Domain Event Pattern | DDD, Clean Architecture, .NET 6

Просмотры:
26
Дата загрузки:
29.11.2023 03:10
Длительность:
00:09:48
Категория:
Технологии и интернет

Описание

? Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ

? Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic

The Domain Event pattern is a very useful way to offload important work to the background. In this video, I'm going to show you how to use domain events to improve the reliability of your code. Domain events can only be raised by the aggregate roots in our Domain model. After a domain event is raised, it is handled in the corresponding domain event handler.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Subscribe for more:
https://www.youtube.com/c/MilanJovanovicTech?sub_confirmation=1

Chapters
0:00 What is a Domain event
1:25 Creating a Domain event
2:38 Raising Domain events from AggregateRoot
4:28 Implementing a Domain event handler
8:38 How to publish Domain Events

Источники:

Рекомендуемые видео