How HTTP/2 Works, Performance, Pros & Cons and More

preview_player
Показать описание
HTTP/2 or H2 for short is a major revision of the hyper text transfer protocol that improves the performance of the web. It uses a binary protocol and multiplexing.

HTTP/2 (Slides)
(Members get all slides for free. Become a Member to support the channel)

Time codes
0:00 Intro
2:15 HTTP 1.1
5:50 HTTP/2
8/25 HTTP/2 With Push
9:48 HTTP/2 Pros
14:10 HTTP/2 Cons
17:15 Demo

In this video I want to go through how HTTP/2 works, its pros and cons and show the performance difference between HTTP 1.1 and HTTP/2

Http/1

request has to wait for a response

And if you used up your connection response you can send anything else.



So hack !

6 tcp connections

Pros

One connection
Multipex
Push ( have to enable)
Hpack (compress)

Cons
Abuse push
Proxies that dont support it might slow down
Load balancer layer 7 (a layer 7 load balancer that doesnt support h2 will slow down when your web server supports it)

+----------+--------+---------+---------+
| Protocol | Online | Fast 3G | Slow 3G |
+----------+--------+---------+---------+
| HTTP 1.1 | 94 ms | 10 s | 36 s |
+----------+--------+---------+---------+
| HTTP/2 | 171 ms | 2.7 s | 10 s |
+----------+--------+---------+---------+

Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)

Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)

Introduction to NGINX (link redirects to udemy with coupon)

Python on the Backend (link redirects to udemy with coupon)

Become a Member on YouTube

Arabic Software Engineering Channel

🔥 Members Only Content

🏭 Software Architecture Videos

💾 Database Engineering Videos

🛰 Network Engineering Videos

🏰 Load Balancing and Proxies Videos

🐘 Postgres Videos

🧮 Programming Pattern Videos

🛡 Web Security Videos

🦠 HTTP Videos

🐍 Python Videos

🔆 Javascript Videos

Support me on PayPal

Become a Patreon

Stay Awesome,
Hussein
Рекомендации по теме
Комментарии
Автор

I loved the picture grid loading example to nicely visualize the performance and difference in number of connections.

whereismypipey
Автор

I am a Network Engineer but I love the backend Engineering stuff that you show and it makes it easier for me to understand application problems while troubleshooting the network side of it. Thank You and Keep posting !!!

umeshshetty
Автор

This channel is to addictive that even in the period I’m focusing on front end stuff i end up watching these.

balramverma
Автор

HTTP/2: We gotta do it fast.
Michael Scott: That's what she said.

fraollemecha
Автор

thank you Hussein! I want you to understand that this is great content and I love the way you deliver it with such energy and excitement. I frequently download videos from YouTube for offline use and I just downloaded this one because I think it's great content.

dean
Автор

One of the best YouTube channels for programmers...

omriterem
Автор

the more I learn about software, the more I find that every next upgrade boils down to parallelization

danielkrajnik
Автор

Your content is great! Thanks Hussein!

mohamad
Автор

Joined your channel to support you. Excellent work

subhamthemusicalguy
Автор

excellent!! very clear provocation and easy to understand.

이유창-wz
Автор

This was very insightful. Thanks for this video.

natarajboina
Автор

I like this guy. This guy is smart and also have talent to be teacher...

andikakurniawan
Автор

First time on your channel. Subscribed after this first video. I like your style of content delivery. Such a themes become much more entertantaining. Thank You!

amsterdenko
Автор

More reasons to love. L4 LBs. Thx Hussein.

oah
Автор

So many advances for the internet that I was not aware of!

hozay
Автор

Its a huge performance difference - thats what she said

Ranjith_P
Автор

Thanks you! In school people don't teach about this stuff.

longtranbao
Автор

Im in education as IT-Specialist - System Integration right now, third year and almost finished my Project. My Teachers couldnt teach us normal OSI model or SQL, we never had HTML in school. imagine you doin this just in your free time and you are more meaningfull as much Teachers in germanys working schools for myself and some friends. Thanks for that little snack, i just wanna set up an HTTP 2 server now :D! should i go for nginx or more for something like apache?

zitro
Автор

Hei. Great info. Thnx. Can you also make a comparison between HTTP2 server push and Websockets based push messages? I understand that they dont serve the same purposes but a short video on it explaining when to use what would be great.

amrudeshs
Автор

michael scott..!, that's what she said.. haha :p :p
Nice explanation..!

sreevishal