How prepared are you to build fast and efficient web applications? This eloquent book provides what every web developer should know about the network, from fundamental limitations that affect performance to major innovations for building even more powerful browser applications--including HTTP 2.0 and XHR improvements, Server-Sent Events (SSE), WebSocket, and WebRTC. Author Ilya Grigorik, a web performance engineer at Google, demonstrates performance optimization best practices for TCP, UDP, and TLS protocols, and explains unique wireless and mobile network optimization requirements. Youll then dive into performance characteristics of technologies such as HTTP 2.0, client-side network scripting with XHR, real-time streaming with SSE and WebSocket, and P2P communication with WebRTC.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A practical, protocol-by-protocol guide to why web applications feel slow and how to make them faster, written for developers who want to reason about latency, bandwidth, and browser networking instead of guessing. Read it if you build or operate web-facing software and want a durable mental model of the network beneath your code.
【Book Arc】
- **Opening (~0%–10%)**: Frames the case for performance as a business feature, then grounds it in the two fundamental constraints—latency and bandwidth—and how they shape every network interaction.
- **Early (~10%–32%)**: Builds the transport foundation: TCP handshakes, flow and congestion control, head-of-line blocking, UDP's minimal contract, and the trade-offs of choosing one over the other.
- **Middle (~32%–48%)**: Adds the security and wireless layers—TLS handshake costs and optimization, plus the unique constraints of radio: signal-to-noise ratio, interference, and path loss.
- **Late (~48%–75%)**: Moves up the stack into HTTP's evolution and web performance analysis, including resource waterfalls, the performance pillars, and why more bandwidth often doesn't help.
- **Ending (~75%–100%)**: Covers modern browser APIs for real-time and peer-to-peer communication—XHR improvements, SSE, WebSocket, and WebRTC—and how to apply protocol best practices in application design.
【Key Takeaways】
- **Speed is a feature, not a polish item** (Opening): Faster sites drive engagement, retention, and conversions—so performance work is product work, not an afterthought.
- **Latency, not bandwidth, is usually the bottleneck** (Early): Round-trip time and protocol handshakes dominate perceived speed; adding bandwidth rarely fixes a latency-bound experience.
- **TCP's reliability guarantees have a cost** (Early): In-order delivery and retransmission create head-of-line blocking, which is why some real-time applications deliberately choose UDP.
- **UDP is a blank slate, not a free lunch** (Early): It omits connection state, congestion control, and flow control, so applications must reimplement them carefully or risk network collapse.
- **TLS is no longer computationally expensive** (Middle): Modern commodity hardware handles encryption cheaply; the real costs lie in handshake round-trips, certificate size, and deployment configuration.
- **Wireless adds physics to the problem** (Middle): Signal power, interference, and path loss mean mobile networks behave differently and demand their own optimization strategies.
- **HTTP's history explains its performance limits** (Late): From HTTP 0.9 to 2.0, each version responds to transport inefficiencies—understanding the progression clarifies why modern optimizations work.
- **The browser offers more than request-response** (Ending): XHR, SSE, WebSocket, and WebRTC each fit different communication patterns; choosing the right one is itself a performance decision.
【Reading Tips】
- Deep-read the TCP and UDP chapters if you've ever been confused by "why is my API slow"—they explain the mechanics behind most latency complaints.
- Skim the TLS chapter's cryptographic details but study the operational guidance on certificates, handshakes, and server configuration.
- Treat the HTTP history and web performance chapters as the bridge from theory to practice; the resource waterfall and performance pillars are the most actionable mental tools.
- For the real-time APIs (SSE, WebSocket, WebRTC), focus on when to use each rather than implementation minutiae—the decision framework matters more than the syntax.
- Keep the wireless chapter nearby when optimizing for mobile; its constraints are easy to forget when developing on a fast wired connection.
【Coverage Limits】
This guide is based on stratified excerpts covering roughly the first half of the book in detail, with lighter coverage of the later HTTP and real-time API chapters; specific examples, figures, and chapter-level nuance beyond the excerpts are not fully represented.
2013 was just 3.1 Mbps! South Korea led the world with a 14.2 Mbps average throughput, and United States came in 9th place with 8.6 Mbps. As a reference poin...
ted transport layer affords is also a liability for the im‐ plementer. Your application will likely have to reimplement some, or many, of these features from...
in the browser’s trusted root and hence should not be sent. • It is not uncommon for many sites to include the root certificate of their CA in the chain, whi...
s important to understand what stands behind the “4G” label. Just as with 3G, there is no one 4G technology. Rather, 4G is a set of requirements (IMT-Advance...
njury, poor networking decisions will also have an outsized negative impact on the battery life of the device. There is no universal solution for these three...
bility to process the requests in parallel can have just as big, if not bigger, impact on the performance of your application. At this point, let’s pause and...
reaks down the HTTP protocol communication into small indi‐ vidual frames, which map to messages within a logical stream. In turn, many streams can be exchan...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
High Performance Browser Networking What every web developer should know about networking and web performance (Ilya Grigorik)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
High Performance Browser Networking What every web developer should know about networking and web performance (Ilya Grigorik)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment