VIP 👤
🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles 🔌 API & Routeurs
advanced

Distributed Transactions with Sagas

#architecture #microservices #patterns #system-design

Design a choreography-based Saga pattern for an e-commerce order processing system.

Design a choreography-based Saga pattern to manage distributed transactions for an e-commerce platform consisting of Order Service, Payment Service, Inventory Service, and Shipping Service. Define the compensating transactions required for each service in case of a failure (e.g., payment timeout). Provide a sequence diagram illustrating the happy path and a rollback path triggered by an inventory shortage.