Welcome! Log In Create A New Profile

Advanced

Re: Асинхронный perl при обработке запросов

Andrey N. Oktyabrski
March 20, 2012 06:58AM
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@zzz.org.ua>
Reply-To: nginx@nginx.org
To: nginx@nginx.org

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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Асинхронный perl при обработке запросов

Andrey Velikoredchanin March 20, 2012 06:50AM

Re: Асинхронный perl при обработке запросов

Andrey N. Oktyabrski March 20, 2012 06:58AM

Re: Асинхронный perl при обработке запросов

Andrey Velikoredchanin March 20, 2012 07:02AM

Re: Асинхронный perl при обработке запросов

Alexandr Gomoliako March 20, 2012 09:36AM

Re: Асинхронный perl при обработке запросов

Alexandr Gomoliako March 20, 2012 02:54PM

Re: Асинхронный perl при обработке запросов

Andrey Velikoredchanin March 20, 2012 03:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 137
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready