HeadlinesBriefing favicon HeadlinesBriefing.com

Docker Compose Beats Kubernetes for Zero-Downtime Deploys

Hacker News •
×

Status Dude runs thousands of monitoring checks per minute across multiple regions without Kubernetes. Their secret? Docker Compose paired with HAProxy delivers zero downtime deployments while handling rolling updates smoothly. No etcd drama, no complex orchestration layers required.

The team initially chose Traefik for its Docker label auto-discovery and sleek dashboard. But during their first rolling deploy attempt, identical labels on backend_new and existing backend services triggered a 'Service defined multiple times' error, returning 404s on every request.

Even after switching to docker compose --scale backend=4, Traefik's routing table lagged Docker's state by several seconds during scale-down operations. More critically, Traefik's retry middleware only retries on the same failing backend, not alternative healthy ones. This meant requests hitting containers mid-shutdown simply vanished.

HAProxy's option redispatch feature solves this by retrying failed requests on different backends automatically. Combined with three-layer health detection—per-request retry, passive layer7 observation, and active checks every second—it provides the reliability Kubernetes promises without the operational complexity.