简体   繁体   English

Azure共处一地的缓存会话状态(实例失败/更新)

[英]Azure co-located cache session state (instance failure/updates)

How does azure co-located cache when used for session state through the DistributedCacheSessionStateStoreProvider handle scenarios where the instances is updated (rolling/incremental) or if there is a failure on one of the instances. 当通过DistributedCacheSessionStateStoreProvider用于会话状态时,天蓝色的同位缓存将如何处理更新实例(滚动/增量)或实例之一发生故障的情况。

Is all co-located cache data replicated to all instances or is some data lost on failures? 是否将所有位于同一地点的缓存数据复制到所有实例,还是某些数据因故障而丢失?

If for example request #1 is handle by instance 0 and then instance 0 crashes/updates can request #2 that is handled by instance 1 continue to access the same Session state data from the previous request? 例如,如果请求#1由实例0处理,然后实例0崩溃/更新,实例1处理的请求#2是否可以继续访问先前请求中的相同会话状态数据?

Any ides or can somebody point me to any good resources describing cases like these? 是否有任何想法或人可以向我指出描述此类情况的任何良好资源?

For use with SessionState you have to configure the caching role with "High Availability". 要与SessionState一起使用,必须将缓存角色配置为 “高可用性”。 This will make all cache entries distributed among all instances of the role. 这将使所有缓存条目在角色的所有实例之间分配。 So a cache item will not be lost upon instance updates / recycles. 因此,在实例更新/回收时缓存项不会丢失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Azure云服务中启用同位置会话缓存 - Enabling co-located Session Caching in an Azure Cloud Service Asp.net azure co定位缓存会话状态设置? - Asp.net azure co located cache session state settings? 会话状态的Azure Co-Located-Cache最大项目大小 - Azure Co-Located-Cache max item size for session state 尝试将会话存储在同一位置的Azure缓存中时,为什么我的实例会回收? - Why do my instances recycle when trying to store sessions in co-located Azure cache? 存储在共存Azure缓存中的会话在多个实例上不同步 - Sessions stored in a co-located Azure cache gets out of sync on multiple instances 多个实例使用同一位置的缓存,但无法访问,需要良好的命名缓存实现 - Multiple instances use a co-located caching but fail to access, good named caching implementation required Azure缓存会话状态-是否部署启动用户? - Azure Cache Session State— Does Deploy Boot Users? Azure Redis缓存的会话状态不适用于多个实例 - Session State with Azure Redis Cache not working on multiple instances 在 Azure 的 Application Insights 中记录 session state Redis 的缓存 - Logging session state in Application Insights for Azure Cache for Redis 使用Azure Redis缓存会话状态提供程序跨不同域维护会话 - Maintaining Session across different domains with Azure Redis Cache Session State Provider
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM