Distributed running sum service with strong consistency.
- FastAPI: Web framework
- Redis: Shared storage (atomic operations)
- 2 Nodes: Demonstrated locally
docker-compose up --buildStarts:
- Redis on port 6379
- Node 1 on http://localhost:9001
- Node 2 on http://localhost:9002
python tests/test_simple.pycurl -X POST http://localhost:9001/abacus/number \
-H "Content-Type: application/json" \
-d '{"number": 10}'curl http://localhost:9001/abacus/sumcurl -X DELETE http://localhost:9001/abacus/sumRedis INCRBY ensures atomic operations - no race conditions across nodes.