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

عرض عملي: حقن زمن استجابة وفقدان حزم باستخدام Toxiproxy

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

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

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

في هذا الدرس

reproduce failures on purpose. Prepares MID-023-LAB1.

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

خطوة بخطوة

  1. Run Toxiproxy with Docker Compose; create a proxy in front of the payment provider stub.
  2. Point Shop's payment URL at the proxy and place an order normally.
  3. Add a latency toxic of 3 s with a 2 s client timeout; watch the order status.
  4. Add a toxic that drops the response (for example limit_data or reset_peer on the downstream); check whether Payments recorded the charge.
  5. Planned mistake: retry blindly on timeout and show a double charge in the stub's records. Fix with an idempotency key (preview of MID-029).
  6. Write the list of inconsistencies observed.

التطبيق

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

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

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

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