الفشل الجزئي
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
explain why a timeout is not a failure.
الموضوعات المخطط لها
- In one process, a call succeeds or fails. Across a network, parts fail while others work.
- A timeout means "no answer in time". The request may have been lost, executed, or the reply lost.
- Retrying a payment after a timeout risks charging twice.
- The sender cannot tell which case happened without asking again or checking state.
- Defences: idempotency keys, status queries, and reconciliation (MID-029).
تفاصيل المخطط المبدئي
عرض عملي
Shop --charge $50--> Payments (Payments charges the card)
Shop <--response lost-- Shop sees a timeoutاختبر فهمك
After a timeout, did the operation happen?
أظهر الإجابة
Unknown: it may or may not have.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.