I have implemented an Azure Redis cache in my API. It uses the CacheResponse attribute, as well as Setting and Getting items from the CacheClient.
Things seems to work find for just a few users, however when the users are in the thousands everything grinds to a crawl response-time wise. CPU usage flies up and even requests that do no processing and should be served directly from the CacheResponse take a long time.
Are there any suggestions when working with an Azure Redis cache? The web app and cache are hosted in the same region. Are there any special flags that need to be set on Redis? Is the PooledRedisClientManager struggling somehow?
To mitigate some issues I marked all CacheResponse attributes with UseLocal as true.
I’d assume the Azure tiered versions of Redis are assigned little resources so they force you to upgrade, you can try running Redis in a VM as it wouldn’t have the same restrictions and will be able to use all the CPU/RAM resources in your VM.