You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by Nulik Nol <nu...@gmail.com> on 2013/08/05 21:08:52 UTC
CQL or Thrift ?
Hi,
I need a client in C (not C++) to work with Cassandra, so since there
is no one yet I would do my own. So far I have checked, I can do it
through Thrift RPC port, or through CQL port. As I understand, CQL
doesn't support direct "mutate" or "get_range_slices" calls like
Thrift does , so being Thrift API more low level, it should be faster
for specific queries my application would execute. The question is,
what do you recommend me to use, Thrift or CQL3 native protocol?
Thrift API supports CQL , but not the other way around. If commands
go through CQL, there will be some Java code executed and I don't know
which would be faster, sending the raw "mutate"s through thrift by C
application or executing a prepared CQL3 query by Java? I am
interested more in performance, rather than in easiness of use. Will
appreciate very much your comments.
Nulik
Re: CQL or Thrift ?
Posted by Jake Farrell <jf...@apache.org>.
Eric
do you have any numbers for this?
-Jake
On Tue, Aug 6, 2013 at 10:34 AM, Eric Evans <ee...@sym-link.com> wrote:
> [ Nulik Nol ]
> > I need a client in C (not C++) to work with Cassandra, so since there
> > is no one yet I would do my own. So far I have checked, I can do it
> > through Thrift RPC port, or through CQL port. As I understand, CQL
> > doesn't support direct "mutate" or "get_range_slices" calls like
> > Thrift does , so being Thrift API more low level, it should be faster
> > for specific queries my application would execute. The question is,
> > what do you recommend me to use, Thrift or CQL3 native protocol?
>
> Performance is likely to be the least important consideration when
> comparing the two, but luckily we don't have to have that argument; CQL is
> actually faster.
>
> --
> Eric Evans
> eevans@sym-link.com
>
Re: CQL or Thrift ?
Posted by Eric Evans <ee...@sym-link.com>.
[ Nulik Nol ]
> I need a client in C (not C++) to work with Cassandra, so since there
> is no one yet I would do my own. So far I have checked, I can do it
> through Thrift RPC port, or through CQL port. As I understand, CQL
> doesn't support direct "mutate" or "get_range_slices" calls like
> Thrift does , so being Thrift API more low level, it should be faster
> for specific queries my application would execute. The question is,
> what do you recommend me to use, Thrift or CQL3 native protocol?
Performance is likely to be the least important consideration when
comparing the two, but luckily we don't have to have that argument; CQL is
actually faster.
--
Eric Evans
eevans@sym-link.com
Re: CQL or Thrift ?
Posted by Murali <mu...@gmail.com>.
Hi Aswani Kumar,
Please let me know, any specific reasons that you're recommending thrift?
Thanks
Murali.
On Tue, Aug 6, 2013 at 11:16 AM, Aswani Kumar Vonteddu <
as.wins.code@hotmail.com> wrote:
> I'd recommend Thrift.
>
> > Date: Mon, 5 Aug 2013 14:08:52 -0500
> > Subject: CQL or Thrift ?
> > From: nuliknol@gmail.com
> > To: dev@cassandra.apache.org
> >
> > Hi,
> > I need a client in C (not C++) to work with Cassandra, so since there
> > is no one yet I would do my own. So far I have checked, I can do it
> > through Thrift RPC port, or through CQL port. As I understand, CQL
> > doesn't support direct "mutate" or "get_range_slices" calls like
> > Thrift does , so being Thrift API more low level, it should be faster
> > for specific queries my application would execute. The question is,
> > what do you recommend me to use, Thrift or CQL3 native protocol?
> > Thrift API supports CQL , but not the other way around. If commands
> > go through CQL, there will be some Java code executed and I don't know
> > which would be faster, sending the raw "mutate"s through thrift by C
> > application or executing a prepared CQL3 query by Java? I am
> > interested more in performance, rather than in easiness of use. Will
> > appreciate very much your comments.
> >
> > Nulik
>
>
--
Thanks,
Murali
99025-33335
Re: CQL or Thrift ?
Posted by Michael Kjellman <mk...@barracuda.com>.
Why? Please give me 3 reasons why this is good advice to the OP.
The frame based binary protocol will be 100% easier to implement in C than
the never-been-out-of-alpha libc Thrift implementation. I¹ve worked with
that code for a while, it¹s *not* pretty.
I can¹t think of one reason, other than ³I already have legacy code
written around it² Thrift is better than the Native Protocol. So please
backup your claim before spreading false information to the community.
On 8/5/13, 10:46 PM, "Aswani Kumar Vonteddu" <as...@hotmail.com>
wrote:
>I'd recommend Thrift.
>
>> Date: Mon, 5 Aug 2013 14:08:52 -0500
>> Subject: CQL or Thrift ?
>> From: nuliknol@gmail.com
>> To: dev@cassandra.apache.org
>>
>> Hi,
>> I need a client in C (not C++) to work with Cassandra, so since there
>> is no one yet I would do my own. So far I have checked, I can do it
>> through Thrift RPC port, or through CQL port. As I understand, CQL
>> doesn't support direct "mutate" or "get_range_slices" calls like
>> Thrift does , so being Thrift API more low level, it should be faster
>> for specific queries my application would execute. The question is,
>> what do you recommend me to use, Thrift or CQL3 native protocol?
>> Thrift API supports CQL , but not the other way around. If commands
>> go through CQL, there will be some Java code executed and I don't know
>> which would be faster, sending the raw "mutate"s through thrift by C
>> application or executing a prepared CQL3 query by Java? I am
>> interested more in performance, rather than in easiness of use. Will
>> appreciate very much your comments.
>>
>> Nulik
>
RE: CQL or Thrift ?
Posted by Aswani Kumar Vonteddu <as...@hotmail.com>.
I'd recommend Thrift.
> Date: Mon, 5 Aug 2013 14:08:52 -0500
> Subject: CQL or Thrift ?
> From: nuliknol@gmail.com
> To: dev@cassandra.apache.org
>
> Hi,
> I need a client in C (not C++) to work with Cassandra, so since there
> is no one yet I would do my own. So far I have checked, I can do it
> through Thrift RPC port, or through CQL port. As I understand, CQL
> doesn't support direct "mutate" or "get_range_slices" calls like
> Thrift does , so being Thrift API more low level, it should be faster
> for specific queries my application would execute. The question is,
> what do you recommend me to use, Thrift or CQL3 native protocol?
> Thrift API supports CQL , but not the other way around. If commands
> go through CQL, there will be some Java code executed and I don't know
> which would be faster, sending the raw "mutate"s through thrift by C
> application or executing a prepared CQL3 query by Java? I am
> interested more in performance, rather than in easiness of use. Will
> appreciate very much your comments.
>
> Nulik
Re: CQL or Thrift ?
Posted by Jonathan Ellis <jb...@gmail.com>.
You want to use CQL. Push notifications of cluster changes alone are worth it.
On Mon, Aug 5, 2013 at 2:08 PM, Nulik Nol <nu...@gmail.com> wrote:
> Hi,
> I need a client in C (not C++) to work with Cassandra, so since there
> is no one yet I would do my own. So far I have checked, I can do it
> through Thrift RPC port, or through CQL port. As I understand, CQL
> doesn't support direct "mutate" or "get_range_slices" calls like
> Thrift does , so being Thrift API more low level, it should be faster
> for specific queries my application would execute. The question is,
> what do you recommend me to use, Thrift or CQL3 native protocol?
> Thrift API supports CQL , but not the other way around. If commands
> go through CQL, there will be some Java code executed and I don't know
> which would be faster, sending the raw "mutate"s through thrift by C
> application or executing a prepared CQL3 query by Java? I am
> interested more in performance, rather than in easiness of use. Will
> appreciate very much your comments.
>
> Nulik
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder, http://www.datastax.com
@spyced