-
Notifications
You must be signed in to change notification settings - Fork 20
event context
Duncan Jones edited this page Sep 13, 2019
·
1 revision
When an event is written to an event stream, as well as the event data some context fields are added:
- Event Type - The business meaningful name of the type of event that was appended.
- Correlation Identifier - A string that can be set to an identifier to link together events that were appended by the same thing (Typically by a single command)
- ContextSource - Where the event came from - this could be the name of the command, or system for example.
- Commentary - Additional text that can be set to whatever the system would like - typically used for logging purposes
These context fields are not available to a Projection as they are not meant to be used for business logic.