MongoDB ObjectId uniquely identifying this consumer
Timestamp when this consumer was created
ObjectId of the last successfully processed message (null if none processed yet)
Timestamp of last state update (null if never updated)
Partition key this consumer is responsible for
MongoDB Change Stream resume token for crash recovery
MongoDB document model for outbox consumer state.
This tracks the consumer's progress through the Change Stream, enabling resume capability after crashes or restarts.
Example