HTTP router in front of GOV.UK to proxy to backend servers on a single domain.
https://docs.publishing.service.gov.uk/repos/router.html ↗ HEALTH ? 95 / Healthy
HTTP router in front of GOV.UK to proxy to backend servers on a single domain.
https://docs.publishing.service.gov.uk/repos/router.html ↗// readme
GOV.UK Router is an HTTP reverse proxy built on top of [triemux][tm].
Router loads its routing table from Content Store’s PostgreSQL database (or optionally from a flat file) into a trie data structure for fast path lookups.
Router can reload routes without restarting:
LISTEN/NOTIFY mechanismInternally these use a Go channel to send reload requests that causes Router to reload from content-store's PostgreSQL database.
Routes can be one of two types:
/government only matches a request for /government)/government matches requests for /government, /government/policies, etc.)The route type and URL path determine which route gets matched to a particular request.
Router maintains two separate tries:
Once a request comes in, Router uses the URL path to first check for an exact match,…