The Real Fullstack

The Black Friday Collapse

Everyone blames someone else's layer. Who is right? (All of them — partly.)

架构师20 分钟性能实验室流程模拟器调试实验室
angularspring-bootpostgresqlkuberneteshikaricp

此挑战尚未翻译为简体中文,你正在阅读英文版本。

任务:Investigate the incident from each role's perspective, fix that role's root cause, then bring the whole platform to ≤ 1% errors and ≤ 300 ms latency at no more than 16 pods.背景 · 学习目标 ▾

Brightcart's Black Friday campaign starts at 20:00. Within seconds checkout errors reach 90%. The SPA retries instantly, customers double-click, the API holds database connections during an HTTP call, a stock query lacks an index, and the autoscaler has added 16 pods that make everything worse.

任务: Investigate the incident from each role's perspective, fix that role's root cause, then bring the whole platform to ≤ 1% errors and ≤ 300 ms latency at no more than 16 pods.

学习目标

  • Trace a cascading failure across frontend, backend, database and infrastructure.
  • Fix each layer's root cause rather than its symptom.
  • Verify the system-wide result — local fixes interact.
模拟模拟数据
SPACheckout APIConnection poolsPostgreSQL
运行模拟

运行模拟以查看输出。

简化说明

Steady-state queueing over a three-tier chain; each role's objective is measured on its own tier. 教学模型——数字用于说明行为,并非基准测试。

概念

建议先完成

相关挑战

参考资料