From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id CEF7DBBAF for ; Mon, 26 Jul 2010 11:15:29 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjUGAHXvTExQW+UMgWdsb2JhbACSaTCMRxUBARYiIr5rhTYEh1OBEQ X-IronPort-AV: E=Sophos;i="4.55,260,1278280800"; d="scan'208";a="66930157" Received: from lo.gmane.org ([80.91.229.12]) by mail4-smtp-sop.national.inria.fr with ESMTP; 26 Jul 2010 11:15:09 +0200 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OdJm4-0000GP-CJ for caml-list@inria.fr; Mon, 26 Jul 2010 11:15:04 +0200 Received: from ks368928.kimsufi.com ([94.23.39.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jul 2010 11:15:04 +0200 Received: from sylvain by ks368928.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jul 2010 11:15:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: scalable web apps Date: Mon, 26 Jul 2010 09:11:27 +0000 (UTC) Message-ID: References: <914B9960-EBC8-439B-B7F8-A852859B522F@gmail.com> <407966.39005.qm@web111512.mail.gq1.yahoo.com> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ks368928.kimsufi.com User-Agent: slrn/pre1.0.0-11 (Linux) X-Spam: no; 0.00; le-gall:01 scalable:01 non-blocking:01 non-blocking:01 circumstance:98 wrote:01 unix:01 unix:01 tar:01 static:03 static:03 apps:04 problem:05 extension:06 images:93 Hello, On 25-07-2010, Dario Teixeira wrote: > > The only circumstance where I would be cautious on relying solely on a > naked Ocsigen is if you are also required to serve plenty of static content > (images, etc). Even though Ocsigen includes an extension for serving static > pages, for hysterical reasons no Unix supports non-blocking mode for regular > files, which of course causes problems for Lwt-apps (see the Lwt manual for > more information on this). Therefore, in this context you may get better > results by having another server (like Nginx) dedicated to static content. > 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? Regards, Sylvain Le Gall