What to choose?
The next heuristic can be applied:
- Event-sourced domain model - CQRS.
- Domain model - Ports & Adapters.
- Active record - Layered architecture + Service Layer (4 layers).
- Transaction script - Layered architecture (3 layers).
- Subdomain requires representing its data in multiple persistent models - CQRS.