Skip to content

[Transactions] Can I use Read, Modify, Write pattern in transactions? #593

Answered by steebchen
liamross asked this question in Q&A
Discussion options

You must be logged in to vote

I believe whatever you can do with the JS transactions in the link you mentioned you should be able to do in the Go client as well.

However, getting the result before running the transaction as per your example code will not work, and as far as I know will also not work with the JS client with the pattern you referred to – you'd rather not use transactions at all but use a different mechanism of making sure no conflicts can arise.

This will be possible in JS using interactive transactions which is in preview right now but interactive transactions don't exist for the Go client yet (follow #569 for updates).

Please do correct me if this is not right or if you meant something different.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by liamross
Comment options

You must be logged in to vote
1 reply
@steebchen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants