AntiPattern

Request Routing Side Effects

cross-request-routing-side-effects

Global middleware and routing composition (mounting sub-apps, sharing handler/model references, and wrapping middleware) create unintended cross-request state and stalled delivery, so logs, contextvars, and progress updates leak or hang under load.