architecture-center icon indicating copy to clipboard operation
architecture-center copied to clipboard

Alternative caching options

Open kmathewmk opened this issue 2 years ago • 1 comments

Are there alternatives to Redis (Azure Cache for Redis)? If yes, what are they and their pros & cons?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

kmathewmk avatar Jun 17 '22 05:06 kmathewmk

kmathewmk, Thanks for the feedback! Your feedback has been shared with the content owner for further review.

AjayKumar-MSFT avatar Jun 17 '22 08:06 AjayKumar-MSFT

Hi @kmathewmk Sorry for the delay. Using c# you can configure several distributed cache, https://learn.microsoft.com/aspnet/core/performance/caching/distributed#establish-distributed-caching-services. It includes options like SQL Database as cache.

Here the recommendations: https://learn.microsoft.com/aspnet/core/performance/caching/distributed#recommendations

I will close the ticket, but feel free to re-open if additional clarification is needed.

v-fearam avatar Feb 24 '23 19:02 v-fearam

#please-close

v-fearam avatar Feb 24 '23 19:02 v-fearam

Thanks for the useful pointer. I think that alternatives should be mentioned or linked in the Caching guidance - Azure Architecture Center page. Having the information here in the git issue does not expose the info to all users. Also, are there caching alternatives suited for cloud/AKS services running of multiple compute instances? For eg we tried Varnish, Nginx for some of our needs.

kmathewmk avatar Feb 27 '23 08:02 kmathewmk

Thanks for the suggestion, I will create a ticket for content development writers.

Even though you are looking for cache options, the best way to cache applications data on Azure is using Redis. It is cloud and as a service. The service manages the high availability. Also, you could use SQL Server as a service and use it as cache.

From AKS, you can use any azure service.

Varnish is a different kind of cache. Here how to use it on Azure

As far as you can run it on docker you can use it inside AKS. The same case for nginx.

v-fearam avatar Feb 28 '23 09:02 v-fearam