Hi guys, I’m new to event store and have a question regarding eventual consistency.
Is it correct, that if I append an event to a stream and right after read from the stream, that there is a guarantee (immediate consistency) that the event will be there?
Appending to a stream in a single write
Task<WriteResult> AppendToStreamAsync(string stream, long expectedVersion, IEnumerable<EventData> events)
I tested it and it seems to be the case but I don’t have the testing possibility at the moment to verify that it’s 100% the case also in production after collection much more streams and events then I currently have.
I couldn’t find the information in the docs, if there is, that would be very helpful
In a cluster “it depends” it depends on whether you read from a single node or multiple (quorum). Writes will by default always be to a quorum so if you set expected version properly you will always get an error in the edge case.