Re: [Caml-list] Re: scalable web apps

2010-07-26 Thread Dario Teixeira
Hi, I am creating an application with ocsigen that requires to serve a lot of .tar.gz as static contents. Do you think the no Unix supports non-blocking mode will cause problem in this case? I presume that application is related to the Oasis-DB initiative, right? I wouldn't worry too much

[Caml-list] Re: scalable web apps

2010-07-26 Thread Sylvain Le Gall
On 26-07-2010, Dario Teixeira darioteixe...@yahoo.com wrote: Hi, I am creating an application with ocsigen that requires to serve a lot of .tar.gz as static contents. Do you think the no Unix supports non-blocking mode will cause problem in this case? I presume that application is

Re: [Caml-list] Re: scalable web apps

2010-07-26 Thread William Le Ferrand
Why would you use ocsigen to serve static files? For corefarm.com we put all the files in amazon s3 and we just generate on the fly the url to retrieve them (adding the timestamp, signing the get parameters etc). My 2 cents, william 2010/7/26 Sylvain Le Gall sylv...@le-gall.net On

Re: [Caml-list] Re: scalable web apps

2010-07-26 Thread Dario Teixeira
Hi, Why would you use ocsigen to serve static files? Simplicity. A single server takes care of dynamic and static content, making it easy to develop and administer. For corefarm.com we put all the files in amazon s3 and we just generate on the fly the url to retrieve them (adding the

[Caml-list] Re: scalable web apps

2010-07-26 Thread Sylvain Le Gall
On 26-07-2010, Florent Monnier monnier.flor...@gmail.com wrote: Le lundi 26 juillet 2010 13:20:46, Dario Teixeira a écrit : Hi, How does Ocsigen handle database operations? I thought it was using PG'OCaml, but maybe I'm wrong. Ocsigen itself does not use PG'OCaml. The two are

Re: [Caml-list] Re: scalable web apps

2010-07-26 Thread Gabriel Kerneis
On Mon, Jul 26, 2010 at 05:10:01PM +, 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

[Caml-list] Re: scalable web apps

2010-07-26 Thread Sylvain Le Gall
On 26-07-2010, Gabriel Kerneis kern...@pps.jussieu.fr wrote: On Mon, Jul 26, 2010 at 05:10:01PM +, 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

[Caml-list] Re: scalable web apps

2010-07-24 Thread Sylvain Le Gall
On 24-07-2010, Joel Reymont joe...@gmail.com wrote: How do you build scalable web apps with OCaml? Do you use Apache with mod_caml? Naked Ocsigen? Do you put Ocsigen behind Nginx? I think that using ocsigen should be enough. There was a nice presentation by Dario Texeira at the last OCaml