Apache Cassandra Acceleration With Apache Ignite | Ignite Documentation

Ignite Summit 2025 – Call for Speakers Now Open – Learn more 

Edit

Apache Cassandra Acceleration With Apache Ignite

Overview

The Ignite Cassandra integration implements the CacheStore interface allowing to deploy Ignite as a high-performance caching layer on top of Cassandra.

Some observations in regards to the integration:

  1. The integration uses Cassandra asynchronous queries for CacheStore batch operations such as such as loadAll(), writeAll() and deleteAll() to provide extremely high performance.

  2. The integration automatically creates all necessary tables (and keyspaces) in Cassandra if they are absent. Also, it automatically detects all the necessary fields for Ignite key-value tuples that will be stored as POJOs, and creates an appropriate table structure. Thus you don’t need to care about the Cassandra DDL syntax for table creation and Java to Cassandra type mapping details.

  3. You can optionally specify the settings (replication factor, replication strategy, bloom filter and etc.) for Cassandra tables and keyspaces which should be created.

  4. Combines functionality of BLOB and POJO storage, allowing to specify how you prefer to store (as a BLOB or as a POJO) key-value tuples from your Ignite cache.

  5. Supports standard Java and Kryo serialization for key-values which should be stored as BLOBs in Cassandra

  6. Supports Cassandra secondary indexes (including custom indexes) through persistence configuration settings for particular Ignite cache or such settings could be detected automatically if you configured SQL Indexes by Annotations by using @QuerySqlField(index = true) annotation

  7. Supports sort order for Cassandra cluster key fields through persistence configuration settings or such settings could be detected automatically if you are using @QuerySqlField(descending = true) annotation.

  8. Supports affinity co-location for the POJO key classes having one of their fields annotated by @AffinityKeyMapped. In such a way, key-values tuples which were stored on one node in an Ignite cache will be also stored (co-located) on one node in Cassandra.

Caution

Ignite SQL Queries and Cassandra

Note that in order to execute SQL queries you need to have all the data loaded from Cassandra into an Ignite cluster. The Ignite SQL engine doesn’t assumes that all the records are available in memory and won’t try to query Cassandra.

An alternative would be to use Ignite Native Persistence - a distributed, ACID, and SQL-compliant disk store that allows performing SQL queries on the data stored in-memory as well as on disk.