🏠 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

Refactoring a Monolith to Hexagonal Architecture

#refactoring #clean-architecture #design-patterns #legacy-code

Strategic planning for converting legacy codebases to modern ports-and-adapters.

You are tasked with refactoring a monolithic Rails application containing 500k lines of code into a Hexagonal (Ports and Adapters) architecture. Outline a step-by-step strangler fig pattern migration strategy. Explain how to define domain boundaries to extract bounded contexts, and provide a specific example of how to invert dependencies for a complex payment processing module without causing downtime.