Anti-Corruption Layers for Event Driven Architecture on AWS with .NET 6

preview_player
Показать описание
Event Driven Architectures are great for reducing coupling between services at a process level. Replacing synchronous communication and starting to think asynchronously is great for reducing coupling. But it does introduce a different type of coupling.

The coupling has moved to be within the event schemas. If one service publishes an event and another service consumers it we now have coupling at the event level.

An anti-corruption layers were introduced by Eric Evans in Domain Driven Design. The intention of an ACL is to act as an interface or adapter between two different domains, stopping the domain of one context leaking into another.

In this video, we will look at how you can implement a simple anti-corruption layer using .NET6 and AWS serverless technologies.

00:00 - Introduction
00:55 - What are we going to build
02:20 - The challenges with EDA
03:40 - Introducing anti-corruption layers
04:15 - Implementing an anti-corruption layer
05:50 - Publishing a domain event in the consumer
08:00 - Updating domain logic to consume domain event
10:05 - Benefits of the ACL
11:35 - Dealing with an unexpected load
12:00 - Introducing SQS to the ACL
13:50 - Demo
16:10 - Closing thoughts

Links

Рекомендации по теме