عرض عملي: حقن زمن استجابة وفقدان حزم باستخدام Toxiproxy
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
reproduce failures on purpose. Prepares MID-023-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Run Toxiproxy with Docker Compose; create a proxy in front of the payment provider stub.
- Point Shop's payment URL at the proxy and place an order normally.
- Add a
latencytoxic of 3 s with a 2 s client timeout; watch the order status. - Add a toxic that drops the response (for example
limit_dataorreset_peeron the downstream); check whether Payments recorded the charge. - 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).
- Write the list of inconsistencies observed.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.