durable-limiter icon indicating copy to clipboard operation
durable-limiter copied to clipboard

Get and puts are not transactional

Open chitalian opened this issue 2 years ago • 1 comments

https://developers.cloudflare.com/durable-objects/api/transactional-storage-api/

I believe you want to wrap all puts and gets into a specific transation. There is a risk of a race condition between puts and gets since each durable object may interweave I/O operations

chitalian avatar Sep 29 '23 19:09 chitalian

Hey @chitalian! thanks a lot for the report and yes, after reading some more about DO I/O your proposal sounds totally legit.

I have no idea when I'll find some spare time to work on that, just wanted to acknowledge it and thank you for the valuable report!

honzabit avatar Oct 04 '23 12:10 honzabit