logo

为什么 Cassandra 作为分布式计数器的方案在理论上可行,但在实践中不推荐?它的核心问题是什么?

Why is Cassandra theoretically suitable but practically not recommended for building a distributed counter, and what are its key issues?

题目类型: 技术面试题

这是一道技术面试题,常见于澳洲IT公司面试中。

难度: hard

分类: system-design, distributed-systems, data-storage

标签: cassandra, nosql, counter, idempotency, gossip, consistent-hashing, lsm-tree

参考答案摘要

TL;DR Cassandra 作为分布式 NoSQL 数据库具备 去中心化(leaderless replication) 与 一致性哈希分区 能力,写性能也很强(LSM Tree),理论上可以用它的 counter 类型实现分布式计数器。但在实践中 Cassandra counter 存在 结构限制 与 更新非幂等 等致命问题,因此不适合作为可扩展分布式计数器的实现。 为什么理论可行 Cass...

本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。

← 返回面试题库

为什么 Cassandra 作为分布式计数器的方案在理论上可行,但在实践中不推荐?它的核心问题是什么?

Hardsystem-design

想查看完整答案?

登录匠人学院学习中心,获取 STAR 格式回答和详细技术解析

前往学习中心查看答案