C
C#3mo ago
Alex

Websockets to detect data update

Is it a good idea to use websockets to detect on client when data was updated on server so the client can request updated full data? Or is there a better solution? What would be if 1000 users will be connected to socket and simultaneously send 1000 requests to get updated data?
2 Replies
Lex Li
Lex Li3mo ago
In short, Azure SignalR service is mostly on WebSockets, https://azure.microsoft.com/en-us/products/signalr-service/ So any benefits it shows can guide you through.
SignalR Service – Real time web | Microsoft Azure
With Azure SignalR Service, adding real-time communications to your web application is as simple as provisioning a service.
Alex
Alex3mo ago
Thank you I'll read it. It isn't really real-time data, I fetch data in cache where it is store for some time and I need to know on the client when data in cache was updated so I can fetch it to client. I know I can do some "pre" request to fetch "last update date" and compare it to "last update date" on the client. One person suggested web sockets, but I'm not sure I need to use them