Apex › Transport & web
GCRA — rate limiting with a single timestamp
The Generic Cell Rate Algorithm: the rate limiter behind Redis-Cell and many API gateways, which does everything a token bucket does with just one number of state per client — a "theoretical arrival time." A request is allowed if it arrives no earlier than TAT − τ; if so the TAT jumps forward by T. Idle time banks burst; sending too fast pushes the TAT past your clock until you're throttled, and the gap is your exact Retry-After. Drag the cadence and watch the one-line state throttle the stream.
More in Transport & web
- TCP handshake
- TIME_WAIT & ports
- TCP Fast Open
- 0-RTT resumption & replay
- TCP congestion
- TCP CUBIC
- TCP BBR
- Flow control
- Silly window syndrome
- TCP SACK
- ARQ (GBN vs SR)
- RTO & Karn
- Bandwidth-Delay Product
- M/M/1 queueing
- Bufferbloat
- ECN marking
- QoS scheduling
- H2/QUIC flow control
- HTTP/2 multiplexing
- QUIC vs TCP
- QUIC connection migration
- HTTP/3 & QPACK
- gRPC & protobuf
- WebSocket
- Realtime: SSE vs WS
- SCTP multi-homing
- Multipath TCP
- CDN & caching
- Service Worker caching
- Conditional & range
- Rate limiting
- Leaky bucket
- Retry & circuit breaker