Improve load balancing and move to pull based model

This commit is contained in:
Stone_Red
2025-12-21 14:18:35 +01:00
parent 27558ba3f2
commit 8d5bb1eff4
8 changed files with 344 additions and 149 deletions
@@ -6,7 +6,7 @@ namespace RemoteExec.Server.Services;
public class MetricsBroadcastService(IHubContext<RemoteExecutionHub> hubContext, ILogger<MetricsBroadcastService> logger) : BackgroundService
{
private readonly TimeSpan _broadcastInterval = TimeSpan.FromSeconds(2);
private readonly TimeSpan _broadcastInterval = TimeSpan.FromMilliseconds(500);
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{