Source: neon.com/blog/rethinking-streaming-for-agents
A standard streaming response keeps agent output only while the connection stays open, so a page refresh or network switch can lose the reply. Durable Streams instead stores each append at a stream URL, and clients track an offset to request only the data they missed. Writers can tag appends with a producer ID and sequence number so retries do not duplicate data.
Neon says a Durable Streams server needs ordered, committed writes, cheap history storage, a way to notify live readers, and long-held HTTP connections. It maps these to Neon Postgres for writes, Neon Object Storage for sealed older history, Neon Realtime for new-row notifications, and Neon Functions to run the server inside a user's own project. Developers supply authenticate and authorize hooks that connect to their app's existing auth.
The post also describes Durable Chat, a demo that uses the Vercel AI SDK transport and runs on Neon Functions with Claude Haiku through Neon AI Gateway. Neon provides a Function template, and it lists Postgres 18, Realtime and a private Object Storage bucket as prerequisites.
Why it matters if you build agents
Agent developers who stream output to browsers can use a resumable stream instead of building their own save, replay and reconnect logic on top of a single HTTP response.
Delivery of webhooks is at least once, so receivers need their own idempotency keys before running side effects.
The demo's links act as unguessable sharing tokens with no user accounts, so sensitive content should not go into a shared stream without proper authorization hooks.
Get stories like this every weekday
One short email with the day's agent tooling news.