Cratis Chronicle event metadata tags for stream routing
Event metadata tags in Cratis Chronicle identify which source and stream an event belongs to. Use them to distinguish an account’s transactions from its onboarding events, or to check for concurrent changes to a particular stream before appending. These four values sit alongside the event’s payload.
EventSourceType
Section titled “EventSourceType”EventSourceType identifies the category of event source, such as Account. It distinguishes account events from events belonging to orders or shipments.
EventSourceId
Section titled “EventSourceId”EventSourceId identifies the particular source, such as an account number. Events for the same account share this value even when they belong to different processes.
EventStreamType
Section titled “EventStreamType”EventStreamType identifies a process within the source, such as Onboarding or Transactions. An event source definition declares the stream names you can append through.
EventStreamId
Section titled “EventStreamId”EventStreamId distinguishes stream instances within the same source and stream type. For example, separate IDs can keep monthly transaction streams apart.
Declare the source type and stream types once with event sources and streams, then append through that definition instead of repeating names at each call site.
All four values can narrow a concurrency scope: the set of events Chronicle checks for changes before accepting an append. This is how Chronicle expresses an append condition for a Dynamic Consistency Boundary. Custom tags support categorization and filtering, but do not take part in that check.