Redis – Is ProcessorCount is sensible value for maxCount in SemaphoreSlim?
In code of my colleagues I've noticed code like this: private Task FetchAllKeysFromRedis(List<string> keys, ConcurrentBag<RedisModel> resultsBag, CancellationToken cancellationToken) { var parallelism = Environment.ProcessorCount; var semafore = new SemaphoreSlim(initialCount: parallelism, maxCount: parallelism); var tasks = new List<Task>(); foreach (var key in…