Skip to main content

Employee Events and Integration Contracts

Summary

This section records only the Employee event behavior confirmed in backend source. It covers aggregate-raised domain events, shared integration contracts, transactional outbox staging, confirmed consumer subscriptions, and explicit implementation gaps.

Audience

  • Backend developers and integration engineers
  • QA and automation engineers
  • Solution architects and service owners
  • DevOps and support engineers

Overview

Employee aggregate operations raise seven domain-event types. EmployeeDbContext maps each type to a version-one shared contract and stages it in the outbox during the same save. The shared publisher and outbox processor exist, but Employee Service has no confirmed hosted relay registration that calls the processor. End-to-end Employee publication is therefore Transitional, and operational relay ownership Requires confirmation.

Section map

AreaPage
Architecture and boundariesEvent overview
Aggregate notificationsDomain events
Public shared contractsIntegration events
Mapping and stagingPublishing flow
Delivery stateOutbox and delivery
Verified subscribersConsumer landscape
Lifecycle triggersEmployee lifecycle events
Assignment changesOrganization change events
Timeline emissionTimeline events
Evolution rulesContract versioning
Duplicate and order handlingIdempotency and ordering
Failure behaviorRetry and failure handling
VerificationIntegration testing guide
Complete inventoryEvent catalog

Safety and evidence boundary

Payload fields are described by purpose, not populated examples. Broker credentials, connection values, internal hosts, topology identifiers, customer data, and personal information are excluded. Unverified runtime behavior is marked Requires confirmation, Transitional, Foundation, or Not implemented.

Source References

  • microservices/src/employee-service/Domain/Employees/Employee.cs
  • microservices/src/employee-service/Infrastructure/EmployeeDbContext.cs
  • microservices/src/employee-service/Infrastructure/Persistence.cs
  • microservices/src/contracts/Events/
  • microservices/src/shared-kernel/Messaging/
  • microservices/src/shared-kernel/Outbox/

See Also

Keywords

  • Employee events
  • Integration contracts
  • Transactional outbox

Revision Information

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