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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -