tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Dynamic content with bozohttpd



Am 12.10.13 16:46, schrieb Jochen Kunz:
> On Sat, 12 Oct 2013 14:41:31 +0200
> Marc Balmer <marc%msys.ch@localhost> wrote:
> 
>> Keep one thing in mind:  bozohttpd forks for each request when in daemon
>> mode,
> I am no bozohttpd expert. I had the hope that it uses threads or
> synchronus multiplexing in daemon mode. Old style fork(2)ing is OK, but
> not that efficient. (I know where to look to avoid it, see below.)

Indeed.

> 
>> so you can't keep any state between calls
> Well. That is exactely what I expect from CGIs.

the point being that these Lua scripts are not CGIs,  but precompiled
chunks of code, so the startup time is a lot faster.  State information
can be kept somewhere outside if needed (filesystem, sqlite, whatever).

I think this Lua addition to bozohttpd could be very useful for some
applications.

> 
>> If that is to limiting, use a webserver with FastCGI and the Lua FastCGI
>> binding on github.com/mbalmer.
> (lighttpd + FastCGI + cgicc + self brewen backend daemon in C++ + DBus
> API for internal clients) is what we use at work for a current project.
> So I am aware of the limitations of old style CGIs and ways to avoid
> them. :-)
> 



Home | Main Index | Thread Index | Old Index