Closed penberg closed 7 months ago
Depending on the Hrana API you are using, you may be missing the response replication index. It's there for batch response, but may be missing in other places, let me know, and I'll make it a priority to fix it for you
We have reports that the following scenario breaks read-your-write guarantee with replicas:
@MarinPostma pointed out that we need to request a read at the same replication index as the last write in the client to guarantee read-your-write. The replication index support in the protocol is undocumented, but here are some pointers:
https://github.com/tursodatabase/libsql/blob/main/libsql-server/src/hrana/proto.rs#L16-L35
https://github.com/tursodatabase/libsql/blob/main/libsql-server/src/hrana/proto.rs#L95