0

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);
                        }
                    }
                }
            }
dotNet Decoder
  • 511
  • 5
  • 8

1 Answers1

1

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

Why are connections to Azure Redis Cache so high?

Community
  • 1
  • 1
JonCole
  • 2,902
  • 1
  • 17
  • 19