Operations 16 min read

Phoenix: Client‑Side CDN Disaster Recovery Solution at Meituan

Phoenix is Meituan’s client‑side CDN disaster‑recovery system that uses a Webpack‑based SDK, dynamic calculation service, and monitoring platform to automatically detect load failures, switch domains, isolate problems, and continuously hot‑standby resources, boosting resource success rates from 99.7 % to 99.9 % across hundreds of projects.

Meituan Technology Team
Meituan Technology Team
Meituan Technology Team
Phoenix: Client‑Side CDN Disaster Recovery Solution at Meituan

CDN has become critical infrastructure; Meituan's SRE team handles CDN disaster recovery, but client‑side solutions were lacking.

This article presents the Phoenix solution, a client‑side CDN availability detection and automatic failover mechanism developed for Meituan Waimai.

Objectives include automatic domain switching, domain isolation, fine‑grained monitoring, and continuous hot‑standby.

Overall design consists of five components: client‑side SDK, dynamic calculation service, monitoring platform, CDN service, and configuration platform.

The SDK is implemented as a Webpack plugin (PhoenixLoader) that replaces tag loading with XHR requests, enabling detection of load failures for JS, CSS and images. It also supports asynchronous resources and native platforms (Android/iOS) via adapters.

The dynamic calculation service periodically aggregates load results, evaluates domain availability per city/project, and reorders domain lists to maximize success rates.

Monitoring collects per‑project, per‑app, per‑resource metrics, providing minute‑level alerts and detailed diagnostics.

Production results show increased resource success rates (e.g., from 99.7 % to 99.9 %) and reduced manual CDN switch operations, saving millions of requests and hundreds of thousands of users.

The solution now serves over 200 projects across Meituan’s ecosystem and continues to evolve with open‑source plans and recruitment.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

performanceWebSRECDNdisaster recoveryclient-sideMeituan
Meituan Technology Team
Written by

Meituan Technology Team

Over 10,000 engineers powering China’s leading lifestyle services e‑commerce platform. Supporting hundreds of millions of consumers, millions of merchants across 2,000+ industries. This is the public channel for the tech teams behind Meituan, Dianping, Meituan Waimai, Meituan Select, and related services.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.