انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-033-L07

عرض عملي: فشل متتالٍ ثم الإصلاح

  • الدرس 7 من 8
  • Mid-level
في هذا الدرس 3 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

break checkout with a slow payments, then contain it. Prepares MID-033-LAB1.

تفاصيل المخطط المبدئي

خطوة بخطوة

  1. Put Toxiproxy between orders and payments; run a load test on checkout and on GET /products.
  2. Add 5 s latency to the proxy: checkout hangs and product listing also slows as the pool fills.
  3. Add a 500 ms read timeout on the payments client; checkout fails fast but still hammers payments.
  4. Add a circuit breaker and a bulkhead for payments; repeat: failures are fast, product listing stays healthy.
  5. Planned mistake: configure the breaker to count 400 responses as failures; it opens on validation errors. Fix: record only timeouts and 5xx.
  6. Remove the latency and watch the breaker go half-open, then closed.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.