TemplateMongoDB ObjectId uniquely identifying this message
The actual domain event/message data
Timestamp when the event was queued to the outbox
Partition key for horizontal scaling (default: 'default')
OptionalsentOptional timestamp when message was successfully sent (only if saveTimestamps enabled)
MongoDB document model for outbox messages.
This represents the structure of documents stored in the outbox collection. Each message is tracked with metadata for delivery and debugging.
Event - The type of the domain event/message
Example