The switchover problem

R

Roedy Green

I have an Applet that uses serialized objects.

Let's say I decide to change the format of the serialized objects.

I create new *.ser files and a new Applet, then upload the whole mess
to the website.

Unfortunately, for a short while during the upload there are a mix of
old and new ser files, and the wrong applet for some of them.

Further, even after everything is uploaded, it is possible some people
may have the old applet running in their browser or cached.

I wonder what sorts of technique there are for a smooth transition.

possible solutions are:

Some special sort of FTP upload that uploads files and only renames
them all at once at the end.

The Applet continually checks if it has been updated and shuts down
gracefully if it has.
 
C

Carl Howells

Roedy said:
I have an Applet that uses serialized objects.

Let's say I decide to change the format of the serialized objects.

I create new *.ser files and a new Applet, then upload the whole mess
to the website.

Unfortunately, for a short while during the upload there are a mix of
old and new ser files, and the wrong applet for some of them.

Further, even after everything is uploaded, it is possible some people
may have the old applet running in their browser or cached.

I wonder what sorts of technique there are for a smooth transition.

The best solution is probably to not overwrite the previous Applet at
all. Instead, put it in a parallel directory, and change links to point
to it instead. Then, after sufficient time has gone by, remove the
first one.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top