Pinterest is now on HTTP/3

Pinterest Engineering
5 min readintermediate
--
View Original

Overview

Pinterest has successfully adopted HTTP/3 across its major production domains, enhancing network performance and user experience. This transition, which began in 2021, aims to leverage the advantages of HTTP/3, such as reduced latency and improved reliability, particularly for media-heavy applications.

What You'll Learn

1

How to implement HTTP/3 in a multi-CDN environment

2

Why HTTP/3 improves user experience on mobile applications

3

When to use A/B testing for network protocol upgrades

Prerequisites & Requirements

  • Understanding of HTTP protocols and CDN architectures
  • Experience with network performance metrics(optional)

Key Questions Answered

What are the benefits of adopting HTTP/3 for Pinterest?
Adopting HTTP/3 allows Pinterest to eliminate TCP head-of-line blocking, improve connection migration across IP addresses, and reduce connection time with 0-RTT. These enhancements lead to faster and more reliable user experiences, especially for media-heavy applications.
How did Pinterest approach the implementation of HTTP/3?
Pinterest adopted a cautious strategy by first upgrading client network stacks and conducting extensive A/B testing before enabling HTTP/3 on production. This approach ensured safety and allowed for metrics collection to evaluate performance improvements.
What challenges did Pinterest face while enabling HTTP/3?
Pinterest encountered compatibility issues with various browsers, differences in HTTP/3 support among CDN vendors, and the need to manage a multi-CDN environment during the transition. These challenges required careful planning and testing to ensure reliability.
What metrics improved after implementing HTTP/3?
After implementing HTTP/3, Pinterest observed significant improvements in core network metrics, including reduced round-trip latency and enhanced reliability. These metrics are critical for optimizing user engagement, especially for video and image content.

Key Statistics & Figures

Percentage of iOS image traffic over HTTP/3
70%
This statistic highlights the significant adoption of HTTP/3 within Pinterest's mobile application for image delivery.
Improvement in video metrics with HTTP/3
Significant improvement
The adoption of HTTP/3 has led to enhanced video performance metrics, benefiting user engagement.

Technologies & Tools

Protocol
HTTP/3
Used to enhance network performance and reduce latency for Pinterest's applications.
Networking Stack
Cronet
Utilized in iOS for serving images and API traffic over HTTP/3.
Media Player
Exoplayer
Used in Android for video playback with HTTP/3 support.

Key Actionable Insights

1
Implementing HTTP/3 can drastically improve media delivery performance on your platform.
By reducing latency and improving connection reliability, you can enhance user engagement, especially for applications that rely heavily on images and videos.
2
Conduct A/B testing when rolling out new network protocols to ensure compatibility and performance.
This approach allows you to validate the impact of changes on user experience and system performance before full deployment.
3
Monitor cross-CDN performance during HTTP/3 rollout to manage reliability effectively.
As different CDNs may have varying levels of HTTP/3 support, keeping track of performance metrics will help you address potential issues promptly.

Common Pitfalls

1
Overlooking browser compatibility when enabling HTTP/3 can lead to broken functionalities.
As some browsers may have varying levels of support for HTTP/3, it is crucial to test across different environments to avoid user experience issues.
2
Failing to manage multi-CDN environments can result in inconsistent performance.
Without careful monitoring and configuration, traffic switching between CDNs during the HTTP/3 rollout can lead to reliability challenges.

Related Concepts

HTTP/2 Vs HTTP/3
Quic Protocol
CDN Architectures
Network Performance Optimization