docs/architecture-decision-log/0010-use-clean-architecture-for-writes.md
Date: 2019-07-01
Log date: 2019-11-05
Accepted
We applied the CQRS style (see ADR #7), now we need to decide how to handle writing operations (Commands).
We will use Clean Architecture to handle commands with 4 layers: API layer, Application Service layer, Infrastructure layer and Domain layer. </br> We need to add Domain layer because domain logic will be complex and we want to isolate this logic from other stuff like infrastructure or API. Isolation of domain logic supports testing, maintainability and readability.