This spring boot application illustrates the use of Cassandra.
##Instalation
- Install Datastax Opscenter
https://www.datastax.com/products/datastax-opscenter
-
Create cluster, datacenter and nodes
-
Create keyspace and table
CREATE KEYSPACE IF NOT EXISTS store WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'Cassandra' : 2 };
CREATE TABLE store.product (id uuid PRIMARY KEY, name text, price decimal, expiry timestamp);
- Complete application.properties