Welcome! Log In Create A New Profile

Advanced

Re: Providing access to nginx state machine

Marko Kevac
May 11, 2010 04:20PM
On Wed, May 12, 2010 at 12:00 AM, Piotr Sikora <piotr.sikora@frickle.com> wrote:
> But is this request associated with the incoming request? That is, do you
> want to communicate with your network service for each request and finish it
> before response is sent back to the client?

Yes, that is right. What I am sending to client depends on what I
receive from that network service.

> There is no state machine per se. You need to add/remove your events to/from
> nginx's event model (which is OS-independent abstraction layer on top of
> epoll/kqueue/etc).

Well, yes, but, as far as I understand, there must be some help from
nginx, because request processing must be stopped and continued, after
data from my service is ready.

> Actually, it isn't. It is communicating with 3rd-party library (libdrizzle).
> You won't see any network communication in there, only library calls and
> events triggered on library's socket.

Isn't that the same? Just one more intermediate object appeared - library.
There is no big difference if send() is called by me or by some library.

> Like I said previously, you most likely want to use either subrequests or
> "independent reqequests".

Can you illustrate this, please? I don't really get how sub-request
will help here.

--
A. Because it breaks the logical sequence of discussion
Q. Why is top posting bad?

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Providing access to nginx state machine

Marko Kevac 3162 May 06, 2010 10:56AM

Re: Providing access to nginx state machine

agentzh 1202 May 06, 2010 09:48PM

Re: Providing access to nginx state machine

Marko Kevac 1097 May 11, 2010 07:40AM

Re: Providing access to nginx state machine

Marko Kevac 1077 May 11, 2010 10:44AM

Re: Providing access to nginx state machine

Piotr Sikora 1045 May 11, 2010 12:10PM

Re: Providing access to nginx state machine

Marko Kevac 990 May 11, 2010 12:48PM

Re: Providing access to nginx state machine

Piotr Sikora 1134 May 11, 2010 04:02PM

Re: Providing access to nginx state machine

Marko Kevac 964 May 11, 2010 04:20PM

Re: Providing access to nginx state machine

Piotr Sikora 1348 May 12, 2010 11:30AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 78
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