java - shared data stored in memory in a cluster on tomcat based app -


i'm writing tomcat 7 java application uses websockets.

this java application on amazon ec2 cluster behind load balancer app on around 2-5 servers.

i have classes holds online users , know if it's possible share information around cluster.

is memcached solution? can data there shared between cluster? never used memcached. guess

or should change code store in database data shared among servers?

what's efficient solution overcome problem?

any information regarding issue appreciated.

thanks

welp memcached answer. simple that.

amazon ec2 provides memcached based cluster can used memcached api (spymemcached) or own implementation (that uses spymemcached) called elasticache-java-cluster-client can audio detects memcached nodes.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -