- Implement RAFT protocol (leader election)
- Written in
Java 23. Version specified inside.sdkmanrcfile using sdkman - Maven
v3.9.9with the wrapper
- Uses virtual threads and structured concurrency
- Uses Error Prone as an additional compiler to
javac. - Uses Spotless for automatic code formatting in Android Open Source Project style.
- Build self-executable jar file
./mvnw clean package- Run application
Pay attention that we also need to provide
--enable-previewduring runtime because we have used Structured Concurrency which is in a preview mode for java 23.
./run1.sh
./run2.sh
./run3.sh