Post

Trigger.dev
Trigger.dev@triggerdotdev·
Most AI streams fail the moment your user switches apps or walks into an elevator. Standard HTTP streams are fragile. If the connection drops, the generation is lost. We built a better way for production AI apps. 🧵
English
3
0
9
905
Trigger.dev
Trigger.dev@triggerdotdev·
Introducing Realtime v2 streams. Unlike a standard fetch stream, these are durable subscriptions. If a client disconnects (network drop, tab close), the AI task keeps running in the background. Trigger buffers the tokens.
English
1
0
2
225
Trigger.dev
Trigger.dev@triggerdotdev·
When the client reconnects? We automatically flush the buffered tokens and resume the stream exactly where it left off. No "Network Error". No lost compute costs. It works seamlessly with the Vercel AI SDK.
English
1
0
2
167
Trigger.dev
Trigger.dev@triggerdotdev·
The code is simple. You don't manage websockets. Backend: `return stream.toResponse()` Frontend (React): `useRealtimeRun(runId)` It handles the re-connection logic for you.
English
1
0
0
295
Trigger.dev
Trigger.dev@triggerdotdev·
This is critical for mobile AI agents where flaky networks are the default, not the edge case. Check out the Realtime v2 docs to see how to make your streams bulletproof: tgr.dev/pFhDVdI
English
0
0
0
290
共有