Summary

The Cassandra Java Driver Session object is a pool of connection objects. Typically, for most of the applications, one session object is sufficient per keyspace. We can customize pool configuration using the PoolingOptions object. While creating a Cluster object, we can customize load balancing, Reconnection policies, and Retry policies according to our needs. Read and write operations can be done both in synchronous and asynchronous manners. Prepared statements can provide a slight performance gain for queries which are executed frequently, as they are parsed only time by database. The mapping API can be used to map Java POJO classes to Cassandra tables. It enables APIs to perform basic CRUD operations on those POJO classes. For complex ...

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.