HoldFast
Keeps several computers in sync over an unreliable network, with no central server.

HoldFast runs three nodes that each track the aircraft in their own area. They share updates directly with each other, so every node ends up with the full picture even when 1 in 5 packets are dropped or a node is cut off for a while. I tested it by replaying a recorded hour of real air traffic through packet loss and network cuts. I also deployed a cloud version on AWS that runs the same code on Lambda and DynamoDB.
- 1.37 s
- for 95% of reports to get from one node to another with 1 in 5 packets dropped (median window, recorded hour of 444 aircraft)
- 60 of 60
- test windows where all three nodes ended up with the same data at that loss rate
- 2.8x
- the delay when reports go through a central server, compared with node to node (95th percentile, no packet loss, 8 windows)
- 131
- bugs I planted in the code to check the tests, and the tests caught all of them
- Go
- Docker Compose
- netem
- Terraform
- API Gateway
- Lambda
- DynamoDB
- Prometheus
- Grafana
