how to integrate cassandra with zookeeper to support transactions

前端 未结 4 1017
夕颜
夕颜 2021-01-02 00:45

I have a Cassandra cluster and Zookeeper server installed. Now I want to support transactions in cassandra using zookeeper. How do i do that.

Zookeeper creates znod

4条回答
  •  情话喂你
    2021-01-02 01:14

    There are ways you can use to implement transactions in Cassandra without ZooKeeper.

    Cassandra itself has a feature called Lightweight transactions which provides per key linearizability and compare-and-set. With such primitives you can implement serializable transactions on the application level by youself.

    Please see the Visualization of serializable cross shard client-side transactions post for for details and step-by-step visualization.

    The variants of this approach are used in Google's Percolator system and in CockroachDB.

    By the way, if you're fine with Read Committed isolation level then it makes sense to take a look on the RAMP transactions paper by Peter Bailis.

提交回复
热议问题