Path-based routing
Path-based routing is a traffic-routing technique that directs requests to backend services according to the request URL or URI path.
Kubernetes for Developers
Path-based routing directs requests to different backends according to the URI path.
- How it is used
- Routes multiple HTTP services through one external IP and domain while preserving public-facing URL paths.
- How deep it goes
- Explains Ingress rules, backend Services, and deployment inspection, but stops short of TLS configuration details.
- Examples
- Uses root and /robohash paths mapped to timeserver-internal and robohash-internal Services.
- What you can do after
- Configure Kubernetes Ingress rules that map URI paths to backend Services and inspect the resulting address and health.
Read how Kubernetes for Developers explains path-based routing →
Learn Docker in a Month of Lunches, Second Edition
Path-based routing directs requests to different backend services according to the request URL path.
- How it is used
- Uses a reverse proxy to assemble multiple application components under one domain.
- How deep it goes
- Walks through configuration replacement, proxy reload, and curl verification without detailing Nginx matching internals.
- Examples
- Demonstrates an image-gallery web UI and API exposed through image-gallery.local and /api/image.
- What you can do after
- Operate Nginx path routing by installing a site configuration, reloading the proxy, and testing an API URL.
Read how Learn Docker in a Month of Lunches, Second Edition explains path-based routing →
Also covered in
What to know first
- HTTPSHTTPS is HTTP transmitted over TLS to protect communication through encryption and authentication.
- load balancingLoad balancing is the distribution or adjustment of work across multiple resources to manage demand and reduce overload or imbalance.
Related concepts
- routingkind of · Routing is the process of directing an item, request, or task to a destination or processing path according to relevant rules or characteristics.
- ingress objectused by · A Kubernetes Ingress is an API resource that specifies rules for routing external HTTP and HTTPS requests to services within a cluster.
- NGINXimplemented by · NGINX is open-source web-server and reverse-proxy software that serves HTTP content, forwards requests, and can load-balance network traffic.
- default backendcontrasts with · A default backend is an Ingress routing target that handles requests matching none of the specified routing rules.
Questions about path-based routing
What is path-based routing?
Path-based routing is a traffic-routing technique that directs requests to backend services according to the request URL or URI path.
Which Manning books explain path-based routing?
Kubernetes for Developers and Learn Docker in a Month of Lunches, Second Edition.
What should I know before learning path-based routing?
Manning books that teach path-based routing usually introduce HTTPS and load balancing first.
What is the difference between path-based routing and default backend?
Path-based routing is a traffic-routing technique that directs requests to backend services according to the request URL or URI path. A default backend is an Ingress routing target that handles requests matching none of the specified routing rules.
What is path-based routing a kind of?
Path-based routing is a kind of routing. Routing is the process of directing an item, request, or task to a destination or processing path according to relevant rules or characteristics.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

