Menu
Back to Discussions

real-time bidirectional communication: WebSockets or Server-Sent Events

Bastian Thiel
Bastian Thiel
·94 views
Hey everyone, so I'm working on a new project and we need to push updates from the server to the client in real-time. You know, like live dashboards or chat. We're already using microservices, and now we need to add this real-time thing. I'm trying to decide between WebSockets and Server-Sent Events (SSE). WebSockets offer full two-way communication, which sounds powerful. But SSE seems easier if we really just need the server to send stuff to the client. What have you all found works best for real-time features with microservices? Any tricky parts or good ways to handle connections and scaling?
0 comments

Comments

Loading comments...