Quick Start
-
Clone the repository https://github.com/ashwanthkumar/suuchi-getting-started on your local machine.
-
Run
mvn clean compileto generate the proto stubs for the project. -
Import the project into your favorite IDE.
-
Create 3 Run configurations for
DistributedKVServermain method with different arguments as 5051, 5052 and 5053 and start them all. -
Open
SuuchiClient.scalaand run it to see them in action. -
That's it! - you've now built a distributed, partitioned and replicated memory backed KVStore.
See the Replication in Action
-
Change the port from
5051to5052and stop the 5051DistributedKVServerinstance. -
Remove the
client.put(...)from theSuuchiClientto avoid writes into the cluster. -
Now start the client's main method again, this time the reads should go through fine.