Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Persisting sessions in the database limits your scalability. If scalability is not that important for you this (db + memcached) is a valid approach.</p> <p>One thing you need to keep in mind when using nonsticky-sesions are concurrent requests: when you have e.g. ajax-requests (executed in parallel/concurrently) they will be served by different tomcats (due to non-stickyness) and therefore access the session concurrently. As long as you have concurrent requests that might modify the session you need to implement some kind of synchronization / session locking.</p> <p>Perhaps this is of interest for you: I created the <a href="http://code.google.com/p/memcached-session-manager">memcached-session-manager</a> with the goal of both optimal performance and unlimited scalability. It can work with any memcached-compatible backend (e.g. also memcachedb, membase etc. or just memcached). Although it was originally created for a sticky-sessions approach, there's already a <a href="https://github.com/magro/memcached-session-manager/tree/nonsticky-sessions">branch for nonsticky-sessions</a> existing and a <a href="https://github.com/magro/msm-sample-webapp/tree/nonsticky-sessions">sample app</a> showing how/that it works. Right now there's a <a href="http://groups.google.com/group/memcached-session-manager/browse_frm/thread/b0106aa0a3eb3db0">thread on the mailing list on further improvements for nonsticky-sessions</a> (handling of concurrent requests and preventing single-point-of-failure).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload