本文介绍了Cassandra最终一致性的含义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Cassandra中的最终一致性的含义是,单个集群中的节点不包含相同数据的副本,但数据在节点之间分布。现在由于单个数据点被记录在单个位置(节点)。为什么Cassandra不会从这个单一的记录中返回最近的价值?

What is the meaning of eventual consistency in Cassandra when nodes in a single cluster do not contain the copies of same data but data is distributed among nodes. Now since a single peice of data is recorded at a single place (node). Why wouldn't Cassandra return the recent value from that single place of record? How do multiple copies arise in this situation?

推荐答案

它由客户端决定适当的一致性级别(零,任何,一个,quoram或全部)。
(一致性级别控制基于您的复制因子的读取和写入行为。)
在单节点集群中,一致性级别any,one,quorom和all都是等价的。

Its up to the client to decide the appropriate consistency level (zero, any, one, quoram or all).(The consistency level controls both read and write behavior based on your replicationfactor.)In a single node cluster the consistency levels any, one, quorom and all are equivalent.

这篇关于Cassandra最终一致性的含义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 04:57