Differences betweeen Hector Cassandra and JDBC -


i'm starting project use cassandra apache. i'm interesting in accessing database cassandra java. that, i'm using hector cassandra. however, i've doubts what's differences between access via hector or jdbc cassandra (specifically this: https://code.google.com/a/apache-extras.org/p/cassandra-jdbc/).

i believe following (although not sure if i'm right):

  • one difference between both api of different level (i consider hector cassandra api of higher-level jdbc cassandra)?

  • in jdbc cassandra used cql accessing/modifying database, while hector cassandra don't use cql (only use methods provided that).

i'll thankful if can me , tell me if i'm right/wrong in previous lines , more differences between both (hector , jdbc cassandra).

thank in advance!

official cassandra java driver (https://github.com/datastax/java-driver) best (imho, only) choice new project several reasons:

new features

all other cassandra clients (hector, astyanax, etc) based on legacy thrift rpc protocol. rpc "one response per 1 request" model has severe limitations, example doesn't allow processing several requests @ same time in single connection or streaming large resultsets.

so, datastax developed new protocol doesn't have rpc limitations. thrift api won't getting new features, it's kept backward-compatibility. in contrast, java driver actively developed incorporate new features of cassandra 2.0, conditional updates, batching prepared statements, etc. overview of new features here: http://www.datastax.com/dev/blog/cql-in-cassandra-2-0

convenience

in cassandra days (0.7) in our company have used in-house low-level thrift client. later on have used hector, pelops , astyanax in various projects. can clients based on java driver simple , clean me.

performance

we have made performance testing of cassandra java driver vs other clients. in scenarios performance same. however, there situations when cassandra java driver outperforms other clients due asynchronous nature.

btw, there's couple of related questions excellent answers:

edit: when wrote this, wasn't aware achilles (https://github.com/doanduyhai/achilles) mentioned in answer has cql implementation works via java driver. same of completeness must achilles' dao on top of cql might (or might became 1 day) viable alternative plain cql via java driver.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -