• Stars
    star
    759
  • Rank 59,644 (Top 2 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 15 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A tomcat session manager that backups sessions in memcached and pulls them from there if asked for unknown sessions

memcached session manager

Join the chat at https://gitter.im/memcached-session-manager/Lobby Build Status Maven Central

memcached-session-manager is a tomcat session manager that keeps sessions in memcached or Redis, for highly available, scalable and fault tolerant web applications. It supports both sticky and non-sticky configurations, and is currently working with tomcat 6.x, 7.x, 8.x and 9.x. For sticky sessions session failover (tomcat crash) is supported, for non-sticky sessions this is the default (a session is served by default by different tomcats for different requests). Also memcached failover (memcached crash) is supported via migration of sessions. There shall also be no single point of failure, so when a memcached fails the session will not be lost (but either be available in tomcat or in another memcached).

Installation and Configuration

Basically you must put the spymemcached jar and the memcached-session-manager jars into tomcat's lib folder. If you want to use Redis instead of memcached, you need the jar of the Redis client "jedis" instead. Additionally you must set the Manager class and add some configuration attributes. This is described in detail in the SetupAndConfiguration wiki page.

Where to get help

Checkout the wiki for documentation, contact the mailing list or submit an issue.

How to contribute

If you want to contribute to this project you can fork this project, make your changes and submit a pull request. Or you start on the mailing list and we'll see how we can work together.

Samples

There's sample webapp that allows to run tomcat+msm in different configurations, both sticky and non-sticky etc, just checkout the README.

License

The license is Apache 2.0, see LICENSE.txt.

More Repositories

1

kryo-serializers

More kryo serializers
Java
377
star
2

msm-sample-webapp

A sample (wicket) webapp for playing with memcached-session-manager
XML
61
star
3

play2-scala-cassandra-sample

Play Framework 2 Scala sample application that shows how to access Cassandra using the DataStax driver and its asynchronous API.
Scala
34
star
4

persistent-queue

Simple, persistent queue
Java
18
star
5

play-coda-reactive

The computer database sample in a reactive style (using postgresql-async)
Scala
8
star
6

supercsv

The main motivation for Super Csv is to be the best, fastest and most programmer friendly free CSV package for Java. Super Csv's unique features raises the bar and sets a new standard for CSV packages. Super Csv is designed around solid Object-oriented principles, and thus aims to leverage your Object-oriented code, making it easier to write and maintain.
Java
8
star
7

elliptic-benchmark

Benchmark developed and published by Ellipticgroup / Brent Boyer, www.ellipticgroup.com/html/benchmarkingArticle.html. This is the latest version of the Benchmark as provided by Brent, stripped down to what's actually needed for the Benchmark class.
Java
4
star
8

jsr303-validators

Custom jsr303 validators.
Java
4
star
9

j-wiktionary

A simple in-memory java api for wiktionary.org for some text mining tasks.
Java
3
star
10

play-product-finder

Play! Framework 2 reactive end-to-end sample app - meta search for st. pauli products
Scala
3
star
11

msm-jackson-serializer

A serialization strategy for the memcached-session-manager that uses jackson (json)
Java
2
star
12

servlet-original-transport-support

Makes loadbalancer SSL offloading transparent to your web application - the servlet request seems to be a true https request.
Java
2
star
13

msm-xstream-serializer

A serialization strategy for the memcached-session-manager that uses XStream
Java
2
star
14

play2-java-computer-database

Modified version of the play computer-database java sample
Java
2
star
15

buildr-addons

Useful stuff for buildr
Ruby
2
star
16

kryo-osgi-samples

Samples running kryo in an OSGI environment
Java
1
star
17

get-functional-java

Compares some approaches for functional java, mainly focused on functionaljava.org.
Java
1
star
18

buildr-sandbox

A place to test things with buildr
1
star
19

kryo-compat-reports

Reports comparing various kryo versions
1
star
20

msm-aalto-serializer

A serialization strategy for the memcached-session-manager that uses Aalto for xml writing/reading
Java
1
star
21

misc

Repo for miscellenious stuff, might also be called sandbox, workspace or playground
Java
1
star
22

msm-javolution-serializer

A serialization strategy for the memcached-session-manager that uses Javolution (http://javolution.org/).
Java
1
star
23

play-iteratee-stackoverflow

Sample to demonstrate a potential issue with Play Framework iteratees throwing a StackOverflowError
Scala
1
star