Skip to content
Bluetape4k docs1.11

Spring Data Cassandra Example

Latest stable Based on Bluetape4k release 1.11.0

A comprehensive set of examples for Apache Cassandra and Spring Data Cassandra (Spring Boot 4.x). This manual connects that purpose to the current build, source entry points, tests, configuration resources, and lifecycle evidence instead of duplicating the README feature list.

Use bluetape4k-spring-boot-cassandra-demo when the application needs auto-configuration conditions, bean ownership, property binding, and application lifecycle. Start with the source entry points below and confirm that their ownership and failure contracts match the calling component. Prefer a smaller standard-library or already-adopted module when it satisfies the same contract without another runtime boundary.

dependencies {
implementation(platform("io.github.bluetape4k:bluetape4k-dependencies:<version>"))
implementation("io.github.bluetape4k:bluetape4k-spring-boot-cassandra-demo")
}

Gradle project path: :bluetape4k-spring-boot-cassandra-demo. Source directory: spring-boot/cassandra-demo.

The module is configuration or platform metadata and has no Kotlin/Java source type to index.

Add the coordinate above, refresh Gradle, and start from the smallest entry point that owns the required task. The module has no Kotlin/Java source entry point; inspect its Gradle model and README.

No Kotlin/Java source file is registered for this module. Use the build model and README as its public surface.

The README evidence is organized around Example Architecture, Example List, Basic (basic/), Kotlin DSL (kotlin/), Reactive (reactive/), Auditing (auditing/), Entity Definition, Repository, Coroutines Support, and Running the Examples. Use those topics as a navigation map, then confirm behavior in source and tests. Keep adoption narrow and connect owned resources to the caller lifecycle.

The current build declares these integration edges:

implementation(platform(libs.spring.boot.dependencies))
implementation(project(":bluetape4k-cassandra"))
implementation(project(":bluetape4k-spring-boot-cassandra"))
implementation(libs.cassandra.java.driver.core)
implementation(libs.cassandra.java.driver.query.builder)
implementation(libs.cassandra.java.driver.mapper.runtime)
implementation(libs.cassandra.java.driver.metrics.micrometer)
implementation("org.springframework.boot:spring-boot-starter-aspectj")
implementation("org.springframework.boot:spring-boot-starter-data-cassandra")
implementation(project(":bluetape4k-coroutines"))
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.coroutines.reactive)

Treat compileOnly edges as caller-provided capabilities and verify runtime availability before using their APIs.

No module-level configuration resource was found under src/main/resources. Configuration is supplied through constructors, builders, function arguments, or the integrating framework; confirm defaults in source.

Failure semantics are defined by the linked entry points and tests, not inferred from the artifact name. Keep cancellation and timeout signals intact, close owned resources, and translate backend exceptions only at a boundary that can add a stable domain contract. Use the test anchors below to verify the exact behavior before adding retries or fallbacks.

Track condition reports, startup failures, pool/client health, request latency, and graceful shutdown. Keep capacity, timeout, retry, and shutdown settings next to the component that owns the resource; avoid process-wide defaults that hide which caller accepted the trade-off.

Run the module test task:

Terminal window
./gradlew :bluetape4k-spring-boot-cassandra-demo:test --no-configuration-cache

Representative test anchors:

No dedicated workshop path is registered in the manual manifest. Use the module README and the representative tests above as runnable evidence.

This page documents the repository state represented by the linked source and tests. It does not turn optional backends into application defaults or claim performance without a benchmark artifact. Re-check compatibility and lifecycle notes when the module version changes.

These diagrams are loaded directly from README assets published with the 1.11.0 release and pinned to its immutable commit. They describe this manual’s released structure and runtime flows, not later Snapshot changes. Select a preview to open the SVG at the same release commit.

Spring Boot Cassandra demo example architecture diagram

Section titled “Spring Boot Cassandra demo example architecture diagram”

Spring Boot Cassandra demo example architecture diagram

Release README: spring-boot/cassandra-demo/README.md