clover
Using SSE and Rest together
I’m developing a web application using ASP.NET for the backend and React for the frontend. I’ve learned that while REST APIs typically require polling for regular updates from the server, Server-Sent Events (SSE) offer a way to handle real-time updates. Would it be reasonable to use REST API calls for standard client-server interactions and SSE for global server updates? I’m considering this approach but am aware that using two different communication methods might seem unusual. It’s also worth noting that I don’t expect the client to receive a lot of asynchronous data.
8 replies