Skip to content

Why it matters

The route is the entry point of every request; a wrong route is a 404, a slow route is a bottleneck, a leaky route is a security incident.

Routing errors are the most common cause of "it works locally, 404 in production" — different configs, different orderings. A route evaluated 20 times per request (because the router iterates the whole list) is a hidden latency source. A route that matches too loosely (/{path}/*) can shadow protected routes.