In this video, we explore how to handle distributed transactions in a microservices architecture using Kafka and the Saga pattern. We'll introduce the Saga pattern, explaining its importance in maintaining data consistency across services.
Through real-world demos, we’ll showcase both the choreography-based approach and the orchestrator-based approach, highlighting their differences, benefits, and use cases. Whether you're new to microservices or looking to refine your skills, this video will guide you through implementing reliable distributed transactions with Kafka.
0:00 Introduction Saga Pattern
2:52 Choreography Explained
5:49 Orchestrator Explained
7:51 Improving Producer and Consumer
13:24 Success Flow in Choreography
17:08 Managing Kafka Topics
24:33 Failure Flow in Producer
Link to Part 1: https://www.youtube.com/watch?v=CbDgOlqBvrs
Link download source code : https://github.com/dosehieu/ecommerce-microservice-kafka
Create by: Dose Hieu
#dotnet #microservicesarchitecture #microservice #microservices #saga #dotnet8 #webapi #kafka #aspnetcore #blazor #dotnetaspire #ecommerce #csharp