O'Reilly logo

Apache Cassandra Essentials by Nitin Padalia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required