event envelope

A standard outer structure that wraps an event's business payload with metadata such as event ID, type, version and time.

In more detail

Unlike headers, envelope fields live inside the value and are versioned with it, so business logic can rely on them. Common fields are event_id, event_type, event_version, occurred_at and payload.

Example

{'event_id': 'evt-001', 'event_type': 'order.created', 'event_version': 1, 'payload': {...}}

Related terms

Taught in

References

Certification courses