ZooKeeper - Mini Transaction Support

less than 1 minute read

ZooKeeper mini transaction logic

The following pseudo code shows how to increase value x with version number information.

1
2
3
4
5
while (true) {
  x, v = getData('f')
  if setData('f', x + 1, v)
    break
}

Categories:

Updated: