On Mon, Aug 06, 2012 at 08:48:28PM +0300, Lauri Kasanen wrote:
> On Mon, 6 Aug 2012 19:42:54 +0200
> Sonny Karlsson <[email protected]> wrote:
> 
> > by assigning it at runtime allows the module to be
> > reused outside monkey without modification..
> 
> This mainly. Why? If it's a monkey plugin, why should it care about being 
> used elsewhere?
> 
> A function pointer is always slower than a direct call.

I will eventually resume work on a older project of mine were some
parts of this plugin will be reused. Making sure those parts are
portable will allow improvements made in one project to spill over to
the other. 

> 
> > > - it'd be good to add starting/stopping support so util programs like 
> > > spawn-fcgi aren't needed
> > 
> > This could be a good feature, and I've actually considered using
> > spawn-fcgi internally, but decided against it quite early.
> > 
> > My reason for doing so is that the feature I like most about fastcgi
> > is the separation of concerns. The http server handles communication,
> > routing requests as needed, while the fastcgi server generates
> > content. Managing fastcgi server processes from monkey would violate
> > this separation, introduce complexity and also duplicate already
> > existing functionality in other tools (spawn-fcgi, fcgi-cgi,
> > php5-fpm).
> 
> Most other servers allow that. Lighttpd does not require you to use any 
> additional utils, for example. It will start and stop the required amount of 
> fastcgi servers with it.
> 
> This is both user-friendly and works well for the usual scenario where both 
> are hosted on the same physical hw.

Your usage scenario is not the one I considered primarily. I consider
the scenario where monkey is running on cheap hardware or VM in front
of numerous fastcgi servers on other cheap hardware VMs to be the
intended use. This separates concerns well and could be very
efficient. Monkey is after all aimed at embedded devices. Of course
both scenarios should be considered, and I would not mind if someone
would implement this feature, but in the end I don't think it's
needed. Look at how well it's working out for Nginx, they don't
include this feature.

> 
> - Lauri

-- 
Sonny Karlsson
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to