Hi,
I'm currently looking into implementing clustering support for Stratos Load
Balancer and found that the current Synapse SALSession implementation does
not distribute the session information in a clustered environment.
I would like to propose to implement this functionality using the caching
feature available in Carbon 4.2.0 based on JSR 107.
*Implementation Proposal*
- The basic idea of this implementation is to move the following
established sessions map in
org.apache.synapse.endpoints.dispatch.SALSessions class to a
javax.cache.Cache so that it could have a distributed hash map in a
clustered environment and a local hash map in a non clustered environment.
private final Map<String, SessionInformation> establishedSessions =
new ConcurrentHashMap<String, SessionInformation>();
WDYT? Appreciate your thoughts on this.
Thanks
--
*Imesh Gunaratne*
Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev