You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Sameer Charles <sa...@towards.ch> on 2009/10/28 18:22:08 UTC
Any alternative to Thrift
Hi all,
Is Thrift the only way to talk to Cassandra? what if I embed Cassandra
within my app (single JVM), can I use some native
Cassandra API to communicate?
Any help will be appreciated.
Thanks,
Sameer Charles
Re: Any alternative to Thrift
Posted by Sameer Charles <sa...@towards.ch>.
Great! Yes I am trying to embed Cassandra, this application will be
distributed on each node in a cluster together with Cassandra.
I will do some tests on Thrift vs. StorageProxy, if there is not much
difference in performance then I might stick with Thrift.
Thanks for your help.
Regards,
Sameer Charles
ROME - It's just a start
http://romecms.com/about/
On Oct 28, 2009, at 6:26 PM, Jonathan Ellis wrote:
> If you're embedding it as part of a distributed cluster, use the
> static methods in StorageProxy. If the local jvm is the only node,
> you can skip the messaging layer and use Table objects directly (see
> TableTest.java for examples of using RowMutation / getColumnFamily).
>
> -Jonathan
>
> On Wed, Oct 28, 2009 at 11:22 AM, Sameer Charles
> <sa...@towards.ch> wrote:
>> Hi all,
>>
>> Is Thrift the only way to talk to Cassandra? what if I embed
>> Cassandra
>> within my app (single JVM), can I use some native
>> Cassandra API to communicate?
>>
>> Any help will be appreciated.
>>
>> Thanks,
>> Sameer Charles
>>
Re: Any alternative to Thrift
Posted by Jonathan Ellis <jb...@gmail.com>.
If you're embedding it as part of a distributed cluster, use the
static methods in StorageProxy. If the local jvm is the only node,
you can skip the messaging layer and use Table objects directly (see
TableTest.java for examples of using RowMutation / getColumnFamily).
-Jonathan
On Wed, Oct 28, 2009 at 11:22 AM, Sameer Charles
<sa...@towards.ch> wrote:
> Hi all,
>
> Is Thrift the only way to talk to Cassandra? what if I embed Cassandra
> within my app (single JVM), can I use some native
> Cassandra API to communicate?
>
> Any help will be appreciated.
>
> Thanks,
> Sameer Charles
>