- 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.
- 網(wǎng)絡(luò)服務(wù)器架設(shè)(Windows Server+Linux Server)
- OpenStack Cloud Computing Cookbook(Second Edition)
- 大數(shù)據(jù)平臺異常檢測分析系統(tǒng)的若干關(guān)鍵技術(shù)研究
- AI 3.0
- Hands-On Reactive Programming with Reactor
- 教育機(jī)器人的風(fēng)口:全球發(fā)展現(xiàn)狀及趨勢
- 過程控制系統(tǒng)
- Spatial Analytics with ArcGIS
- 強(qiáng)化學(xué)習(xí)
- 和機(jī)器人一起進(jìn)化
- Spark大數(shù)據(jù)商業(yè)實(shí)戰(zhàn)三部曲:內(nèi)核解密|商業(yè)案例|性能調(diào)優(yōu)
- 智慧未來
- AMK伺服控制系統(tǒng)原理及應(yīng)用
- Drupal高手建站技術(shù)手冊
- 無人駕駛感知智能