Clone the repository https://github.com/ashwanthkumar/suuchi-getting-started on your local machine.
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.
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
5052and stop the 5051
SuuchiClientto avoid writes into the cluster.
Now start the client's main method again, this time the reads should go through fine.