connection gateway
A server that holds long-lived client connections and relays messages to and from them, storing nothing durable.
In more detail
Because it keeps no durable state, a gateway can be restarted: clients reconnect and read their inbox. Connection count, heartbeats and reconnect storms are its capacity inputs.
Related terms
- network socket — One end of a two-way network connection between programs, identified by an IP address and a port number.
- connection registry — A short-lived key-value map from each user to the gateway currently holding their connection.
- inbox — A durable per-user store of messages waiting to be delivered to someone who is offline or unreachable.
Taught in
- Worked Design One: Ticket Booking, Correctness First — Scalable System Design & Distributed Architecture
- Worked Design Two: A Global Chat System — Scalable System Design & Distributed Architecture
- Worked Design Two: Scaling Chat Fan Out — Scalable System Design & Distributed Architecture
- Worked Design Three: A Metrics Ingestion Pipeline — Scalable System Design & Distributed Architecture
- Worked Design Three: Scaling The Metrics Pipeline — Scalable System Design & Distributed Architecture