How to enable HTTP response streaming in the App Platform?

Hi, I’m trying to deploy NodeJS on the App Platform that uses streams for sending the response to the client ("Transfer-Encoding: chunked"). The goal is to serve the first chunk of the HTML response to the client as soon as possible, but unfortunately, I’ve noticed that the reverse proxy/load balancer used by the App Platform buffers the response from my app and sends it to the client only when the stream is finished. Is there a way to disable app platform buffering? or any other solution to enable the streaming of HTTP responses?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
December 11, 2022

Hey @tomaszrobaczewski,

I don’t think that it is possible to make that change as fo the time being.

The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.

Hope that helps!

- Bobby.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up