我已经从 SVN 中最新的 Thrift 构建生成了针对 JavaScript 的 Cassandra Thrift 库。
但是,我注意到在提供的 js thrift 客户端库中有以下语句:
This client can only speak the JSON Protocol and the only supported transport is AJAX.
有谁知道 JSON 协议(protocol)是否与 Cassandra 兼容?
传输不是问题,因为我计划将其移植到使用 node.js 套接字,但我需要知道 JSON 协议(protocol)是否允许我连接到 Cassandra。
Thrift 和 Cassandra 文档在这方面都非常轻松。
最佳答案
CassandraDaemon 采用 BinaryProtocol。
关于javascript - Thrift JS 与 Cassandra 的兼容性(JSON 协议(protocol)),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2955651/