Skip to main content

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

ConcernSource-confirmed ownerBoundary
Candidate, offer and extracted onboardingRecruitment ServiceRecruitment context
Extracted employee profile and employmentEmployee ServiceEmployee context
Compatibility candidate onboarding and tasksCompatibility applicationCompatibility context
Resignation, decisions and access revocationCompatibility HR OperationsCompatibility context
Payroll employee readiness projectionPayroll ServicePayroll context
Attendance profile, policy and assignmentAttendance ServiceAttendance context
Leave profile, policy and balancesLeave ServiceLeave context
Asset inventory and assignment historyAsset ServiceAsset context
Message delivery and notification evidenceNotification Service and compatibility notification featuresSeparate 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.cs
  • microservices/src/employee-service/Infrastructure/EmployeeDbContext.cs
  • Data/AppDbContext.cs

See Also

Keywords

  • Onboarding database
  • Offboarding database
  • Lifecycle persistence

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-20
  • Review cycle: Quarterly