默认情况下共享缓存还是在Azure中取消缓存 [英] Is the caching shared by default or disributed in Azure

查看:114
本文介绍了默认情况下共享缓存还是在Azure中取消缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前有一个在本地服务器上运行的网站,并且该网站确实用于内存缓存.

We have a website currently running on the on premises servers, and the website do use in memory caching.

我们计划将网站移至Azure platfrom.

We are planning to move the website on Azure platfrom.

有必要从我们使用http://www.mydomain.com/clearcache.aspx页面清除网站上的所有缓存

There is a need to clear all the cache from the website which we do using a page http://www.mydomain.com/clearcache.aspx

现在在Azue上,此请求将转到特定实例并从该实例清除缓存,但是其他实例仍将具有缓存,并且去往该实例的请求将从缓存中读取.

Now on Azue, this request will go to a particular instance and will clear the cache from that instance, but the other instances will still have the cache and requests going to that instance will read from cache.

我们想从Web应用程序的所有实例中清除缓存.能请您提供建议吗?

We want to clear the cache from all the instances of the web app. can you please advise on this.

致谢

Umesh Deshmukh

Umesh Deshmukh

Umesh

推荐答案

嗨apkaUmesh,

Hi apkaUmesh,

答案都不是.您需要实现最适合您的业务逻辑的缓存逻辑.请看一看 缓存文档,它将指导您完成整个决策过程,并帮助您了解各种选择.

The answer is neither. You need to implement the caching logic that best serves your business logic. Please take a look at Caching documentation which will guide you through this decision making process, and help you understand your options.

如果您正在运行Web群集,减轻任何私有缓存情况的最佳选择是使用 Azure Redis 缓存.

If you are running a web cluster, your best bet to mitigate any private cache scenarios, is to use Azure Redis cache.

这应该会对您有所帮助,如果还有其他问题,请告诉我们.

This should help you and please let us know if you have additional questions.

此致

迈克(Mike)


这篇关于默认情况下共享缓存还是在Azure中取消缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆