asynchronous - Cassandra 异步写入

标签 asynchronous cassandra insert-update

在 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/

相关文章:

php - Mysql - 插入或更新并获取旧值

SQL 2008 R2 : Trying to get the T-SQL MERGE statement working in a stored procedure

javascript - 我应该在 Node.js 和 Express 中链接方法和函数吗?

javascript - 在 map 函数中异步调用 API (React)

c# - 在 C# 中的单独线程上停止异步 TCP 服务器

c# - 如何从 C# 调用和处理异步 F# 工作流

cassandra - 带 Java 驱动程序的 DSE 图,如何添加边

cassandra - 17076203 字节的变异对于最大大小 16777216 来说太大了

node.js - 为什么我的第一个查询很慢但很快?

java - 计算 INSERT/ON DUPLICATE KEY UPDATE