عرض عملي: تتبع خصم مزدوج إلى سببه الجذري
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
trace a customer's double charge through telemetry and data to a systemic cause; prepares SRC-014-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Start from the complaint: two charges for order 123; pull audit rows and provider references.
- Follow the correlation ID through logs and traces to two payment calls.
- Find the cause: the first call timed out client-side but succeeded at the provider, and the retry used a new idempotency key.
- Planned mistake: blame the customer double-clicking. Fix: test the hypothesis from timestamps and traces before concluding.
- Fix by deriving the key from the order and attempt and persisting it before the call.
- Add a reconciliation rule to detect this class and a regression test; refund through the audited path.
اختبر فهمك
What was the root cause?
أظهر الإجابة
A retry with a new idempotency key after a timeout that actually succeeded.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.