Recommended Services
Amazon Web Services
LeanCloud
New Relic
ClearDB
puncsky
V2EX  ›  云计算

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

  •  
  •   puncsky · Feb 14, 2015 · 2880 views
    This topic created in 4116 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   ·   1322 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 17:11 · PVG 01:11 · LAX 10:11 · JFK 13:11
    ♥ Do have faith in what you're doing.