V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Recommended Services
Amazon Web Services
LeanCloud
New Relic
ClearDB
puncsky
V2EX  ›  云计算

为什么 Cache Aside Pattern 不适合在 web farm 中 cache session state

  •  
  •   puncsky · 2015-02-14 02:54:58 +08:00 · 2390 次点击
    这是一个创建于 3331 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我最近在看 MSDN cache aside pattern,其中有这么一句话:

    This pattern might not be suitable: ... For caching session state information in a web application hosted in a web farm. In this environment, you should avoid introducing dependencies based on client-server affinity.

    我不明白的是,session cache 在我看来应该是很惯常的做法,无论是 cache aside 也好还是 read-through/write-through 也好,它们总是会有一个对 cache 依赖,在 load balancer 的后面即便有 client-server affinity (sticky session) 也不会影响到 web farm 中其他的服务器的运行。那为什么不适合呢?

    求点拨!

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5750 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 06:12 · PVG 14:12 · LAX 23:12 · JFK 02:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.