tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kief Morris <>
Subject Re: Session Serialize code
Date Sat, 30 Dec 2000 14:00:52 GMT
Jon Stevens typed the following on 06:35 PM 12/29/2000 -0800
>> I can see this being used for fault tolerance. If your servlet engine 
>> or if you have to restart it for some reasons, your users' sessions don't 
>> to be lost.
>If the server crashes, then you are screwed either way.

If it crashes and is restarted quickly, it can load the serialized sessions
from disk and users can carry on. This assumes you've got some kind
of script watching and restarting the server process.

>If you are live, then serializing/deserializing the sessions for each and
>every request could be a major slowdown (even with this code). 

It doesn't need to. I'm writing PersistentManager to put the session
on a queue to be serialized by another thread. This shouldn't have a
noticeable performance impact.


View raw message