Feature Request: App Platform supports Server-Side-Events

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.


Submit an answer
Answer a question...

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.

Kamal Nasser
DigitalOcean Employee
DigitalOcean Employee badge
February 1, 2021

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?

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.

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