-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Streaming responses #114
Comments
I think this is blocked by Azure/azure-functions-host#1361. I spun up a function just to test if it was somehow supported, but couldn't find a way to return a stream. |
Agree with tlaundal, I think support for streaming is dependent on that so blocked for now |
According to this comment from a Microsoft employee:
So at least it sounds like it's being actively worked on. 🙂 |
Azure announced preview support for Node.js streams: https://techcommunity.microsoft.com/t5/apps-on-azure-blog/azure-functions-support-for-http-streams-in-node-js-is-now-in/ba-p/4066575 |
Putting "help wanted" on this, in case someone wants to try updating the adapter themselves. I'll get to it eventually but not sure when I'll have time. |
An upcoming SvelteKit feature will support streaming non-essential data so pages load quicker for platforms that support it. This adapter currently does not support streaming, since the entire response is buffered before returning:
svelte-adapter-azure-swa/files/entry.js
Lines 83 to 96 in e41f89c
The effect of this is that pages will wait for the entire data response to be ready instead of showing data as soon as it is available.
I'm not sure if Azure functions support streaming, but if they do, we should update this adapter to stream responses instead of buffering them.
EDIT: this is the SvelteKit feature in question: streaming promises.
The text was updated successfully, but these errors were encountered: