V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Recommended Services
Amazon Web Services
LeanCloud
New Relic
ClearDB
puncsky
V2EX  ›  云计算

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

  •  
  •   puncsky · Feb 14, 2015 · 2841 views
    This topic created in 4093 days ago, the information mentioned may be changed or developed.

    我最近在看 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 中其他的服务器的运行。那为什么不适合呢?

    求点拨!

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5375 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 07:26 · PVG 15:26 · LAX 00:26 · JFK 03:26
    ♥ Do have faith in what you're doing.