Microservices with Kafka: Handle Distributed Transactions with Saga Pattern
Code Overdose
0:00 / 0:00
Microservices with Kafka: Handle Distributed Transactions with Saga Pattern
2 802 просмотра · 2 г. назад
Code Overdose
2,68 тыс. подписчиков
2 802 просмотра · 2 г. назад
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: • Microservices with Kafka: ECommerce Exampl...
Link download source code : https://github.com/dosehieu/ecommerce...
Create by: Dose Hieu
#dotnet #microservicesarchitecture #microservice #microservices #saga #dotnet8 #webapi #kafka #aspnetcore #blazor #dotnetaspire #ecommerce #csharp