تحليل أنماط الفشل
في هذه الصفحة 9 موضوعات
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
نظرة عامة
الموضوعات
- نطاقات الفشل (Failure domains)
- رسم خريطة الاعتماديات
- التدهور السلس (graceful degradation)
تعلّم أولًا
4 ساعة تدريب (تقدير)
مخرجات التعلم
- Map dependencies (including hidden ones: DNS, identity, config, shared clusters) and their failure domains.
- Run a failure-mode and effects analysis (FMEA) with likelihood, impact, and detection.
- Design graceful degradation so partial failures cost features, not the whole product.
- Turn findings into failure-injection experiments.
الدروس
المختبر والتمارين
Lab
SRC-009-LAB1 · Order subsystem FMEA
Outcomes: 1–4 · Time: ~2.5 h
- Map dependencies for the order subsystem, including hidden ones, and mark failure domains.
- Run an FMEA with likelihood, impact, and detection ratings; rank the results.
- Design graceful degradation for the top failure modes.
- Run three failure-injection experiments against the platform (hypothesis, blast radius, stop condition) and record results.
Acceptance: at least one previously unknown weakness found and fixed.
Exercises (FMEA review; six exercises)
| ID | Outcome | Task |
|---|---|---|
| SRC-009-EX01 | 1 | Add five hidden dependencies to a checkout dependency map and mark critical versus optional. |
| SRC-009-EX02 | 1 | Two services share one database cluster. Describe the failure domain and a way to reduce blast radius. |
| SRC-009-EX03 | 2 | Complete three FMEA rows (payment slow, certificate expiry, replica lag) with L, I, D and score. |
| SRC-009-EX04 | 3 | Design degradation for "inventory service unavailable" during checkout, including data safety. |
| SRC-009-EX05 | 4 | Write an experiment sheet for "payment provider adds 3 s latency". |
| SRC-009-EX06 | 3 | Review a degradation design that drops order events when Kafka is down; fix it. |
أظهر الحلول
- EX01 For example DNS, identity provider, config service, certificate authority, secrets store, container registry; critical ones need timeouts and fallbacks.
- EX02 Both fail together if the cluster fails; reduce with separate clusters or schemas with resource isolation, connection limits, and independent failover.
- EX03 Payment slow: L3 I5 D2 = 30; certificate expiry: L2 I5 D4 = 40, detect with expiry monitoring; replica lag: L4 I3 D3 = 36. Actions follow from the highest scores. Ratings are examples; justify yours.
- EX04 Options: reserve against cached stock with a flag, accept orders as "pending confirmation" with reconciliation, or show unavailable; never promise stock you cannot reserve without telling the user; keep data consistent via idempotent reconciliation.
- EX05 Hypothesis: checkout p99 stays under budget by timing out and queueing payment retry; injection latency 3 s on the payment stub in staging; metrics: threads, error rate; stop if error rate exceeds 5%; record the result and fixes.
- EX06 Dropping events silently corrupts downstream state; use an outbox so events persist in the database and publish later, with alerts on backlog.
Workplace evidence: a failure-mode review or game day you led.
الاختبار
Outcomes: O1 dependency mapping and failure domains · O2 FMEA · O3 graceful degradation · O4 failure-injection experiments.
اختبار ذاتي لك: لا توجد درجات، ولا يُحفظ أو يُرسل أي شيء. اختر إجابة ثم تحقق منها، ويمكنك المحاولة مرة أخرى كما تشاء.
الجزء العملي
Six FMEA exercises SRC-009-EX01 to EX06 plus the lab with three experiments run. Pass: quiz at least 8/10, at least five exercises correct, and the lab finds and fixes at least one previously unknown weakness.
أخطاء شائعة
Only considering your own services; degradation that silently corrupts data.
التقييم
FMEA review.
دليل من بيئة العمل
A failure-mode review or game day you led.
الصلة بالمسار الوظيفي
Enterprise resilience (SRA-006) and resilience architecture (ARC-031).