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);
}
}
}
}