Cache Stampede Prevention in Go — 1k req/s load test + full monitoring stack
A Go library implementing three cache stampede prevention strategies: Hard Lock with Stale-While-Revalidate using Redis SETNX and Lua scripts, XFetch probabilistic early refresh, and Request Coalescing via singleflight. The project includes a full monitoring stack with Prometheus metrics, a Grafana dashboard with 9 auto-provisioned panels, circuit breaker tracking, and a load test at 1,000 req/s. The singleflight approach achieves roughly 13:1 deduplication ratio, reducing database pressure significantly.