🏠 Accueil
基準測試
📊 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 📖 人工智能詞彙表 🔗 Liens Utiles
advanced

Refactor Monolithic Architecture to Microservices

#software-architecture #refactoring #system-design

Analyze a legacy monolithic codebase description and propose a detailed migration strategy to microservices, focusing on data decomposition and communication patterns.

You are a Solutions Architect tasked with refactoring a legacy e-commerce monolith written in Java. The application handles user management, inventory, order processing, and payment gateway integration within a single deployable unit. The database is a massive SQL schema with heavily normalized tables causing locking issues during high traffic. Your task is to provide a comprehensive migration plan: 1. Identify the bounded contexts and propose how to split the database per service. 2. Define the interservice communication strategy (synchronous vs. asynchronous) for updating inventory when an order is placed. 3. Explain how you will handle data consistency and distributed transactions across the new services. 4. Propose a strategy for implementing API gateways and service discovery.