- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 199字
- 2021-07-03 00:19:24
Lightweight transactions
As discussed before, Cassandra provides eventual consistency rather than immediate consistency, which means data written will eventually be consistent across multiple replicas of the data. This has implications on the data returned by read queries. There is a possibility that reads could return stale data depending on how writes and reads are configured (the consistency levels at which both queries are performed). Strong consistency, which means reading the most recently written value, can be achieved using quorum reads and writes. But what if strong consistency is not enough? What if we have some operations to perform in sequence that must not be interrupted by others, that is, we must perform them one at a time, or make sure that any that we do run concurrently get the same results as if they really were processed independently. Cassandra provides lightweight transactions with linearizable consistency to ensure a transaction isolation level similar to the serializable level offered by RDBMSs. They are also known as compare and set transactions. You can use lightweight transactions instead of durable transactions with eventual/tunable consistency for situations that require the nodes in the distribution system to agree on changes to the data.
- 工業(yè)機(jī)器人產(chǎn)品應(yīng)用實(shí)戰(zhàn)
- Python Artificial Intelligence Projects for Beginners
- 流處理器研究與設(shè)計(jì)
- 樂高創(chuàng)意機(jī)器人教程(中級 下冊 10~16歲) (青少年iCAN+創(chuàng)新創(chuàng)意實(shí)踐指導(dǎo)叢書)
- Windows內(nèi)核原理與實(shí)現(xiàn)
- Mastering Game Development with Unreal Engine 4(Second Edition)
- 空間站多臂機(jī)器人運(yùn)動(dòng)控制研究
- TensorFlow Reinforcement Learning Quick Start Guide
- 空間機(jī)械臂建模、規(guī)劃與控制
- Word 2007,Excel 2007辦公應(yīng)用融會貫通
- 格蠹匯編
- INSTANT Puppet 3 Starter
- Java求職寶典
- Mastercam X5應(yīng)用技能基本功特訓(xùn)
- Qt中的C++技術(shù)