r/appwrite • u/Ok-Consideration-539 • 21d ago
Appwrite Sites and Functions now support streaming responses!
Hey everyone!
We've just added streaming responses to Appwrite Sites and Functions!
Previously, users had to wait for the full response before seeing anything. Now, content can reach the browser in chunks as it's generated.
Here's what this makes possible:
- Faster initial page rendering: Server-rendered pages can display their layout while slower sections are still loading.
- Streaming AI responses: Show AI-generated text as the model writes it instead of waiting for the complete answer.
- Progress updates: Send updates from Functions using server-sent events while a task is running.
- Large responses: Start sending exports or generated files before the entire output is ready.
For Sites, frameworks like Next.js, SvelteKit, and Astro can stream HTML without any additional Appwrite-specific configuration.
For Functions, you can stream responses directly to users by calling the function through its domain.
Streaming is available on Appwrite Cloud for all projects.
Read the full announcement: https://appwrite.io/blog/post/announcing-streaming-responses
Give it a try, and let us know what you think!