advanced
Monolith to Microservices
Plan the refactoring of a monolithic class structure into a modular design.
📝 プロンプトの内容
Analyze a theoretical 'OrderProcessor' monolithic class that handles validation, inventory checks, payment processing, and shipping notifications in a single method. Propose a detailed refactoring plan to separate these concerns into distinct classes adhering to SOLID principles. Provide the new class structure, interfaces, and an explanation of the design patterns applied.