Skip to content

Astyanax over Java Driver

opuneet edited this page Jan 8, 2014 · 15 revisions

Highly recommended readings

Overall, to summarize the Astyanax post - Java-Driver does some of the heavy lifting like load balancing and connection pooling and also provides some neat features such as cursor support and async requests. The astyanax-cql module leverages Java Driver underneath to implement the Astyanax interface and hence can still support your querying needs, but there are some important caveats/changes to consider before using the Astyanax over Java Driver.

How to select the right lib release version.

Start with setting up your keyspace context

Cache the column family definition with your ColumnFamily object

Reads / Queries - how to use PreparedStatements for better performance

Writes / Mutations - how to use PreparedStatements for better performance

Examples

Simple ColumnFamily definition

ColumnFamily with composite columns

Regular flat table style ColumnFamily

Clone this wiki locally