lua-users home
lua-l archive

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


On 5 Aug 2013, at 20:16, Aaron B. <aaron@zadzmo.org> wrote:

> In addition, to reload your
> application after a change to the code required a restart of Lighttpd.

Use spawn-fcgi and manage the FastCGI app instances through it. In particular you can start multiple instances of your app (fastcgi.servers), then when you need to refresh you can do a rolling reload avoiding downtime. And/or add your own reload routines to the app, which is better.

The WSAPI interface does however provide a no-caching option, presumably only for development.

> For what it's worth, these days I'm getting excellent results running
> apps in uWSGI behind nginx. uWSGI can talk FastCGI but I haven't
> configured it that way before.

Looks interesting, I shall try playing with that myself. Although I'm shifting towards the idea of OpenResty being a better architecture to avoid process/instance coordination issues.