Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
scalable web apps
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-07-26 (17:38)
From: Sylvain Le Gall <sylvain@l...>
Subject: Re: scalable web apps
On 26-07-2010, Gabriel Kerneis <> wrote:
> On Mon, Jul 26, 2010 at 05:10:01PM +0000, Sylvain Le Gall wrote:
>> > Both Dbm and Sqlite lock the entire files which blocks concurrent uses,
>> > isn't it a problem?
>> For sqlite, at least, it uses Lwt_preemptive.detach and sqlite3 contains
>> the required caml_enter/leave_blocking_section(s). So Lwt should work
>> without problems with sqlite.
>> I suppose it is the same for dbm.
> No.  For dbm there is a separate daemon (ocsidbm) opening the file once
> and serializing requests sent from and back to Ocsigen through a pipe.

Thanks for this clarification. So basically, it also works with Lwt but
using a little bit heavier backend (i.e. launching a process rather than
launching a thread).

Sylvain Le Gall