Search code examples
stackexchange.redisazure-redis-cache

Why Azure portal is showing Redis Connections Connected client 4.99K?


I have singleton azure-redis database client used in our application. However on Azure portal it shows connected clients 4.99K. I am not sure who are those clients and why it is showing 4.99K clients connected when I have singleton instance?

Sample Code:

using StackExchange.Redis;
if (instance == null)
            {
                lock (syncRoot)
                {
                    if (instance == null)
                    {
                        try
                        {
                            _cacheService = GetConnectionMultiplexer();
                            instance = _cacheService.GetDatabase();
                        }
                        catch (Exception ex)
                        {
                            Debug.WriteLine(ex.Message);
                        }
                    }
                }
            }

Solution

  • Per our discussion in comments, this is the same issue as described here:

    Why are connections to Azure Redis Cache so high?