TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Any one with experience with Server Sent Event at scale?

4 pointsby iraldirabout 3 years ago
Positive or negative experience, we're considering it as an alternative to websocket as we're only pushing data down and don't require upstream really

2 comments

joshxyzabout 3 years ago
Couple thoughts<p>- Savings in bandwidth might be only noticeable if the demand for scale is real and you have already exhausted other optimizations available. Think of trade-offs, the performance gains might be there, but other factors count like how familiar is your team with it, how flexible or constricting it is, etc etc.<p>- WebSockets are easier to implement on the client-side, most developers are familiar with it, both in web app and mobile apps.<p>- Since WebSockets are bi-directional, it&#x27;s easy to let client send any data (e.g. for debugging, tracing, monitoring) almost effortlessly any time you might need it (maybe not now, maybe in the future).<p>- WebSockets support binary data, you can use existing serialization formats like msgpack, or have your own binary serialization format.<p>- There are WebSocket web frameworks out there like uWebSockets (written in C &amp; C++, has Node.js API), used by most trading platforms, which got better performance than most web frameworks out there.<p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;uNetworking&#x2F;uWebSockets" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;uNetworking&#x2F;uWebSockets</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;uNetworking&#x2F;uWebSockets.js&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;uNetworking&#x2F;uWebSockets.js&#x2F;</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;uNetworking&#x2F;uWebSockets&#x2F;tree&#x2F;master&#x2F;benchmarks" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;uNetworking&#x2F;uWebSockets&#x2F;tree&#x2F;master&#x2F;bench...</a>
sharps_xpabout 3 years ago
I don&#x27;t have experience, but would like to experiment with this as well mostly because of rails 7&#x27;s turbo broadcasts can use SSE instead of websockets. From my research so far, as a frugal dev, I&#x27;m trying to figure out how different hosting providers handle long-lived connections. I basically have to put my app behind an nginx proxy b&#x2F;c ruby web servers won&#x27;t be friendly with so many SSE connections.