Persistence Ownership and Boundaries
Audience
Developers, QA and support engineers, data reviewers, implementation partners, solution architects, privacy reviewers and security reviewers.
Reference Content
Summary
Ownership follows runtime bounded contexts, while compatibility routing creates a second implementation path.
Ownership matrix
| Concern | Source-confirmed owner | Boundary |
|---|---|---|
| Candidate, offer and extracted onboarding | Recruitment Service | Recruitment context |
| Extracted employee profile and employment | Employee Service | Employee context |
| Compatibility candidate onboarding and tasks | Compatibility application | Compatibility context |
| Resignation, decisions and access revocation | Compatibility HR Operations | Compatibility context |
| Payroll employee readiness projection | Payroll Service | Payroll context |
| Attendance profile, policy and assignment | Attendance Service | Attendance context |
| Leave profile, policy and balances | Leave Service | Leave context |
| Asset inventory and assignment history | Asset Service | Asset context |
| Message delivery and notification evidence | Notification Service and compatibility notification features | Separate local contexts |
Trust boundaries
The gateway changes which owner receives a request but stores no lifecycle data itself.
Important distinctions
- Recruitment onboarding and compatibility candidate onboarding are not the same persisted aggregate.
- Employee Service and the compatibility workforce record are independent canonical candidates; the source contains no database synchronization contract that makes them equivalent.
- Asset clearance can be queried in Asset Service, but exit persistence does not enforce that result.
- Notification evidence is delivery-oriented and does not replace lifecycle audit evidence.
Requires confirmation
Unless explicitly confirmed above, production migration governance, rollback, reconciliation, retention, privacy, performance, concurrency and operational ownership require confirmation.
Source References
microservices/src/recruitment-service/Infrastructure/RecruitmentDbContext.csmicroservices/src/employee-service/Infrastructure/EmployeeDbContext.csData/AppDbContext.cs
Related Articles
See Also
Keywords
- Onboarding database
- Offboarding database
- Lifecycle persistence
Revision Information
- Status: Draft
- Last reviewed: 2026-07-20
- Review cycle: Quarterly