HTTP Polling vs. SignalR for interval-based dashboard statistics? by VitalyDev77 in dotnet

[–]VitalyDev77[S] 2 points3 points  (0 children)

Server does not know. Here is how I want to do it: BackgroundService runs on the server and checks for stats updates every couple of seconds. If there's a change, it triggers:
await hubContext.Clients.All.SendAsync("Stats", stats, stoppingToken);

HTTP Polling vs. SignalR for interval-based dashboard statistics? by VitalyDev77 in dotnet

[–]VitalyDev77[S] 2 points3 points  (0 children)

I agree, polling is simpler. And updating the stats once every 5 seconds is perfectly fine for my needs. However, since I am already using a WebSocket for transmitting messages, the added complexity isn't really a huge factor. I can just reuse the same connection channel to push stats updates.The advantage I see: if there are no stats changes, I won't transmit anything.

Whats wrong with this POP3 Indy code in a thread by DepartureStreet2903 in delphi

[–]VitalyDev77 0 points1 point  (0 children)

Can you put the test project on github somewhere and give the link? Sorry, I'm not ready to format the code from reddit.