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

عرض عملي: توسيع خدمة المخزون إلى ثلاث نسخ

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

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

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

في هذا الدرس

scale out behind Compose DNS and watch a replica die. Prepares MID-036-LAB1.

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

خطوة بخطوة

  1. Start Shop with docker compose up --scale inventory=3; remove fixed host port mappings from inventory.
  2. Call inventory from orders repeatedly and log the replica's hostname; show requests spread across three.
  3. Run a load test; kill one replica mid-run.
  4. Planned mistake: hard-code one replica's IP in orders config. When that replica dies, every call fails. Fix: use the service name.
  5. Show errors limited to requests in flight on the killed replica; explain why (already sent, not yet rerouted) and how retries on idempotent calls plus graceful shutdown reduce it.

التطبيق

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

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

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

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