عرض عملي: فشل متتالٍ ثم الإصلاح
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
break checkout with a slow payments, then contain it. Prepares MID-033-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Put Toxiproxy between
ordersandpayments; run a load test on checkout and onGET /products. - Add 5 s latency to the proxy: checkout hangs and product listing also slows as the pool fills.
- Add a 500 ms read timeout on the payments client; checkout fails fast but still hammers
payments. - Add a circuit breaker and a bulkhead for
payments; repeat: failures are fast, product listing stays healthy. - Planned mistake: configure the breaker to count
400responses as failures; it opens on validation errors. Fix: record only timeouts and 5xx. - Remove the latency and watch the breaker go half-open, then closed.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.