Originally I wanted to make it a topic link, but then I couldn’t have managed to insert a picture:
and she illustrates everything as well as possible. If you are interested in the picture, you can immediately go to the
site open on the occasion of the release , or look under the comments and some of my thoughts.
Later, as free time appears, I will write a more detailed step-by-step HowTo, what can and should be done with the module at all, how can MVC be represented in the form: M - your services, V - this module and C - Nginx.
On the Nginx mailing lists, the first version of the module, numbered 0.1, was presented last September. And it was rather early alpha than beta. Nevertheless, since then, judging by the letters and messages on the bug tracker, many seriously became interested in the module, began to actively try it even at such an early stage, they took revisions from the svn trunk.
Since then, a lot of work has been done, the release of new versions is constantly postponed. I didn't want to release another raw version. And so, that moment came, immediately after 0.1 I present to the attention of Habravchan 0.5, because it is about 5 times better, and the site with information and documentation:
Nginx CT ++ Module . You can read about CT ++
on the project website .
')
CT ++ architecture:
What is already planned to do in future versions of the module:
- The ability to cache shared templates installed in nginx.conf (when Nginx starts, the bytecode of the specified templates will be loaded into a hash table in shared memory, it is not difficult to guess how this will affect performance);
- Nginx variable support in the templates_root and template directives (the path to the template will be possible to be set dynamically not only through the header, but also in the server configuration);
- Subquery support for getting patterns (bytecode patterns can be taken, for example, from memcached).
While I have everything, everyone have a good day!
ps if anyone is curious to look at visitors from a habr, Yandex.Metrica for the module site is open:
http://metrika.yandex.ru/stat/?id=6966103Update: But what awaits us in the next version of CT ++ 2.7:
habrahabr.ru/blogs/nginx/119582/#comment_3911311if there are changes in the VM or JSON parser APIs, I will try to ensure in a timely manner support for the new version in the module.