⚡ Performance Engineering
"Premature optimization is the root of all evil" — câu này đúng. Nhưng "zero performance awareness until production burns" còn tệ hơn. Performance Engineering là discipline giữa hai thái cực đó: đo trước khi optimize, plan capacity trước khi launch, và biết chính xác hệ thống của bạn chịu được bao nhiêu tải.
Staff engineer cần trả lời được: "Hệ thống này sẽ survive Black Friday không?" — không phải bằng cảm tính, mà bằng data từ load test và capacity model.
Mục lục
| Bài | Nội dung | Mức độ |
|---|---|---|
| Load Testing & Methodology | Load/stress/soak/spike tests, k6/Locust/Gatling, p99 vs mean, correlating results với system metrics. | Advanced |
| Capacity Planning & Traffic Modeling | Traffic forecasting, Little's Law, vertical vs horizontal scaling, SLO-to-capacity headroom, pre-launch checklist. | Advanced |
Learning path
- Load Testing — Biết đo đúng (p99, không phải mean) và thiết kế test realistic trước.
- Capacity Planning — Translate load test results thành sizing decisions và headroom calculation.