Quick Start
-
Clone the repository https://github.com/ashwanthkumar/suuchi-getting-started on your local machine.
-
Run
mvn clean compile
to generate the proto stubs for the project. -
Import the project into your favorite IDE.
-
Create 3 Run configurations for
DistributedKVServer
main method with different arguments as 5051, 5052 and 5053 and start them all. -
Open
SuuchiClient.scala
and 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
5051
to5052
and stop the 5051DistributedKVServer
instance. -
Remove the
client.put(...)
from theSuuchiClient
to avoid writes into the cluster. -
Now start the client's main method again, this time the reads should go through fine.