Work in progress.
An example of how to use Cassandra to build an e-bay like Auction service. Uses the following tech stack:
Initial Setup:
-
Get access to a Cassandra cluster ( local installation is more convenient, but you can use a cloud installation If using the cloud, obtain the PRIVATE ip of a node from the cluster.
-
Use files from src/main/resources/schema to create keyspace & tables in Cassandra. The DDL statements only need to be physically run on a single node; Cassandra will take place of replicating schema to other nodes.
-
Build project in gradle ( ./gradlew clean build )
-
Start Web server ( src/main/java/Application.main)
-
Run tests from Gradle ( ./gradlew test, e2eTest, runLoadTest )
Regular Usage:
-
Start Cassandra
-
Start web server
-
Run tests from Gradle