Node.js Production Engineering 21 — Reliability và Overload Control
Giữ service ổn định khi dependency chậm hoặc traffic tăng: deadline, cancellation, concurrency budget, load shedding, retry, circuit breaker và graceful shutdown.
Filter/Tag
9 entries
Giữ service ổn định khi dependency chậm hoặc traffic tăng: deadline, cancellation, concurrency budget, load shedding, retry, circuit breaker và graceful shutdown.
Make Three.js production systems testable and operable: deterministic clocks, browser/visual/perf tests, failure injection, privacy-safe telemetry, accessible canvas twins and incident SLOs.
Thiết kế lỗi và async flow có kiểu: unknown catch, Result, AbortSignal, timeout, retry, Promise concurrency và idempotency thay vì Promise<any>.
Thiết kế ranh giới module, dependency injection, transaction, cache, queue và resilience để codebase Node.js tiếp tục thay đổi an toàn khi sản phẩm và đội ngũ cùng lớn lên.
Senior deep-dive: Error object anatomy, what try/catch cannot catch, custom errors with cause, async patterns, global handlers, retries, and monitoring.
Client-side fetch resilience for seniors: HTTP gotchas, AbortController timeouts, exponential backoff, stale-response races, dedup, and a fetchJSON wrapper.
Gom chín phần thành một vòng thực hành có chế độ tối thiểu và tiêu chuẩn, coi hồi phục là lựa chọn đúng khi ốm, kèm bảng theo dõi 7 ngày.
Đổi khung không phải ép mình lạc quan: tách sự thật khỏi diễn giải, kiểm tra bằng chứng, chọn cách hiểu cân bằng và giữ ranh giới cần thiết.
Tách sự kiện khỏi bản sắc, nhận trách nhiệm, sửa hậu quả và thiết kế thử nghiệm tiếp theo — không cần biến mọi thất bại thành chiến thắng.