Example of Spring Data Cassandra with Reactor.
This guide use ScyllaDB implementation of Cassandra.
First, instantiate a ScyllaDB container.
docker run --named scylla-test -p 127.0.0.1:9042:9042 -d scylladb/scylla
docker start scylla-test
Next, install CQL shell (require Python 2):
pip install cqlsh
Connect with Scylla:
cqlsh 127.0.0.1 9042
Check if Scylla actually works:
cqlsh> select release_version from system.local;
release_version
-----------------
3.0.8
(1 rows)
To run this project, create a new keyspace named mykeyspace
:
create keyspace mykeyspace with replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
Edit application.properties
accorddingly.
- Based on spring-projects/spring-data-examples and spring-projects/spring-boot
- Find out more about Reactor: reactor/reactor-core
- ScyllaDB: scylladb/scylla