Why Xi’an Health Code Crashed: Static Assets, No CDN, and 125 Gbps Bandwidth
A detailed post examines why the Xi’an health‑code service collapsed, showing that the lack of CDN for static assets and the resulting 125 Gbps bandwidth demand at 33 k QPS overwhelmed a single data‑center link, rather than any server‑side QR‑code generation issue.
After the “Xi’an Health Code” outage, a deeper technical analysis reveals that the failure was not caused by server‑generated QR‑code images but by the way static assets (js, css, img) are delivered.
One contributor, 卢兴民, posted the refresh‑QR‑code API response, showing the data is normal. Another answer confirmed that no low‑level image generation occurs on the server.
The core issue is that all static resources are served from a single entry point without a CDN. The total size of js/css/img files is roughly 500 kB. With a peak request rate of about 33 000 QPS, the required bandwidth is estimated at 125 Gbps (33 000 × 500 bytes × 8 bits), which a single data‑center network card cannot sustain.
As of 5 January 2022, the Xi’an health‑code system had not yet moved static assets to a CDN, raising doubts about its ability to handle future traffic spikes.
Below are screenshots of the API response and the bandwidth calculation.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
