Payroll Service Architecture
Summary
Payroll Service is a .NET 8 ASP.NET Core bounded-context service with minimal APIs, direct application-service orchestration, EF Core persistence, messaging projections, and gateway-controlled transitional ownership.
Audience
Backend and frontend developers, QA and DevOps engineers, support and security engineers, and solution architects.
Overview
Payroll Service is a .NET 8 ASP.NET Core bounded-context service with minimal APIs, direct application-service orchestration, EF Core persistence, messaging projections, and gateway-controlled transitional ownership.
Technical Detail
Architectural boundaries
The service separates API presentation, application orchestration, domain records, infrastructure persistence, messaging consumers, and document/export generation. Shared Kernel wiring supplies configuration, messaging, correlation, and tracing; Contracts supplies integration-event types.
Runtime dependencies
Conceptual runtime dependencies are PostgreSQL, the integration broker, gateway-forwarded request context, upstream event producers, and downstream notification consumers. PDF and CSV generation currently execute inside Payroll Service.
Current maturity
Transitional. Native and monolith-compatible surfaces coexist, gateway routing controls ownership, historical backfill tooling supports extraction, and several boundaries remain foundations rather than completed integrations.
Source References
microservices/src/payroll-service/Program.csmicroservices/src/payroll-service/payroll-service.csprojmicroservices/src/payroll-service/Infrastructure/PayrollDbContext.csmicroservices/src/payroll-service/Messaging/PayrollReadModelConsumer.csmicroservices/src/gateway-api/Program.cs
Related Articles
See Also
Keywords
- Payroll Service
- Payroll Service Architecture
- Technical architecture
Revision Information
- Status: Draft
- Last reviewed: 2026-07-15
- Review cycle: Quarterly