Welcome! Log In Create A New Profile

Advanced

Re: Does Nginx have separate queuing mechanism for requests?

Maxim Dounin
October 03, 2013 11:04AM
Hello!

On Thu, Oct 03, 2013 at 10:26:33AM -0400, amehzenin wrote:

> Maxim Dounin Wrote:
> -------------------------------------------------------
> >
> > There is no queue in nginx, but there is queue in a listen socket
> > of your backend app. It's called "listen queue" or "backlog" and
> > likely it's what preserves a request order for you.

[...]

> You meen application server has listen socket:
>
> #include <sys/types.h>
> #include <sys/socket.h>
>
> int listen(int sockfd, int backlog);
>
> (http://linux.die.net/man/2/listen)
>
> And backlog defines the length of this queue. Nginx pushes requests to
> app-server as they come and app-server take this requests from his own queue
> when he is ready to serve next request. Am I right?

Yes.

--
Maxim Dounin
http://nginx.org/en/donation.html

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

Does Nginx have separate queuing mechanism for requests?

amehzenin October 02, 2013 10:04AM

Re: Does Nginx have separate queuing mechanism for requests?

Maxim Dounin October 02, 2013 11:42AM

Re: Does Nginx have separate queuing mechanism for requests?

amehzenin October 03, 2013 10:26AM

Re: Does Nginx have separate queuing mechanism for requests?

Maxim Dounin October 03, 2013 11:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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