How do folks typically solve read-your-write consi...
# spicedb
a
How do folks typically solve read-your-write consistency with list endpoints? Example scenario: I add a document to a folder, when I go back to list all documents in the folder, I should see the document I just added. Storing zedtokens on each document, I guess you'd have to query all the documents' tokens, somehow know which was the latest, and query with that. Could you solve by storing a zedtoken with the "container" for the list endpoint? For example, if I'm storing documents in a folder, I store the zedtoken with the document but also the folder. But this could get tricky if there is a hierarchy of containers (multiple levels of folders), and with race conditions (e.g. lost update of a more recent token on the folder) 🤔 Is there something I'm not thinking of?
8 Views