Streaming
In select environments, the SDK allows streaming responses back to Inngest, hugely increasing maximum timeouts on many serverless platforms up to 15 minutes.
Looking to stream SSE data to clients from Durable Endpoints? See Streaming SSE from Durable Endpoints.
While we add wider support for streaming to other platforms, we currently support the following:
- Cloudflare Workers
- Express
- Next.js on Vercel Fluid Compute or Edge Functions
- Remix on Vercel Edge Functions
Enabling streaming
Select your platform above and follow the relevant "Streaming" section to enable streaming for your application.
Every Inngest serve handler provides a streaming option, for example:
serve({
client: inngest,
functions: [...fns],
streaming: true,
});
This can be one of the following values:
false- Streaming will never be used. This is the default.true- Streaming will be used if the serve handler supports it.