Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get and puts are not transactional #11

Open
chitalian opened this issue Sep 29, 2023 · 1 comment
Open

Get and puts are not transactional #11

chitalian opened this issue Sep 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@chitalian
Copy link

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

@honzabit
Copy link
Owner

honzabit commented Oct 4, 2023

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 honzabit added the bug Something isn't working label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants