Library / Blogs
Twilio Blog
The Twilio blog: an index of its posts, to pick the ones on the topic you are studying.
By Twilio engineers · Twilio · Added 2026-10-12
All content belongs to Twilio engineers / Twilio. We only link to it and give credit. Report a problem
Learn this article
About 37 min left. Your work is saved as you go.
What you are about to study
Twilio wrote this to explain how they thought about a problem. You should know the basics: caching, queues and replication.
Ideas you will meet
- Distributed Systems
- Consensus, time, failure and the fundamentals of scale-out.
What we already know about this
Our own lessons on these ideas. Read them here before you start, so it makes sense.
Core Concepts: How Things Actually Work · 7 minHTTP/1.1, HTTP/2 and HTTP/3What changed between HTTP versions and why it makes pages faster.Read here
HTTP/1.1
- One request at a time per connection (responses come back in order).
- To fetch many resources, browsers open about six connections per host.
- Each request repeats large text headers.
- A slow response blocks those behind it: head-of-line blocking.
- Keep-alive lets a connection be reused, saving handshakes.
HTTP/2
- Multiplexing: many requests and responses share one connection at the same time, interleaved as separate streams.
- Header compression removes the repeated cost.
- Binary framing is more efficient to parse than text.
- Server push existed but is rarely used and is being phased out.
- Still runs over TCP, so if one packet is lost, TCP holds back all streams until it is resent (head-of-line blocking at the transport layer).
Before: HTTP/1.1: many connections
100%After: HTTP/2: one shared connection
100%What changed
- One connection carries many requests at once
- Headers are compressed
- Old tricks like domain sharding stop helping
HTTP/3
- Runs over QUIC, built on UDP, with encryption (TLS 1.3) included.
- Independent streams: a lost packet only delays its own stream.
- Faster connection setup: fewer round trips, and resuming a previous connection can send data immediately.
- Connection migration: a phone moving from Wi-Fi to mobile data can keep the connection, because it is identified by an ID, not an IP address.
100%Figure SDA-CORE-04-1 · HTTP/3 · © forcsguy.com
100%Figure SDA-CORE-04-2 · What one lost packet does in each version · © forcsguy.com
What this means for you
- Use HTTPS everywhere. Browsers only use HTTP/2 and 3 over TLS.
- Serve through a CDN or server that supports HTTP/2 and 3; clients negotiate automatically and fall back if needed.
- Do not over-optimise for HTTP/1.1 any more. Keep requests cacheable and compressed.
More on this site
Go deeper on this
A path through videos, articles, other case studies and code on the same ideas as Twilio Blog.
Warm upGet the vocabulary first.
Books · Free from the author
Concurrent and Distributed Systems (Cambridge lecture notes)
Eight lectures on time, broadcast, replication, consensus and transactions, with notes, slides and video. Free from the author under CC BY-SA.
University of CambridgeIntermediate
Books · Free from the author
Computer Networks: A Systems Approach
How networks are built and why: protocols, routing, congestion control and the internet's architecture. The authors publish it free online under CC BY 4.0.
Systems ApproachIntermediate
WatchHow others solve the same problem, on video.
Videos belong to their creators and play from YouTube. More on YouTube (opens in a new tab)
ReadEngineers explain it in their own words.
Blogs · Free from the author · Read here
Scalable Web Architecture and Distributed Systems
A full chapter on the building blocks of large websites: availability, performance, reliability, scalability, caches, proxies, indexes, load balancers and queues. Free to read here under CC BY 3.0.
The Architecture of Open Source ApplicationsBeginner40 min
Papers · Read here
Facebook’s photo storage
This paper describes Haystack, an object storage system optimized for Facebook’s Photos application. Facebook currently stores over 260 billion images, which translates to over 20 petabytes of data.
USENIXIntermediate
See it in another companyThe same ideas, a different system.
Case Studies · Read here
Aroma: Using ML for Code Recommendation at Facebook
Thousands of engineers write the code to create our apps, which serve billions of people worldwide. This is no trivial task—our services have grown so diverse and complex that the codebase contains…
FacebookIntermediate
Case Studies · Read here
Brooklin: Distributed Service for Near Real-Time Data Streaming at LinkedIn
Brooklin—a distributed service for streaming data in near real-time and at scale—has been running in production at LinkedIn since 2016, powering thousands of data streams and over 2 trillion messages per day. Today, w...
LinkedInIntermediate
Read the codeSee how it looks when it is real.
GitHub
Engineering Blogs
A huge directory of company engineering blogs to learn from real production systems.
kilimchoiIntermediate
GitHub
Awesome Scalability
Curated reading list of articles on the architecture of scalable, reliable systems.
binhnguyennusIntermediate
Keep learning
Loading community…