VIP 👤
🏠 Início
Avaliações
📊 Todos os Benchmarks 🦖 Dinossauro v1 🦖 Dinossauro v2 ✅ Aplicações To-Do List 🎨 Páginas Livres Criativas 🎯 FSACB - Showcase Definitivo 🌍 Benchmark de Tradução
Modelos
🏆 Top 10 Modelos 🆓 Modelos Gratuitos 📋 Todos os Modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de Prompts 📖 Glossário de IA 🔗 Links Úteis 🔌 APIs e roteadores
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.