9. Drivers and Sample Code

In this chapter, we will present 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 shows the most popular currently maintained drivers; their support of CQL, CBP (CQL Binary Protocol), and Thrift; and where to get them.

Image

Table 9.1 Various Clients

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

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.