From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 6A65DBC58 for ; Fri, 17 Sep 2010 10:57:29 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.56,381,1280700000"; d="scan'208";a="67745227" Received: from aspirine.inria.fr (HELO [128.93.60.41]) ([128.93.60.41]) by mail1-relais-roc.national.inria.fr with ESMTP; 17 Sep 2010 10:57:29 +0200 Message-ID: <4C932D79.4040905@glondu.net> Date: Fri, 17 Sep 2010 10:57:29 +0200 From: =?UTF-8?B?U3TDqXBoYW5lIEdsb25kdQ==?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Mnenhy/0.8.2 Icedove/3.0.6 MIME-Version: 1.0 To: Paolo Donadeo Cc: OCaml mailing list Subject: Re: [Caml-list] web server interface for Ocaml ( like rack, wsgi, ...)? References: <21686.68875.qm@web111507.mail.gq1.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam: no; 0.00; ocaml:01 ocamlnet:01 phane:98 steph:98 connectors:98 phane:98 caml-list:01 constraints:03 problem:05 install:05 installed:05 interface:06 reasoning:07 standard:07 standard:07 Le 17/09/2010 09:59, Paolo Donadeo a écrit : >> Could you expand on the reasoning a little? I mean, what is for you >> the advantage of running Eliom over Ocamlnet as opposed to over the >> Ocsigen server? > >> From my point of view the problem with Ocsigen is that it requires you > to install an HTTP server. In the real world the programmer, or even > the project leader, don't have this freedom of choice, because there > are system constraints imposed by others. You are often asked to > provide an application, along with detailed instruction for the > installation in a standard environment, where one (ore more) HTTP > servers have some standard connectors (WSGI, FastCGI, AJP, etc...) Ocsigen can run with most other webservers via a reverse proxy. The Ocsigen process itself doesn't even need to have special privileges, and can be installed and run by a regular user. If you are allowed to use WSGI, FastCGI, AJP, etc., it shouldn't be more difficult to use Ocsigen. Process management might not be as handy, so you'll have to manage somehow the ocsigen process crashing / being killed, but there are other tools (e.g. monit) for that. I'm not saying that WSGI, FastCGI, AJP, etc. support for Eliom has no benefit! But we can live (and we do) without it for now. -- Stéphane