FerryDocs
ArchitectureOverview

The proxy

The proxy sends each request to an instance, and it reads only the route table to do it.

Edit on GitHub
Route tablein memoryEngineBrowserProxy:8080Instance127.0.0.1:49321Instance127.0.0.1:49322

The browser sends GET / with the header Host: web.localhost:8080.

1 / 6

The routes by the Host . On the request path, it never calls the or the database. It reads the , which gives the of each hostname.

An upstream is always a port on 127.0.0.1. The networking model tells you why.

If no instance can answer

CaseAnswer of the proxy
Unknown hostA 404 page
Suspended serviceA 503 page
No healthy instanceA 503 page with Retry-After

See Errors of the proxy.

The crates

Contents
ferry-proxyThe RouteTable, the HTTP/1.1 and HTTP/2 reverse proxy with load balancing, websockets, error pages, termination and connection limits.
ferry-tlsAutomatic HTTPS: HTTP-01 certificates (Let's Encrypt by default), their storage and renewal, and resolution for the proxy.

On this page