Provides easy integration for Dropwizard applications with the Datastax Cassandra java driver..
This bundle comes with out-of-the-box support for:
- YAML-based configuration and built-in strongly typed configuration validation
- Cluster connection lifecycle management
- Cluster health checks
- Metrics integration for Cassandra driver stats using your applications
- Schema migrations functionality, similar to what flyway and liquibase offer for SQL databases.
Add dependency on library.
<dependency> <groupId>io.dropwizard.modules</groupId> <artifactId>dropwizard-cassandra</artifactId> <version>1.3.12-1</version> </dependency>
This library was originally built to extend https://github.com/composable-systems/dropwizard-cassandra, but was forked due to some
needs that were unmet (for instance, being able to define different
CassandraFactory implementations, if a modified client is used), and
due to lack of maintenance. Big thanks to @stuartgunter for his module, which inspired this one heavily, and for which this module borrows
a lot of ideas and code.