Ticket domain implementation
This page describes the implementation reality of the Ticket boundary: what is actually built versus the target model, the persistence that does (and does not) exist, and the gap that a future aggregate-owning domain would have to close. See the domain model for the normalized contracts and Flows for the synchronization behavior.
Current implementation vs target model
Current status: there is no local ticket aggregate, ticket event store, ticket repository, or ticket operational projection in
boundedctx-tickets. ServiceNow/Ticketing remains authoritative for persisted ticket state.
| Area | Current implementation | Target or reference status |
|---|---|---|
| Domain role | Anti-corruption layer and synchronization/process-manager boundary | Current |
| Ticket authority | External ServiceNow/Ticketing system | Current |
| Local aggregate | None | Target concept only |
| Local event store | None | Target concept only |
| Local ticket projection | None | Target concept only |
| ION ticket events | Normalized integration events derived from SnowTicket* events | Current |
| Ticket mutations | External PatchTicketCommand with PatchTicketData | Current |
| Native ticket command API | None | Target concept only |
The older Ticket domain reference lists a proposed command-driven ticket model. Its aggregate, commands, SLA behavior, notes, and local persistence are not the current implementation.
Persistence and projections
| Capability | Current state |
|---|---|
| Ticket aggregate persistence | Not implemented |
| Ticket event-store container | Not implemented |
| Ticket SQL read model | Not implemented |
| Ticket replay into a local projection | Not implemented |
| Function host storage | Infrastructure/runtime concern only |
| Service Bus topics/subscriptions | Transport for provider events, normalized events, and commands |
| ServiceNow/Ticketing | Authoritative persisted ticket state |
The generic V3 event-sourcing design is a platform pattern, not evidence that the current Ticket boundary is event-sourced. See Data and events for that shared pattern.
Target-model gap
A future aggregate-owning Ticket domain would require explicit decisions and implementation for:
- aggregate identity, invariants, and legal state transitions;
- native ticket command contracts and handlers;
- local event-store and concurrency behavior;
- rebuildable operational projections and query APIs;
- ownership of notes, SLA behavior, assignment, and escalation state;
- migration and cutover of authority from ServiceNow;
- reconciliation rules between historical provider state and local streams.
Until those capabilities exist, documentation should describe the boundary as an anti-corruption and synchronization layer, not as an event-sourced Ticket Store.