“Create a layered web app package diagram with routes, application services, domain logic, infrastructure adapters, and dependencies.”
図の背後にある意思決定を読み解く。
Route packages invoke application services.
Business objects remain independent of delivery details.
Persistence and email sit in infrastructure.
Dependencies should point inward where possible.
Use to review module boundaries and communication paths in a web application.
よくある質問
What is a layered package diagram?
It groups a system by architectural layer and shows how one layer depends on another.
Where do repositories belong?
They are usually infrastructure concerns, even when an interface is referenced by application or domain code.
How detailed should it be?
Show important boundaries and dependencies, not every implementation class.