Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cache strategy in Azure Web Sites

I have a simple project that I'd like to publish to Azure Web Sites. I need to do some basic caching of a few values to speed things up a bit.

What's the right strategy for caching data in this scenario? I guess that as long as I stay on free or reserved I can use simple standard web cache as it's a single machine, but what happens if I'd like to use shared a number of instances? Is distributed cache really available for web sites? What other options do I have for simple cache here?

like image 443
Riri Avatar asked Dec 01 '25 00:12

Riri


1 Answers

According to this, it doesn't look like you could use the shared / distributed cache. Has that changed? Do you have a link that says Azure supports either of their 2 cache scenarios for websites?

As long as you only have 1 instance, you are right, using the normal outputCache should be okay. If you scale out to 2 or more instances, you may have to migrate from a Website to a Hosted Service in order to use either of the other 2 caching strategies. Azure has not been offering the full suite of features with websites that they do with hosted services.

like image 176
danludwig Avatar answered Dec 02 '25 16:12

danludwig



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!