java - Application Session Stores on CloudBees -


i'm trying understand when/how use cloudbees' notion of application session stores.

after reading article, understanding of them provide way make multiple instances of appserver share persistent session variables. way, can load balance between each server, , doesn't matter instance user gets redirected to; each server instance has same shared session states (for users).

so first, if understanding incorrect or misinformed, please begin correcting me!

assuming more or less correct, have following questions:

  1. how hurt performance or memory utilization? imagine if each server has share same cached session data users, kind of bulky , perhaps pricy...
  2. is there way programmatically crud session states (i.e. flush cache, inspect jmx, etc.)?
  3. can provide concrete use case feature, i'm positive "get it"?

thanks in advance!

session store let replicate httpsession around cluster, can scale-out application load on multiple instances, without having stick user specific server (this other option can use : configure sticky session)

by nature, serializing httpsession data has impacts on performance, uses memcache backend minimal. depends on amount , size of objects store in user session. also, please note require explicitly put object in httpsession after attribute change, object retrieved session - general api issue javaee clustering.

you can't programmatically query session store (you could adequate memcache client code, doesn't make sense)

two concrete use cases

  • application distributed on multiple nodes, session distributed around cluster, , without sticky session load distributed user
  • application te redeployed can't suffer user session lost, ensure continuous 0 downtime service. version n+1 application retrieve httpsession data version n, need compatible serialization point of view, connected user won't notice redeployment , version upgrade

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -