Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A93010A5C for ; Tue, 17 Dec 2013 14:09:31 +0000 (UTC) Received: (qmail 94856 invoked by uid 500); 17 Dec 2013 14:09:25 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 94705 invoked by uid 500); 17 Dec 2013 14:09:24 -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 94570 invoked by uid 99); 17 Dec 2013 14:09:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2013 14:09:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.220.169] (HELO mail-vc0-f169.google.com) (209.85.220.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2013 14:09:13 +0000 Received: by mail-vc0-f169.google.com with SMTP id hu19so4171981vcb.14 for ; Tue, 17 Dec 2013 06:08:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=IW5liYz3gwA10bZMFnN45vmMZ1I6gesCCeHNvJhzAmw=; b=gXljJKb/yh7o3Eqzf385CQMJHtEeiIn4VQnFKQgJtDE2XnbAHE+WVP21av7/sIRCK3 keBHrN/2XhXDeg5afxNX2+KLvh6NrQOdwtz1m8IjTG7emtnmnzj8GNsOg2Q3k0wGHSvE UXIEQFAMdEe3/H95w/C5vZlCKdpc6G693OQ58H+IeDDjtmKjQqokFFDqpfd+WWQdBrUu +TRrK9gdTNUBFbRlmgAyEytIiLdJ679v/IneXiJsbDBGDQJg2MIbbSTcVyqMIODWcSS6 TJikvzJLdfVPbK+1iuWKrioPPqlP2Zke05EaXrHW5bnJOv9is+61zPG4NexAWZjcBU7u AlSw== X-Gm-Message-State: ALoCoQkF9CCtLtwL87PDe3P6JmRKkjD8U3evK+IXY4Ng0l169Dkji4iJ4LCWP6SzO35dvyR0uZ7d MIME-Version: 1.0 X-Received: by 10.52.171.11 with SMTP id aq11mr316235vdc.87.1387289332137; Tue, 17 Dec 2013 06:08:52 -0800 (PST) Received: by 10.58.133.68 with HTTP; Tue, 17 Dec 2013 06:08:51 -0800 (PST) Received: by 10.58.133.68 with HTTP; Tue, 17 Dec 2013 06:08:51 -0800 (PST) In-Reply-To: References: Date: Tue, 17 Dec 2013 14:08:51 +0000 Message-ID: Subject: Re: Why was Thrift defined obsolete? From: Stuart Broad To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7bacb4d6d7d67204edbb7716 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bacb4d6d7d67204edbb7716 Content-Type: text/plain; charset=ISO-8859-1 Hopefully this is a valid clarification, rather than a hijack of your thread! How does the binary protocol fit into this? I have not used it but was told you can implement CQL calls via thrift or via the binary protocol. Is the binary protocol superior to thrift? If you use the binary protocol do you have to use CQL? Cheers, Stuart On 17 Dec 2013 14:01, "Peter Lin" wrote: > > That's just mis-information by people that don't understand thrift. > > The thrift drivers are still much more mature than the java drivers right > now. DataStax has stated on multiple occasions thrift isn't going any > where. CQL is fine if people only want to use SQL-like language. Search the > cassandra mailing list and you'll see this topic comes up regularly. > > My bias perspective is "use thrift" to use 100% of the features that > Cassandra provides, or use pure CQL and limit yourself to 90%. > > The main downside of using pure CQL (ie no thrift) is that once you've > defined a default type for column values, you can't stick arbitrary data > into dynamic columns. Cassandra will tell you when you try to insert a Date > when the default value type is int. Basically, it will throw an exception. > In contrast, if you use thrift, you can insert what ever type you want and > have total control over what goes into dynamic columns. > > For me, the biggest value of dynamic columns + data types is that I can > insert what ever I want into dynamic columns and still have the safety net > of knowing the type. A lot of people are afraid of thrift and don't want to > dive deep, which is fine. I prefer to understand things at a deep level, > and use a tool to the fullest extent. > > peter > > > On Tue, Dec 17, 2013 at 8:40 AM, Daneel Yaitskov > wrote: > >> Hi, >> >> I've read some articles about Cassandra and I noticed an opinion that >> Thrift protocol >> has some flaws. Thrift should go away in the nearest futures. >> >> But I cannot find any reference answering the question why is it so bad? >> >> >> -- >> Daneel S. Yaitskov >> > > --047d7bacb4d6d7d67204edbb7716 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hopefully this is a valid clarification, rather than a hijac= k of your thread!

How does the binary protocol fit into this?=A0 I have not us= ed it but was told you can implement CQL calls via thrift or via the binary= protocol.=A0 Is the binary protocol superior to thrift?

If you use the binary protocol do you have to use CQL?

Cheers,

Stuart

On 17 Dec 2013 14:01, "Peter Lin" <= woolfel@gmail.com> wrote:

That's just mis-inf= ormation by people that don't understand thrift.

The thrif= t drivers are still much more mature than the java drivers right now. DataS= tax has stated on multiple occasions thrift isn't going any where. CQL = is fine if people only want to use SQL-like language. Search the cassandra = mailing list and you'll see this topic comes up regularly.

My bias perspective is "use thrift" to use 100% of the = features that Cassandra provides, or use pure CQL and limit yourself to 90%= .

The main downside of using pure CQL (ie no thrift) is that o= nce you've defined a default type for column values, you can't stic= k arbitrary data into dynamic columns. Cassandra will tell you when you try= to insert a Date when the default value type is int. Basically, it will th= row an exception. In contrast, if you use thrift, you can insert what ever = type you want and have total control over what goes into dynamic columns.
For me, the biggest value of dynamic columns + data types is that= I can insert what ever I want into dynamic columns and still have the safe= ty net of knowing the type. A lot of people are afraid of thrift and don= 9;t want to dive deep, which is fine. I prefer to understand things at a de= ep level, and use a tool to the fullest extent.

peter


On Tue, Dec 17, 2013 at 8:40 AM, Daneel Yaitskov &l= t;rtfm.rtfm.r= tfm@gmail.com> wrote:
Hi,

= I've read some articles about Cassandra and I noticed an opinion that T= hrift protocol
has some flaws. Thrift should go away in the nearest futures.
But I cannot find any reference answering the question why is it so bad?


--
Daneel S. Yaitskov

--047d7bacb4d6d7d67204edbb7716--