SPA application (the front)¶
Version: 0.1 · Last Updated: 2026-08-22 · Status: 🔴 DA REVISIONARE
The need. A browser must reach its hosted SPA site through one stable door that never forgets who the browser is — without the door keeping any state of its own.
The stateless door of the SPA world: the spa_connection_id cookie
carrying the hosted site's OWN connection id (the front mints nothing),
the two-stage demux (internal roots vs the hosted site), and the HTTP
translation of the pool's answers — 503 with Retry-After for a refusal,
502 for a site failure, generic lines outward and the real text in the log.
Interactions: orchestration (SpaCommander.serve_request is the single forward) · configuration (grammar) · inspector/console.
One request, from cookie to answer¶
The two failure translations: AssignmentRefused → 503 with the
Retry-After the vertex composed; SiteFailedRequest / a dead wire → 502.
Outward always a generic line; the real text goes to the log.