
The infrastructure layer contains implementations for persistence, messaging, file storage, and external services.
Typical responsibilities:
1. EF Core DbContext and entity configurations.
2. Repository implementations for aggregates.
3. Adapters for external APIs, queues, and caches.
Dependency direction: Infrastructure depends on application/domain abstractions, not the other way around.
Architecture impact: Isolating infrastructure keeps your core logic independent of specific databases or external technologies.
Reference:
TaskLoco™ — The Sticky Note GOAT