issues
search
wgaffa
/
finance_rust
0
stars
0
forks
source link
StreamEvent
#5
Open
wgaffa
opened
2 years ago
wgaffa
commented
2 years ago
Type: a string, defined by the application.
Stream: the stream the event belongs to, controlled by the applications.
Id: a string, unique over the store, either supplied by the application or the server, most of the time this is some sort of UUID.
Revision: a number representing the position in the specific instance stream this event is part of.
Positions: Numbers representing the global position of the event in the different levels of the stream structure.
Data: the payload of the events, no assumptions should be made on the data format, it could be JSON, byte arrays, XML,...
Metadata: should have a clear distinction between the system reserved metadata and client-supplied metadata.
System Metadata
Timestamp: the date and time when the event was appended to the store, controlled by the database.
CorrelationId: supplied by the application.
CausationId: supplied by the application.
Application Metadata: any application-level metadata, no assumptions should be made on the data format.