Thrift JS与Cassandra的兼容性(JSON协议) [英] Thrift JS compatibility with Cassandra (JSON Protocol)

查看:213
本文介绍了Thrift JS与Cassandra的兼容性(JSON协议)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



但是,我注意到在提供的js thrift客户端库下面的语句


此客户端只能使用JSON
协议,并且仅支持的
传输是AJAX。


有人知道JSON协议是否与Cassandra兼容?



不是一个问题,因为我计划移植这使用一个node.js套接字,但我需要知道,如果JSON协议将允许我连接Cassandra。



Thrift和Cassandra文档在这个前面都很轻。

解决方案

CassandraDaemon假定为BinaryProtocol。


I have generated a Thrift lib for Cassandra targeting JavaScript from the latest Thrift build in SVN.

However, I noticed in the provided js thrift client library the following statement:

This client can only speak the JSON Protocol and the only supported transport is AJAX.

Does anyone know if the JSON protocol is compatible with Cassandra?

The transport is not an issue as I am planning on porting this to use a node.js socket, but I need to know if the JSON Protocol is going to allow me to connect with Cassandra.

The Thrift and Cassandra docs are both very light on this front.

解决方案

CassandraDaemon assumes BinaryProtocol.

这篇关于Thrift JS与Cassandra的兼容性(JSON协议)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆