As we are just wading into the waters of clustering, your comment is probably 
very insightful. I imagine we'll have to take a hard look at what is going into 
the session and ask the question, does it really need to be there. As you 
pointed out, putting it the session now has more significant ramifications, 
given the session information will be leaving the box and get replicated to 
other machines. Thanks for pointing that out!

-----Original Message-----
From: Lance Java [mailto:lance.j...@googlemail.com]
Sent: Thursday, February 28, 2013 10:40 AM
To: users@tapestry.apache.org
Subject: RE: SelectModelImpl Non-Serializable Prevents Session Replication in 
Cluster

You should remember that HTTPSession usage should be kept to a minimum, 
especially in a clustered environment. HTTPSession usage doesn't scale well.
Do you really need to persist a list in the session? Could you instead just 
store a user id (or other filter parameter) in the session and look up the list 
each time it is needed from a service? If you find later that the lookup is 
expensive, you could look at caching at the service level.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/SelectModelImpl-Non-Serializable-Prevents-Session-Replication-in-Cluster-tp5720280p5720284.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


The information transmitted, including any content in this communication is 
confidential, is intended only for the use of the intended recipient and is the 
property of The Western Union Company or its affiliates and subsidiaries. If 
you are not the intended recipient, you are hereby notified that any use of the 
information contained in or transmitted with the communication or 
dissemination, distribution, or copying of this communication is strictly 
prohibited. If you have received this communication in error, please notify the 
Western Union sender immediately by replying to this message and delete the 
original message



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to