springamazon-web-servicescassandrathriftcassandra-3.0

What is the best alternative to Thrift API with Cassandra 3.X or AWS managed Cassandra?


Thrift API seems to be no longer supported with higher versions of Cassandra as well as AWS managed Cassandra. Could someone please let me know what would be the best alternate option to go with?

Our application is built on Spring framework, tightly coupled with Thrift based data models at this point. So, trying to understand if there is any similar API design that could be used. Our plan is to migrate the application to AWS and use managed Cassandra on AWS.


Solution

  • You should absolutely be using CQL. Modern versions of Spring [Boot|Data] use and work very well with the CQL native binary protocol.

    Here's a repo we built with Spring Boot that uses Spring Data underneath for access to DataStax Astra DB (managed Serverless Cassandra-as-a-Service). It should be a decent guide for you to see how the repositories and data objects are annotated, built and used.

    https://github.com/datastaxdevs/workshop-ecommerce-app