April 2020
Intermediate to advanced
292 pages
6h 50m
English
In Chapter 2, Writing Messages, we showed some example messages. That’s what they look like before being written to the Message Store. The act of writing them adds some additional fields:
A string and the name of the stream this event belongs to. We discussed the importance of streams and how they’re namedhere.
This is used for optimistic locking, a method for dealing with concurrent writes. It denotes a particular message’s position within its stream. The Message Store will generate these values.
Just as position records a message’s position within its stream, globalPosition records a message’s position within the entire Message Store. This field enables real-time consumption ...