Leave Layered Architecture
Summary
Presentation delegates directly to application services; application code coordinates domain objects through ports implemented by infrastructure.
Audience
Backend developers, architects, QA, and new engineers.
Overview
Presentation performs request binding and response translation. Application services orchestrate validation, repository lookups, external checks, domain mutation, audit/timeline recording, and DTO mapping. Domain code is infrastructure-independent. Infrastructure implements ports with EF Core and HTTP clients. Messaging hosts publication and Employee projection consumption. Dependency direction is enforced by namespaces/project organization rather than separate assemblies.
Source References
microservices/src/leave-service/Api/LeaveEndpoints.csmicroservices/src/leave-service/Application/LeaveWorkflows.csmicroservices/src/leave-service/Domain/Repositories.csmicroservices/src/leave-service/Infrastructure/Persistence.cs
Related Articles
See Also
Keywords
- Leave Service
- Leave Layered Architecture
- Technical architecture
Revision Information
- Status: Draft
- Last reviewed: 2026-07-15
- Review cycle: Quarterly