Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 46278 invoked from network); 19 Jun 2010 00:07:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jun 2010 00:07:32 -0000 Received: (qmail 29974 invoked by uid 500); 19 Jun 2010 00:07:31 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 29816 invoked by uid 500); 19 Jun 2010 00:07:30 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 29808 invoked by uid 99); 19 Jun 2010 00:07:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jun 2010 00:07:30 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tsaloranta@gmail.com designates 209.85.211.190 as permitted sender) Received: from [209.85.211.190] (HELO mail-yw0-f190.google.com) (209.85.211.190) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jun 2010 00:07:24 +0000 Received: by ywh28 with SMTP id 28so1685900ywh.28 for ; Fri, 18 Jun 2010 17:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=7TPkM5ogVosJYKjpwjzpK1gpQrAUW/Nuwz0Tup2RTMo=; b=ZDm2ObVsHWzlKV6mJsHlV5B4lx95u9QD+LiCZmV8BG+SJ6zHs+KiNCedRW7Jm7xGJS ub/fKO/EVpf1mxTtxgaos1H6MedmoO7p5tnESOhaqcqE1fEpyLpq6l/PToojwfo6lao+ PesUdPN3WRBWfISar9AxfvNQ85EHuqkNfX5BE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=HX8pV9/fH13/Z1sP7Ll01TAYscCTLFEHmocx4OiqnQ+oa5uR55LsjVU0FlxmjJ7AUA ljYpS7CsN3oc1R4Wv1WZG5rhHYvqJbHR3KUzEvV99LlcEsHsdkbnuOKgzNYBoI8hI4MG 9iZ+KSVaNwv3y1pTqmIDeYT1wJP5bGxQD+IYc= MIME-Version: 1.0 Received: by 10.91.77.12 with SMTP id e12mr1047545agl.148.1276906023423; Fri, 18 Jun 2010 17:07:03 -0700 (PDT) Received: by 10.90.55.8 with HTTP; Fri, 18 Jun 2010 17:07:03 -0700 (PDT) In-Reply-To: References: <1276873264.3832.26.camel@erebus.lan> <9C7A4E39-F8D2-49C3-BCE2-C9C75431979D@gmail.com> <1276895545.3832.78.camel@erebus.lan> Date: Fri, 18 Jun 2010 17:07:03 -0700 Message-ID: Subject: Re: AVRO client API From: Tatu Saloranta To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Jun 18, 2010 at 4:57 PM, Miguel Verde wro= te: > On Fri, Jun 18, 2010 at 6:23 PM, Tatu Saloranta > 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.=A0 See > http://avro.apache.org/docs/1.3.3/spec.html#json_encoding=A0for Avro and = the > JSONProtocol in Thrift.=A0 One clear advantage of these two is that they Ok thanks. I learnt something new today. :-) > support either stringified JSON or a compact binary encoding, and that th= ey > each support (or intend to support) a more efficient TCP-based protocol > instead of only allowing HTTP. Right. Latter is actually useful, then, as that would suggest possibility of using alternative binary encodings with other pieces (schema definition, protocol handling).... (encoding that supports their respective data sets) > Re: Avro vs Thrift, Cassandra has historically had difficulty getting Thr= ift > bugs fixed and Avro is more malleable at this point.=A0 Additionally, Avr= o has > the potential for a more compact encoding and easier integration with > dynamic languages. Yes, that has been my impression as well, so I was not surprised to see plans for this change. Although I have been interested in learning more about progress, to know when would new versions be available. -+ Tatu +-