Schema format for Cassandra

2016-05-12 Thread Yawei Li
Hi there,

Is there any detailed document about the internal storage format for
Cassandra schema? My guess is that Cassandra is using an internal format.
If that's true, I am wondering if we've considered using Thrift or Avro
format, which might easy the integration between Cassandra and Hadoop.

Thanks
Yawei


Re: Cassandra Golang Driver and Support

2016-04-14 Thread Yawei Li
Thanks for the info, Bryan!
We are in general assess the support level of GoCQL v.s Java Driver. From
http://gocql.github.io/, looks like it is a WIP (some TODO items, api is
subject to change)? And https://github.com/gocql/gocql suggests the
performance may degrade now and then, and the supported versions are up to
2.2.x? For us maintaining two stacks (Java and Go) may be expensive so I am
checking what's the general strategy folks are using here.

On Wed, Apr 13, 2016 at 11:31 AM, Bryan Cheng <br...@blockcypher.com> wrote:

> Hi Yawei,
>
> While you're right that there's no first-party driver, we've had good luck
> using gocql (https://github.com/gocql/gocql) in production at moderate
> scale. What features in particular are you looking for that are missing?
>
> --Bryan
>
> On Tue, Apr 12, 2016 at 10:06 PM, Yawei Li <yawei...@gmail.com> wrote:
>
>> Hi,
>>
>> It looks like to me that DataStax doesn't provide official golang driver
>> yet and the goland client libs are overall lagging behind the Java driver
>> in terms of feature set, supported version and possibly production
>> stability?
>>
>> We are going to support a large number of services  in both Java and Go.
>> if the above impression is largely true, we are considering the option of
>> focusing on Java client and having GoLang program talk to the Java service
>> via RPC for data access. Anyone has tried similar approach?
>>
>> Thanks
>>
>
>


Cassandra Golang Driver and Support

2016-04-12 Thread Yawei Li
Hi,

It looks like to me that DataStax doesn't provide official golang driver
yet and the goland client libs are overall lagging behind the Java driver
in terms of feature set, supported version and possibly production
stability?

We are going to support a large number of services  in both Java and Go. if
the above impression is largely true, we are considering the option of
focusing on Java client and having GoLang program talk to the Java service
via RPC for data access. Anyone has tried similar approach?

Thanks


Isolation for atomic batch on the same partition key

2016-02-22 Thread Yawei Li
Hi all,
A couple of questions about atomic batch:

1. If  an atomic batch (logged batch) contains a bunch of row mutations and
all of them have the same partition key, can I assume all those changes
have the same isolation as the row-level isolation? According to the post
here http://www.mail-archive.com/user%40cassandra.apache.org/msg42434.html,
it seems that we can get strong isolation.
e.g.
*BEGIN BATCH*
*  UPDATE a IF condition_1;*
*  INSERT b;*
*  INSERT c;*
*APPLY BATCH*

So at any replica, we expect isolation for the three changes on *a*, *b*,
*c*  (*a* , *b*, *c* have the same partition key *k1*) -- i.e. either none
or all of them are visible. Can someone help confirm?

2. Say in the above batch, we include two extra row mutations d and e for
another partition key *k2*.  Will the changes on (*a*, *b*, *c*)  and (*d*,
*e*) still atomic respectively in terms of isolation? I understand there is
no isolation between (*a*, *b*, *c*) and (*d*, *e*).  I.e. is there a
per-parition-key isolation guaranteed?


3. I assume CL SERIAL or LOCAL_SERIAL on reads will try applying the above
logged batch if it is committed but not applied. Right?

Thanks
Yawei