是否有适用于 Node.js/JavaScript 的 Thrift 或 Cassandra 客户端 [英] Is there a Thrift or Cassandra client for Node.js/JavaScript
问题描述
我想通过 node.js 部署开始使用 Cassandra,但我找不到适用于 Node.js 和/或 JavaScript 的 Thrift 或 Cassandra 客户端.
I would like to start using Cassandra with a node.js deployment, but I can't find a Thrift or Cassandra client for Node.js and/or JavaScript.
有吗?
是否有一种简单的方法可以生成 Thrift 连接?
Is there a simple means of generating Thrift connections?
更新:这个问题的简短答案是否定的,没有与 Cassandra 兼容的 Thrift JS 客户端.
Update: The short answer to this question turns out to be no, there is no JS client for Thrift that is compatible with Cassandra.
进一步更新: Cassandra 的下一个版本(撰写本文时为 0.8)将支持 Avro API.已经有用于 Avro 支持的 node.js 模块.
Further Update: The next release of Cassandra (0.8 at time of writing) is going to have support for an Avro API. There is already node.js module for Avro support.
推荐答案
现在有人做了一个:https://github.com/wadey/node-thrift
更新:Rackspace 发布了一个节点 cassandra api:
http://code.google.com/a/apache-extras.org/p/cassandra-node/
Update:
Rackspace released a node cassandra api:
http://code.google.com/a/apache-extras.org/p/cassandra-node/
更新:他们将其移至 github:
https://github.com/racker/node-cassandra-client
Update:
They moved it to github:
https://github.com/racker/node-cassandra-client
更新:现在也有一个 CQL 驱动程序:
https://github.com/simplereach/helenus
Update:
There is a CQL driver now too:
https://github.com/simplereach/helenus
更新:有一个 CQL 驱动程序,它使用 Cassandra 本机协议https://github.com/jorgebay/node-cassandra-cql
Update: There is a CQL driver, that uses the Cassandra native protocol https://github.com/jorgebay/node-cassandra-cql
更新:DataStax 使用本机协议为 Cassandra 发布了 CQL 驱动程序:https://github.com/datastax/nodejs-driver
Update: DataStax released a CQL driver for Cassandra using the native protocol: https://github.com/datastax/nodejs-driver
这篇关于是否有适用于 Node.js/JavaScript 的 Thrift 或 Cassandra 客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!