avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Apache Avro Encoding types?
Date Tue, 17 Sep 2013 17:23:28 GMT
Avro's primary encoding is binary.  JSON is useful for debugging and
for interoperability with other JSON-based systems.  The binary
encoding is much smaller and faster than JSON.  Avro data files and
RPC support only the binary encoding.


On Tue, Sep 17, 2013 at 12:34 AM, Raihan Jamal <jamalraihan@gmail.com> wrote:
> Hello,
> I have recently started using Apache Avro and I am having some doubts on
> that. I was reading the article on the internet and I found out that-
> There are two ways to encode data when serializing with Avro: binary or
> So I was thinking when we should use JSON and when we should use Binary? And
> what are the advantages/disadvantages for this? And which one is mainly
> preferable to use in production environment.
> Our use case is pretty simple. We need to store the data in Cassandra for a
> given user id. Suppose the column name is `e1`, then I will be storing
> column `e` value into Cassandra for specific user id.
> Any help will be appreciated on this.. Thanks
> Raihan Jamal

View raw message