- seedMetricsFromRedis: loads persisted counters into atomics on startup - flushMetricsToRedis: writes all 12 counters to 3 Redis hashes on demand - startMetricsFlusher: goroutine that flushes every 5 minutes - Graceful shutdown: SIGINT/SIGTERM flushes metrics then drains HTTP in 10s - http.ListenAndServe replaced with http.Server for Shutdown support Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| main.go | ||