This is a program which emulates fault-tolerant in-memory distirbuted log. The messages replicated in parallel.
master - maintains latest iteration (currently 3).
# use docker-compose
# from the root run the following command
docker-compose up --build
# post a message (master only)
POST localhost:9091/log
{"Message": "Test", "W": 1}
# get logs from master
GET localhost:9091/log
# get logs from secondary1
GET localhost:9092/log
# get logs from secondary2
GET localhost:9093/log
.NET Core 3.1, Docker