spring-projects / spring-data-cassandra

Provides support to increase developer productivity in Java when using Apache Cassandra. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-cassandra/
Apache License 2.0
374 stars 307 forks source link

Remove reactive Template API methods accepting Publisher of entities [DATACASS-474] #643

Closed spring-projects-issues closed 6 years ago

spring-projects-issues commented 7 years ago

Mark Paluch opened DATACASS-474 and commented

ReactiveCassandraOperations provides methods accepting streams of entities Publisher<T> that are flatmapped to the according operations.

While this pattern is handy, it hides the aspect that Cassandra does not support bulk write operations other than batches. A batch resides in memory until its sent to Cassandra. We have a dedicated batch API and don't want to mix different approaches. Batches should require explicit opt-in.

We don't want to set expectations to support a streaming feature that isn't natively supported. The repository API continues to accept Publisher<T> and adopt the store behavior on a best-effort basis


Referenced from: pull request https://github.com/spring-projects/spring-data-cassandra/pull/110

spring-projects-issues commented 7 years ago

John Blum commented

Reviewed, polished and merged to master for Spring Data Cassandra 2.0.0.RC1 (Kay RC1)