在 Cassandra 中,我需要一个 CL 来确保我可以进行 100% 异步写入。因此,理想情况下,协调器节点应该记录数据并返回 SUCCESS。
查看文档,没有 CL 级别可以执行此操作。 ANY 上的文档说它必须写入至少一个节点。
那么,有没有办法在 Cassandra 中进行异步写入?
谢谢
最佳答案
如果您继续阅读该文档
A write must be written to at least one node. If all replica nodes for the given row key are down, the write can still succeed after a hinted handoff has been written. If all replica nodes are down at write time, an ANY write is not readable until the replica nodes for that row have recovered. Provides low latency and a guarantee that a write never fails. Delivers the lowest consistency and highest availability compared to other levels.
所以 ANY 就是您正在寻找的(协调器仅写入或提示日志记录)
关于asynchronous - Cassandra 异步写入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35590965/