Menu

Streaming is where most OpenAI-compatible endpoints quietly break
📰

Streaming is where most OpenAI-compatible endpoints quietly break

DEV Community: api·Long AI·8 days ago
#1hECl0n9
#devtoapi#devto#dev#upstream#ttft
Long article (679 words) — no AI summary yet.
Reading 0:00
15s threshold

A demo tells you a gateway works. It shows words appearing in a terminal, which is exactly the case where everything is already warm, the upstream is healthy, and nothing is queued.

Production is the other case. The measure that matters is not total latency, it is time to first token (TTFT), and it is also the measure that aggregators most often ruin without noticing.

Here is what we look at across 109 upstream models, and the failure modes that hide behind a 200.

The four shapes of "streaming"

Real streaming. Upstream emits deltas as it generates; the gateway forwards each SSE frame as it arrives. TTFT tracks the upstream's TTFT plus routing overhead.

Buffered streaming. The upstream streams, the gateway collects, and then replays the whole answer as a stream of chunks. Text is correct, data: [DONE] is present, and TTFT equals full generation time. This is the one that gets shipped by accident: it passes every functional test.

Fake streaming.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.