Skip to main content

Compatibility API Boundaries

Summary​

The extracted compatibility layer binds the monolith-shaped Recruitment contract and translates it to GUID-based application commands and projections. Gateway selection can route the same external operation to either implementation.

Audience​

Developers, QA, support, security reviewers, and solution architects.

Compatibility routing​

Verified contract families​

The lifecycle subset covers workspace retrieval, offer status, move-to-onboarding, public offer read/sign/reject, onboarding status, and completion. Exact method/route pairs appear in the endpoint catalog.

Semantic differences​

ConcernMonolith targetExtracted target
Identifier modelNumeric monolith recordsNumeric compatibility identifiers translated to GUID aggregates
AuthenticationProtected internal actionsNo required endpoint policy
CompletionLabor/user creation and richer field persistenceEmployee Service create; login remains pending
Completion DTOConsumes many profile fieldsAccepts full shape but uses a subset
Public acceptanceCreates onboarding during signAcceptance and move are separate native concepts, adapter behavior bridges response
ErrorsMVC string/object resultsShared result-to-HTTP mapping

Compatibility is therefore route/shape preservation, not full side-effect equivalence.

Requires confirmation​

  • Formal parity matrix for fields, side effects, status codes, and error bodies.
  • Cutover, rollback, and data reconciliation procedures.
  • Compatibility deprecation and retirement version policy.
  • Security equivalence before selecting the extracted target.

Source References​

  • microservices/src/recruitment-service/Api/RecruitmentCompatEndpoints.cs
  • microservices/src/recruitment-service/Application/Compatibility/CompatContracts.cs
  • microservices/src/recruitment-service/Application/Compatibility/CompatCommands.cs
  • microservices/src/recruitment-service/Application/Compatibility/CompatQueries.cs
  • Controllers/RecruitmentController.cs
  • microservices/src/gateway-api/Program.cs
  • UI/salary-ui/apps/client-hrms-portal/src/pages/hr/RecruitmentOnboardingPage.tsx

See Also​

Keywords​

  • Compatibility adapter
  • Side-effect parity
  • Migration routing

Revision Information​

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