Get server sent events (SSE) working with chunking proxies

Yeah, my application is working! What? It’s not working? What the heck? Rolling out server sent events (SSE) to production can be a hard way. In most situation it’s working fine, but sometimes the event sinks are not notified – or better – only notiefied after some minutes. Let’s solve the riddle.

Whats going on?

Due to older or misconfigured proxies, network elements, the data of a server sent event is tried to chunk. But that’s not the idea of SSE.

The post of Mike Talbot (see https://dev.to/miketalbot/server-sent-events-are-still-not-production-ready-after-a-decade-a-lesson-for-me-a-warning-for-you-2gie) helped me a lot to go in the right direction. And Kevin Douglas comment pointed out the solution ( https://dev.to/dunglas/comment/103cg )

Thanks a lot!