Realtime / WebSocket APIs
OpenAI Realtime, Bedrock Realtime, and gateway proxy patterns for bi-directional streaming — a different shape than HTTP request/response.
💡
Tip: Realtime APIs are bi-directional and long-lived. The gateway pattern has to change accordingly — connection pooling, idle eviction, and per-key concurrency replace per-request rate limits.
What this use case covers
- A short tour of OpenAI Realtime and Bedrock Realtime wire formats.
- The gateway proxy patterns that work for bi-directional WebSockets — connection pooling, idle eviction, backpressure.
- Per-key concurrency as the rate-limit primitive (not TPM/RPM).
- The observability gap that opens up with long-lived connections and how to close it.