Back To Blogs

Introducing Project Casquatch

By: Josh Turner


Introducing Project Casquatch

At T-Mobile, we have been rapidly developing new applications on top of a micro-service architecture through a combination of Java and Cassandra, including all the latest and greatest technologies. This is great except that Cassandra pushes a significant amount of the performance tuning and high availability configuration from the database layer up to the application layer. This leads to a few problems for the enterpise as all these policies are individually implemented (or not) by each service and database availability is now out of central control, leaving each developer to implement as they see fit. Not to mention the level of knowledge a developer needs to have about the underlying database technology. This is just not scalable.

Enter Project Casquatch.

Project Casquatch is a database abstraction layer with code generation designed to streamline Cassandra development. Out of the box it comes pre-tuned with high available policies including load balancing, geo-redundancy, connection pooling, etc, sitting on top of the Datastax driver using native APIs. All of this is abstracted behind the ever prevalent POJO. Instead of writing CQL, we utilize generic programming that allows you to simply pass a generated POJO to a save() method or populate with a getById().


Implementation with a Spring Boot application couldn’t be easier as the configuration class is prebuilt and annotated for auto wiring. If you don’t wish to use Spring then configure through a standard Builder pattern. Checkout the for a full breakdown.

To show you how easy it is to get going with Spring here are the basic steps:

Create an artifact for your data model using the included code generator through a simple shell script (Manual steps in if you don’t have bash):


Copy and paste the maven artifacts into the pom


Add the configuration import in


Configure a couple (See


Add an @Autowired variable to your controller:

private CassandraDriver db;

Then you are good to go. Checkout the javadocs for the API or the demo video for more information.

Open Source Only – You Get It All

This project is being released with an open source only model which means there is no proprietary magic we are holding back. The code we are releasing today has been reported as used by national platforms including the activation of the Series 3 Apple Watch, T-Mobile Payments, Digits, and multiple others that are yet to be announced.

Project Casquatch, as open source project, is continuously evolving. Please refer to your IT group to determine suitability for any production or critical needs. Cassandra is also open sourced under Apache License 2.0. Check out the project in Github and this short demo video.

Apple is a trademark of Apple Inc. T-Mobile and Digits are trademarks of T-Mobile US.

comments powered by Disqus