Traefik 00:00:01 A shop appears without editing each proxy A new shop container starts beside an existing blog. With the Docker provider configured, Traefik listens for changes and translates eligible service metadata into dynamic routing configuration. Only blog is running. A request for the shop gets 404. The shop container starts. Docker reports it to Traefik. The illustrated container is enabled for discovery and supplies a host-matching rule. Traefik can build the router and backing service from that metadata. The new routes replace the old ones in memory. Open connections go on. The container stops, the route disappears. Until then Traefik may still send to it, so shut down gently. An update becoming visible to the provider and a new instance being ready for real buyers are separate events. Gate the route on a working service and give shutdown time to drain. 00:00:58 Follow one shop request A shopper connects to a secure entry point. A router decides whether the hostname and path match. Middleware can modify or limit the matched request before a service chooses a backend. Port 443, named websecure. TLS ends here with the certificate for the host name. Rules are tried from the highest priority down. The first that matches wins. In the order of the list: here a limit, then a prefix is removed. The load balancer picks a healthy server, in turn by default. The ordered middleware list changes behavior. Verify the path the upstream actually receives and which requests the rate policy counts. 00:01:42 A broad router can accidentally win The shop shares a proxy with a catch-all site. Both routing rules can match the same request. Never assume the configuration's visual order is the precedence rule. The short exact-host rule has the lower default priority in this example because the default calculation uses rule length. With a path added it is 36 characters long. It is tried first. A longer regular-expression rule can match the same hostname and win despite being conceptually broader. Give the exact host a number of its own. A clear explicit priority removes ambiguity. Test an exact shop hostname, a matching subpath and an unrelated hostname before switching traffic. 00:02:27 Give an unhealthy service a breather The shop's backend starts failing. A circuit-breaker middleware watches its configured expression and can stop forwarding some requests for a period. The numbers below are one policy, not built-in advice. 100 requests, 4 of them 5xx. 4 percent is under 25. In the example the recent error fraction rises above the configured threshold. The circuit opens and eligible requests receive an immediate failure. A growing share of requests is let through. The service answered well for the whole time. An open circuit favors a prompt failure over more load on the backend. Check that callers, retries and recovery probing jointly fit the service's actual capacity. 00:03:13 Retire an instance without losing orders A replacement shop instance is healthy before the previous one stops accepting new assignments. That sequencing allows one version to take new traffic while the old one completes work. Its health check does not pass yet, so it gets no requests. v2 is healthy. The two share the requests. v1 fails its health check on purpose but still answers for a while. Once old requests finish within the drain window, the operator can stop the retired instance. Long-lived sessions need an explicit reconnection plan. Discovery automates where to send traffic. A rollout still needs readiness, withdrawal from rotation and a bounded draining interval. Measure orders completed across the handover.