> Hello,
>
>       I need to find a way to run small Lua scripts on an ARM appliance
> and save data in an SQLite database.
>
> Since the Nginx ngx_lua module is blocking and is, thus not
> recommended for use with SQLite, I need to know if uwsgi/uWSGI is a
> better alternative:
>
> 1. Am I correct in understanding that uwsgi is the binary file, while
> uWSGI is the WSGI protocol as implemented in the uwsgi binary?

it is a bit messy:

"uwsgi" -> the binary executable

"uwsgi" -> the communication protocol

"uWSGI" -> the whole project


>
> 2. Does uwsgi also support the FastCGI protocol? If yes, why should I
> use uWSGI instead of FastCGI to run Lua scripts?

yes it support FastCGI too, uwsgi (from low-level point of view) is more
easy to parse (less logic) but it is more limited. If you do not need
strings bigger than 64k it is the most performant way.


>
> 3. How can I check if the Nginx I have installed through apt-get does
> support the uWSGI protocol, since "nginx -V" only mentions
> "--http-uwsgi-temp-path=/var/lib/nginx/uwsgi"?

it is enough to tell you it is compiled in. (btw it is compiled in by
default)

>
> 4. On an ARM appliance to run Lua scripts + SQLite, would you
> recommend Nginx + uwsgi in uWSGI mode + uwsgi-plugin-lua5.1, or some
> alternative (Nginx + FastCGI, mini-httpd + FastCGI, etc.)?
>

very probably you do not nginx at all for such setup (neither a http
proxy), just run uWSGI in native http mode with:

uwsgi --http-socket :port --lua <script>

for embedded systems it is the cheapest way

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to