HttpSession Failover - Spring Session
Spring Session 1.0.0M1 was announced recently and it's a great answer to HttpSession failover.
essentially it allows you to architect this;
- multiple instances of a webapp connected by redis (or any other bus) to share httpsession objects
the trick to remember is that you no longer need sticky sessions; just hit any server you like as the session data is replicated and shared to all members talking to the same redis server.
put this on CloudFoundry and you're really cooking; scale up and down the web apps without any worries about HttpSession loss and stickiness
(and to see it in a really really rough test, check out redis-session.cfapps.io)
No comments:
Post a Comment