Web / Traefik Interview questions
What are middlewares in Traefik?
Middlewares sit between a router and a service, letting Traefik modify a request or response, or short-circuit it entirely, before it reaches the backend.
Common examples include BasicAuth for authentication, RateLimit for throttling, Headers for adding security headers, StripPrefix for path rewriting, and RedirectScheme for forcing HTTPS.
Multiple middlewares can be chained on a single router, and they execute in the order they're listed, so a request might pass through an auth check, then a rate limiter, before ever reaching the actual service.
More Related questions...