Welcome! Log In Create A New Profile

Advanced

Re: HTTP2 Multiplexing

Valentin V. Bartenev
May 04, 2016 06:20AM
On Wednesday 04 May 2016 11:25:11 Muhui Jiang wrote:
> Hi
>
> Different from HTTP1.1 pipeline, HTTP2 allows multiple request and response
> messages to be in flight at the same time. I was wondering what the
> strategy Nginx adopt to implement this main feature.

Nginx allows multiple request and responses in multiple connections using
HTTP/1.x as well. HTTP/2 changes nothing here (except it uses only one
connection, but it's not important from the basic architecture point of
view).


>
> Is every single stream correspond to a thread. If not, how can Nginx
> provide multiple parallel requests handling. If you can locate the
> correspond code for me, that would be great
>

No, nginx uses asynchronous non-blocking event-driven architecture
instead of mapping requests into separate threads.

It have used multiplexing of requests handling in single process many
years before HTTP/2 was invented.

A more detailed explanation can be found here:
https://www.nginx.com/blog/inside-nginx-how-we-designed-for-performance-scale/

wbr, Valentin V. Bartenev

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

HTTP2 Multiplexing

Muhui Jiang May 03, 2016 11:26PM

Re: HTTP2 Multiplexing

Valentin V. Bartenev May 04, 2016 06:20AM

Re: HTTP2 Multiplexing

Muhui Jiang May 04, 2016 06:52AM

Re: HTTP2 Multiplexing

Valentin V. Bartenev May 04, 2016 07:20AM

Re: HTTP2 Multiplexing

Muhui Jiang May 05, 2016 02:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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