Illustration Image

1/20/2024

Reading time:2

Apache Cassandra Acceleration With Apache Ignite

Placeholder

This resource is based on an article originally published here.

Apache Cassandra Acceleration With Apache Ignite | Ignite Documentation
Apache Ignite logo
Edit

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.

© 2024 The Apache Software Foundation.
Apache, Apache Ignite, the Apache feather and the Apache Ignite logo are either registered trademarks or trademarks of The Apache Software Foundation.

Related Articles

Placeholder
integration
ignite
cassandra

Explore Further

integration

ignite

cache

Become part of our
growing community!
Welcome to Planet Cassandra, a community for Apache Cassandra®! We're a passionate and dedicated group of users, developers, and enthusiasts who are working together to make Cassandra the best it can be. Whether you're just getting started with Cassandra or you're an experienced user, there's a place for you in our community.
A dinosaur
Planet Cassandra is a service for the Apache Cassandra® user community to share with each other. From tutorials and guides, to discussions and updates, we're here to help you get the most out of Cassandra. Connect with us and become part of our growing community today.
© 2009-2023 The Apache Software Foundation under the terms of the Apache License 2.0. Apache, the Apache feather logo, Apache Cassandra, Cassandra, and the Cassandra logo, are either registered trademarks or trademarks of The Apache Software Foundation. Sponsored by Anant Corporation and Datastax, and Developed by Anant Corporation.

Get Involved with Planet Cassandra!

We believe that the power of the Planet Cassandra community lies in the contributions of its members. Do you have content, articles, videos, or use cases you want to share with the world?