On Fri, Jun 18, 2010 at 6:23 PM, Tatu Saloranta <tsalora...@gmail.com>wrote:

>  Not that I wanted to criticize choices, but do they actually allow use
> of JSON as encoding?
> Avro does use JSON for specifying schemas, but I wasn't aware of being
> able to use it for encoding data.
> Likewise with Thrift.
>

 Yes, each supports a JSON data encoding.  See
http://avro.apache.org/docs/1.3.3/spec.html#json_encoding for Avro and the
JSONProtocol in Thrift.  One clear advantage of these two is that they
support either stringified JSON or a compact binary encoding, and that they
each support (or intend to support) a more efficient TCP-based protocol
instead of only allowing HTTP.

Re: Avro vs Thrift, Cassandra has historically had difficulty getting Thrift
bugs fixed and Avro is more malleable at this point.  Additionally, Avro has
the potential for a more compact encoding and easier integration with
dynamic languages.

Reply via email to