[uWSGI] V8 support. Nodejs ?

Roberto De Ioris roberto at unbit.it
Wed Oct 23 14:01:59 CEST 2013


> Hello,
>
> I read here :
> http://uwsgi-docs.readthedocs.org/en/latest/V8.html
>
> That uwsgi supports v8. Does that means that uwsgi can rpc nodejs ?
> Can nodejs server be run "inside" uwsgi application ?
>
> This part -which seems very neat- is not documented enough to let me
> understand what is going on there.
>
> Thanks !
>  		 	   		  ____

The plugin only embeds the v8 engine (you can write rpc functions in
javascript, as well as signal handlers).

Node.js is another beast as it implements its loop engine. As node.js is
not (currently) embeddable there is current no way to use it into uWSGI.

By the way, implementing the uwsgi protocol in javascript is really easy,
so you can expose functions via node.js and call them from uWSGI apps
really fast (feel free to ask for help here)

Just as a note: A tweet mentioned Passenger embedding node.js and that
uWSGI could get inspiration by that. This is not true, passenger is a
proxy solution embedding a process manager in the webserver, so node.js is
not embedded. You can get the same passenger approach using attach-daemon
and without changing your node.js code.

-- 
Roberto De Ioris
http://unbit.it


More information about the uWSGI mailing list