Attendance Technical Overview
Summary
Attendance Service is a .NET 8 ASP.NET Core bounded-context service for attendance records, punches, calculation, Time Office configuration, review workflows, employee attendance profiles, payroll snapshots, and attendance integration-event production.
Audience
- Backend and frontend developers
- QA, DevOps, support, security, and solution-architecture teams
Overview
Technical scope and responsibility
The service uses minimal API presentation, directly injected application services, domain aggregates and services, EF Core persistence backed by PostgreSQL, shared authentication and observability infrastructure, and a transactional outbox. It does not use MediatR. The gateway controls whether compatible attendance and Time Office traffic is served by the monolith or Attendance Service.
Architectural areas
Api: presentation and compatibility adaptersApplication: commands, queries, workflows, DTO mapping, validation, and portsDomain: attendance and Time Office models, invariants, calculation, repository ports, and domain eventsInfrastructure: persistence adapters, tenant filters, audit/timeline writers, outbox store and relay, and Payroll lock clientBackfill: migration and parity-support tooling for transitional Time Office ownershipProgram.cs: composition root, middleware, security, health, migrations, and endpoint mapping
Dependencies and maturity
The service references the Shared Kernel and Contracts projects. It depends conceptually on authenticated tenant context, an employee-profile projection, PostgreSQL, the event broker, the gateway, and Payroll lock state. Leave and holiday composition has no direct Attendance client and remains transitional. Attendance record and shift/policy gateway cutovers are independently controlled. The service is implemented but its ownership boundary remains Transitional during compatibility cutover.
Documentation map
- Architecture, responsibilities, project structure, and layers
- Domain model, attendance aggregate, Time Office, and calculator
- Application, infrastructure, repositories, command/query flow, and validation
- Tenant context, Payroll lock, employee profile, Leave, Payroll, and gateway
- Messaging, dependency injection, configuration, and security
- Observability, health, performance, testing, limitations, and future evolution
Detailed Attendance API documentation is available. Database, events, UI, operations, reference, and troubleshooting sections remain reserved for future epics.
Source References
microservices/src/attendance-service/Program.csmicroservices/src/attendance-service/attendance-service.csprojmicroservices/src/attendance-service/Domain/Repositories.csmicroservices/src/attendance-service/Infrastructure/AttendanceDbContext.cs
Related Articles
See Also
Keywords
- Attendance Service
- Technical architecture
- Time Office
Revision Information
- Status: Draft
- Last reviewed: 2026-07-15
- Review cycle: Quarterly