🏠 Trang chủ
Benchmark
📊 Tất cả benchmark 🦖 Khủng long v1 🦖 Khủng long v2 ✅ Ứng dụng To-Do List 🎨 Trang tự do sáng tạo 🎯 FSACB - Trình diễn cuối cùng 🌍 Benchmark dịch thuật
Mô hình
🏆 Top 10 mô hình 🆓 Mô hình miễn phí 📋 Tất cả mô hình ⚙️ Kilo Code
Tài nguyên
💬 Thư viện prompt 📖 Thuật ngữ AI 🔗 Liên kết hữu ích
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.