I have recently started implementing different distributed system protocols to get some understanding how they work. I think that using Akka Actors to simulate hosts is a good choice because they are easy to set up. What is more you can kill actors on demand to test some failure scenarios.

First protocol I implemented is Paxos - probably the most important consensus protocol, which guarantees storng consistecy, full transactions, read/write failover and prevents from data loss. This comes with the cost of higher latency and lower throughput. In terms of CAP theorem, Paxos is used to make your system CP. I used this sweet article as a reference.

Implementation can be found on my github repository. Go to the Test.scala and run some simulations. 
0

Add a comment

Paxos protocol simulation in Akka
Paxos protocol simulation in Akka
Don't sleep when you test!
Don't sleep when you test!
5 Less Known Cool Intellij Features
5 Less Known Cool Intellij Features
Simple Map Reduce concept implementation
Simple Map Reduce concept implementation
Kotlin null safety for Optional experienced
Kotlin null safety for Optional experienced
Understanding flatMap
Understanding flatMap
Verifying End-to-end Test Code Coverage using Jacoco Agent
Lifting functions to work with monads in Java
Lifting functions to work with monads in Java
Composing functions with java.util.function.Function.andThen() trick
Composing functions with java.util.function.Function.andThen() trick
1
Exception-free code using functional approach
Exception-free code using functional approach
1
Popular Posts
Popular Posts
About Me
About Me
Labels
Blog Archive
Loading
Dynamic Views theme. Powered by Blogger. Report Abuse.