📜 ⬆️ ⬇️

ngxv8

Last week they showed me a rather curious project, which, unfortunately, is at a very early stage. Its goal is to integrate the V8 javascript engine into the nginx web server. Sounds unusual, right? .. :)

In fact, I see quite a few advantages in this idea, the main ones are:

- V8, presumably, much faster than the existing integrated Perl;
- Javascript knows a lot of people, and they will write on it;
- Javascript is completely natural in the part of the asynchronous IO - the XMLHTTPRequest interface is everything, and in nginx you could do something similar for work with input-output;
- Javascript is a modern, standardized and developing language, with support from Google (and other corporations), it has chances to live happily ever after, unlike Perl;
')
The main two minuses of this venture are the general inability of Nginx to be an application server (at least for more or less large applications), as well as some unusualness of the very idea of ​​a javascript on the server-side.

Nevertheless, I believe that the V8 on the server side is waiting for a rather interesting future, although it may not be in the form of a module for nginx. Judging by the tests, it surpasses most of the server languages ​​used at the moment in performance, and has very good support (and not only from Google). If there is time, I will gladly take part in this venture. :)

Threat Address of the project on Google Code .

Source: https://habr.com/ru/post/68335/


All Articles