Report this

What is the reason for this report?

Feature Request: App Platform supports Server-Side-Events

Posted on January 30, 2021

A core part of our infrastructure uses Server Side Events for sending uni-directional messages to our clients, and distribution to other processes. Though on the app-platform requests time out [even when pings are sent] and it can take a while for a ton of messages to appear to the client. It’s almost like the app-platform is caching then, and waiting to send them 5 minutes later – just all at once.

This is very annoying and is making our move to the app platform even more questionable, especially considering the lack of support for CORS include-credentials so we can do requests to different subdomains.

Thanks,



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!

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.

Hi @sloss196,

Unfortunately long-lived HTTP requests are not officially supported on App Platform as you’ll run into limitations around buffering and timeouts as you can see. We recommend using websockets as a more reliable method to push data from the server to the client.

Could you please expand on the CORS include-credentials bit? Do you mean you need to set the Access-Control-Allow-Credentials header?

Are there any plans to support long-lived HTTP requests on App Platform? We also need them for two of our applications.

I spent ages trying to debug this issue. This is a blocker for me, and means I can’t host my project on DO which is a shame as I really enjoyed the experience up until this.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.