real time updates in microservices, websockets or sse
Kamila T. Zharylkasyn
·1917 views
Hey everyone, so I'm building a system with a bunch of microservices, and we need to get real-time updates to the frontend. We've thought about using WebSockets for two-way communication, but I'm also curious if Server-Sent Events (SSE) might be a more straightforward and better option for this particular situation. The frontend mostly just needs to get data, not send a whole lot back. What have you guys found when comparing WebSockets and SSE for real-time features in a microservices setup? When did one seem like the better choice over the other?
41 comments