logo       

Re: persistence for lazy people: msg#00198

Subject: Re: persistence for lazy people

On Nov 26, 2005, at 3:10 PM, Ross Boylan wrote:


Since the image is already an object database, I was thinking of using
it to serve seaside, with some thread that wakes every 10? minutes and
does a save.

I'm not, at least at first, going to have a lot of data or users.

Is this a bad idea, or does it qualify as the simplest thing that
could possible work?


It does, absolutely. It's a great 80% solution when you can get away with it. If you're worried about dropping requests in the couple of seconds that the image is saving, see the thread I started on squeak- dev a bit ago about forking and snapshotting in the background. I can send you patches for a couple of approaches to this, one which still involves a GC and one which lives more dangerously and doesn't. I've been testing both and haven't run into any problems. Saving an image then becomes nearly free, and you can probably up the frequency to every 2 or 3 minutes instead.

There's still the problem of potentially losing data if the image crashes or hangs during those 2 or 3 minutes. One dead-simple way to handle this that seems like it should work in theory, but still scares me a bit in practice, is to fully log all of HTTP requests that come in. If you need to, you can then restart the image from the last save point and replay those requests. This could also potentially make for a great forensic tool - you could step through the requests one by one and hopefully find out *why* the image crashed.

Avi


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe