Welcome! Log In Create A New Profile

Advanced

Is it possible to register events with nginx's event loop?

Posted by melwin_jose 
Is it possible to register events with nginx's event loop?
May 12, 2015 12:50AM
I want a web server based on nginx, which receives a HTTP message, parses it and checks in Redis for a given key's value and send back a response, all this has to be done asynchronously / non-blocking read/write from Redis. Is it possible ? I went through articles which suggested to register events to nginx's loop.
Re: Is it possible to register events with nginx's event loop?
May 12, 2015 02:51AM
See here https://github.com/chaoslawful/lua-nginx-module
most if not all already done.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Is it possible to register events with nginx's event loop?
May 12, 2015 11:19AM
thanks, i have gone through that repo before. Its very hard to understand what is written there, do you have any tutorials on them ?
Re: Is it possible to register events with nginx's event loop?
May 12, 2015 11:28AM
You can read the forum here https://groups.google.com/forum/#!forum/openresty-en
or download all the stuff of my site in sig. and look through the Lua examples, especially the /conf/eblb folder.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Is it possible to register events with nginx's event loop?
May 21, 2015 06:58AM
"download all the stuff of my site in sig", what is sig ? and where is the /conf/eblb folder ?
Re: Is it possible to register events with nginx's event loop?
May 21, 2015 07:23AM
Here http://nginx-win.ecsds.eu/

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Is it possible to register events with nginx's event loop?
May 27, 2015 07:35AM
I'm also interested in this subject, but my problem is little bit different. What I want is to post event from other thread to nginx main thread, something like ngx_add_timer but without time option, to safelty add event to nginx main event loop.
Re: Is it possible to register events with nginx's event loop?
August 04, 2015 06:16AM
melwin_jose Wrote:
-------------------------------------------------------
> I want a web server based on nginx, which receives a HTTP message,
> parses it and checks in Redis for a given key's value and send back a
> response, all this has to be done asynchronously / non-blocking
> read/write from Redis. Is it possible [url=http://www.comparateur-mutuelle-assurance-sante.com]entreprise[/url]? I went through articles which
> suggested to register events to nginx's loop.

Hy, Il's possible if you have a compatible aplication for your system. Thanks.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready