Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Асинхронный perl при обработке запросов
- To: nginx-ru@xxxxxxxxx
- Subject: Re: Асинхронный perl при обработке запросов
- From: "Andrey N. Oktyabrski" <ano@xxxxxxxxx>
- Date: Tue, 20 Mar 2012 14:56:36 +0400
- Envelope-to: nginx-ru@xxxxxxxxx
- In-reply-to: <CAOrB69P4HAD=72dhNOGctd7qBdL0LJAZ2i0+GKVskvTEHjkKBA@mail.gmail.com>
- References: <CAOrB69P4HAD=72dhNOGctd7qBdL0LJAZ2i0+GKVskvTEHjkKBA@mail.gmail.com>
On 20.03.12 14:48, Andrey Velikoredchanin wrote:
Гугль не помог, поэтому пишу здесь.
Смутно помню что видел где-то упоминание что nginx умеет работать с perl
без блокировок. Задача как раз для такого применения - нужно
перенаправлять запросы со входа на несколько бэкэндов по определенной
логике, зависящей от ответов с бэкэндов. Работы с БД или файловой
системой не нужно. Поэтому, вариант nginx_perl и кажеться таким наиболее
подходящим. Возможно-ли такое сделать средствами встроенного perl? Если
да, скинте, плиз, ссылку на соответствующую доку.
Оно?
-------- Original Message --------
Subject: [ANNOUNCE] nginx-perl-1.1.17.1
Date: Thu, 15 Mar 2012 21:55:26 +0200
From: Alexandr Gomoliako <zzz@xxxxxxxxxx>
Reply-To: nginx@xxxxxxxxx
To: nginx@xxxxxxxxx
Hello, everyone.
It's been awhile since my last announce, it was 1.1.11.1 roughly two
months ago. And now it's 1.1.17.1.
There were couple of bugfixes and new features. But most of the work
was done on automated testing to make it work properly on things like
cpantesters and travis-ci.
http://matrix.cpantesters.org/?dist=Nginx-Perl%201.1.16.1
So, it is now possible to use Nginx::Perl as a dependency for perl
modules and test against it on cpantesters and travis-ci. Here's an
example of such module and its tests:
http://matrix.cpantesters.org/?dist=Nginx-HTTP
https://github.com/zzzcpan/Nginx-HTTP/tree/master/t
Also wanted to mention one example, just to show how much you can do:
"In nginx-perl every request object $r is created and destroyed with
nginx's own request. This means, that it is possible to reorder
natural request flow in any way you want. It can be very helpful in
case of DDOS, unusual load spikes or anything else you can think of."
http://zzzcpan.github.com/nginx-perl/Nginx.html#REQUEST_QUEUE
https://github.com/zzzcpan/nginx-perl/tree/master/eg/requestqueue
Webpage:
http://zzzcpan.github.com/nginx-perl/
Github:
https://github.com/zzzcpan/nginx-perl
CPAN:
Nginx::Perl
Changes:
https://raw.github.com/zzzcpan/nginx-perl/master/CHANGES.perl
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|