The Real Fullstack

The Broken Readiness Probe

The payment provider had a partial outage. Why did order history and the cart also return 503?

مهندس أول8 دقيقةمختبر تصحيح الأخطاءمحاكي التدفّق
kubernetesspring-bootyamlresilience4j

لم يُترجم هذا التحدي إلى العربية بعد. أنت تقرأ النسخة الإنجليزية.

المهمة:Find the root cause in the probes and make a payment outage affect only payment — without sending traffic to pods that genuinely can't serve.السياق · أهداف التعلّم ▾

Brightcart's checkout pods expose /actuator/health as their readiness probe. The health group includes the database, Redis, the payment client and the recommendations client. When the payment provider degraded for seven minutes, every pod reported “not ready” and the ingress had nowhere to send traffic.

المهمة: Find the root cause in the probes and make a payment outage affect only payment — without sending traffic to pods that genuinely can't serve.

أهداف التعلّم

  • Separate readiness (this pod can serve) from dependency health.
  • Avoid correlated readiness failures across all replicas.
  • Degrade features gracefully when a dependency fails.
المحاكاةمحاكاة
IngressCheckout podsPayment providerPostgreSQL
تشغيل المحاكاة
# readiness: can THIS pod serve traffic? (warmed up, own pool OK) — not "is the world healthy"management.endpoint.health.group.readiness.include: readinessState, dbmanagement.endpoint.health.group.liveness.include: livenessState# payments outage → circuit breaker opens, checkout shows "payment temporarily unavailable",# while cart, account and order history keep working

تبسيط

Two symptoms; fixes map to effects deterministically. نموذج تعليمي — الأرقام توضّح سلوكًا وليست قياسات أداء.

المفاهيم

مفيد قبل هذا التحدي

تحديات ذات صلة

المراجع