9. Drivers and Sample Code

In this chapter we will go over some of the clients for the most popular languages. Using the most recent driver for each of the languages we will outline how to connect to a Cassandra cluster, initiate a session, execute CQL queries, and close the connection to the cluster.

There are currently quite a few drivers for Cassandra, table 9.1 has a breakdown of the most popular currently maintained drivers, their support of CQL, CBP(CQL Binary Protocol), Thrift and where to get them.

Table 9.1. Various Clients

Image

Clients that currently support the CQL3 Binary Protocol also support automatic node failure detection, as well as ...

Get Practical Cassandra: A Developer’s Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.