Chapter 5. Writing Your Cassandra Client

There are many popular client drivers available for Java and other popular languages. You can find the list at http://planetcassandra.org/client-drivers-tools/. However, in this chapter we'll see how we can write our Cassandra client using the Datastax Java driver. This is one of the most popular drivers available, and we'll discuss some core features provided by it, such as the database connection pool support and various pool configuration options. We'll also discuss the mapping API provided by Datastax, which we can use to map Cassandra tables to our Java class objects. We'll also take a look at how we can enable tracing for queries from the Java driver.

Connecting to a Cassandra cluster

In order to make ...

Get Apache Cassandra Essentials 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.