kreynolds / cassandra-cql

DBI-like CQL driver for Cassandra in Ruby
Apache License 2.0
67 stars 43 forks source link

Binary protocol (incomplete) #40

Open outoftime opened 11 years ago

outoftime commented 11 years ago

Hey Kelley,

This isn't an actual pull request, but I just wanted to let you know that I spent some time this weekend working on supporting the new CQL binary protocol in cassandra-cql. What I've got here so far is very much incomplete, particularly in terms of integrating with the rest of the library (I started messing around with it in isolation, but I definitely think it makes sense as a component of cassandra-cql rather than a separate library, as cassandra-cql does a lot that is agnostic to the Thrift protocol).

So far I've been trying to take as light a touch as possible in terms of modifying the existing cassandra-cql code, but it's looking like it might make sense to restructure a bit to isolate the parts of the library that are Thrift-specific (and provide alternate implementations that are compatible with the binary protocol). I'd welcome any input you have in terms of what I've got here so far and your preferences for how to move forward. I think it would be great to structure the library so that it would be straightforward to drop in Hector or the Java binary client in JRuby as well.

Not to worry if you don't have time to look at this right now -- I'll continue working on it either way -- but I just wanted to keep you up to speed to avoid any duplication of effort if nothing else.

Happy new year! Mat

brainopia commented 11 years ago

Woah, nice one :)

kreynolds commented 11 years ago

@outoftime What is the state of this?

outoftime commented 11 years ago

Very much experimental/work in progress. I'd love to spend more time on it but realistically it's probably not going to happen in the near future. Perhaps someone can pick up where I left off at some point.