Closed Davidsv closed 6 years ago
Hi,
Ye, I think it's totally possible.
Nevertheless, I never intended the returned stream header to be consistent with the number of events in the slice. The stream header is returned along with the slice only for informational purposes, like what is the current state of the stream at the time of reading a slice.
That's why ReadAsync()
api method doesn't require you to pass the header and only uses stream version. So, when reading use the version of the last event in the current slice to read the next slice.
Thanks. In my case, I'll have to account for this. I understand it's just the way table storage works though.
Hi, imagine this scenario:
This is difficult to test due to small time window where this could happen which is why I'm asking if it's even possible. I think batch writes are atomic, but are reads (within one GET)?