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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.