Menu
Back to Discussions

Should we use WebSockets or Server-Sent Events for real-time updates?

Fei Lim
Fei Lim
·4161 views
Hey everyone, I'm building a new feature that needs the server to send updates to the client in real-time. We're already using microservices, and I'm a bit concerned about how this will affect performance and scalability. I've been looking into WebSockets and Server-Sent Events (SSE). WebSockets look like they offer more for two-way communication, but SSE might be easier since we only need to send data one way. What have you all found works best? When did you choose one over the other for similar projects, and what really made you decide?
28 comments

Comments

Loading comments...