Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: William Le Ferrand <William.Le-Ferrand@p...>
Subject: Re: [Caml-list] Re: scalable web apps
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 <sylvain@le-gall.net>

> On 26-07-2010, Dario Teixeira <darioteixeira@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 related to the Oasis-DB initiative, right?
>
> You guess right ;-)
>
> > I wouldn't worry too much in that case.  First, because the Ocaml
> community
> > is not that big (yet) as to cause such heavy traffic.  Second, because
> > the set of tar.gz files is not that great (a few hundred, max?) and those
> > files will tend to be small.  If your server has enough memory, there's a
> > good chance many of the file blocks requested will eventually be buffered
> > in memory by the kernel, thus minimising expensive disc I/O.
> >
>
> There is indeed a good chance that the files end up in memory.
>
> Thank you for your remarks.
>
> Regards,
> Sylvain Le Gall
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>



-- 
William Le Ferrand

Speed matters : http://www.corefarm.com
Objects get social : http://www.sotokolan.com

Mobile : +33 6 84 01 52 92
LinkedIn : http://www.linkedin.com/in/williamleferrand