Advanced
Refactoring a Monolith to Hexagonal Architecture
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.