node-zookeeper icon indicating copy to clipboard operation
node-zookeeper copied to clipboard

Transactions support

Open alexbidiuk opened this issue 2 years ago • 3 comments

There is no support of Transaction class

Do you have plans of implementing it?

alexbidiuk avatar Sep 13 '22 10:09 alexbidiuk

Hi @alexbidiuk, this looks interesting. What is it used for?

DavidVujic avatar Sep 13 '22 10:09 DavidVujic

@DavidVujic , it's just a wrapper to invoke multiple commands in atomic way.

Usage depends on your business logic needs. For example I used it to remove some subtree, starting from children, because other way race conditions were happening

alexbidiuk avatar Sep 13 '22 22:09 alexbidiuk

Thank you for explaining @alexbidiuk!

Usually, this library is aiming to keep up with the features in the official ZooKeeper C Client. But I agree this kind of feature would be useful, and if it is possible to develop it using Node.js (wrapping the basic C Client functionality) I think it would be a great addition.

I'll add the feature request label to this issue. It might also be related to the feature request described in #229.

DavidVujic avatar Sep 14 '22 06:09 DavidVujic