A quick write up on http3
image credit: https://truesparrow.com/

A quick write up on http3

The world-wide-web (aka internet) has come a long way since its early days and so has the protocol that powers it i.e. http.

From simple text based pages to rich interactive applications the way we use the internet has evolved dramatically. To keep up with these changes http has undergone several upgrades each aimed at solving specific challenges. The latest one is http/3.

Evolution of http

  • http/0.9 (1991): The earliest version designed for simple text based responses. I really have no clue who was using it except a few universities.
  • http/1.0 (1996): Introduced headers and status codes but still created a new connection for every request. Some of you might have used early, very popular chat rooms built on that.
  • http/1.1 (1997): Brought persistent connections chunked transfer encoding and pipelining. Some of you might remember Yahoo! messenger.
  • http/2 (2015): Focused on performance with multiplexing header compression and server push. Most of the early social media like Facebook, Twitter etc.
  • http/3 (2020): Built on QUIC a transport protocol that replaces TCP to solve latency and reliability issues. Early adopters are linkedin, amazon, google to name a few.

Why Did We Need http/3?

There were a few shortcomings in http/2.

  • Head-of-line blocking: A single lost packet could delay all other streams in http/2.
  • Slow handshake times: Establishing a TCP connection required multiple round trips which slowed down initial page loads.
  • Connection migration issues: If a user switched networks (like moving from WiFi to mobile data) the connection would break requiring a full re-establishment.

How http/3 is better...

  • Uses QUIC instead of TCP: QUIC runs over UDP making connections faster and more reliable.
  • Faster handshakes: Only one round trip is needed to establish a secure connection.
  • Better multiplexing: Streams are independent so packet loss on one does not impact others.
  • Seamless connection migration: QUIC allows connections to survive network changes like switching from WiFi to mobile data. It works better in unreliable network conditions.
  • Encryption by default: QUIC encrypts all traffic by default using TLS 1.3.

Here are some resources for further reading:



要查看或添加评论,请登录

Sovit Garg的更多文章

  • Pressing Need for Explainable AI (XAI)

    Pressing Need for Explainable AI (XAI)

    AI is transforming industries, but a critical issue emerges as AI makes decisions impacting our lives. Explainable AI…

    1 条评论
  • The AI Feedback Loop: A Growing Threat to the Integrity of Future AI Models

    The AI Feedback Loop: A Growing Threat to the Integrity of Future AI Models

    The AI feedback loop refers to a scenario where artificial intelligence systems use their own outputs as part of their…

  • GPT in Plain English

    GPT in Plain English

    GPT stands for Generative Pre-trained Transformer. Generative: The term “generative” refers to the model’s ability to…

    1 条评论
  • The Echo Chambers of Our Digital Lives

    The Echo Chambers of Our Digital Lives

    In today’s digital landscape, artificial intelligence significantly shapes our access to information, often amplifying…

    3 条评论
  • The Power of Proactive Communication

    The Power of Proactive Communication

    Being self-disciplined and proactive is like having a secret weapon for collaboration, effective management and peace…

  • Simplest Intro to Programmatic Advertising

    Simplest Intro to Programmatic Advertising

    When my daughter asked me "what do you in office?", I told her that I put ads in her games and YouTube videos, she…

  • How to approach System Design interviews

    How to approach System Design interviews

    In recent past I got the privilege of interviewing and chatting with a few senior engineers and engineering managers on…

  • Covid-19 taught managers to trust people

    Covid-19 taught managers to trust people

    Covid-19 has changed a lot around us, and will continue to change the way we live, collaborate and work, especially in…

    1 条评论
  • What you measure is what you get

    What you measure is what you get

    "..

  • Are you cloud agnostic?

    Are you cloud agnostic?

    Before I start swinging towards one option or the other (being cloud-agnostic or not), let's discuss what it actually…

社区洞察

其他会员也浏览了