path-based routing

Sending requests to different backends depending on the URL path, such as /api to one service and everything else to another.

In more detail

When several rules match, the longest matching prefix usually wins. A catch-all / rule then only receives what no more specific rule claims.

Example

/api/v1/orders goes to the API rule rather than the catch-all / rule.

Related terms

Taught in

References