HomeChallengesRepsProblemsLeaderboardTake a challenge

When Redis is gone

Redis blips for twenty seconds and every pod of both services restarts, purchases fail because a popup could not be sent, and a full Redis evicted the encryption keys. Decide in advance how each feature fails.

Advanced25 min on the clock6 graded checks · 100 pointsWorks on One ServerPro

See alsoA Deployment Kubernetes can look afterThe Kubernetes side of the same decision: which probe calls which endpoint, and what a failure of each one makes Kubernetes do.

Graded by reading your code against the checklist below.

What you build

  • Report Redis down as Degraded in Orders
  • Report it as Unhealthy in Identity
  • Keep dependencies off the liveness endpoint
  • Check Redis only on the readiness endpoint
  • Make the receipt push best effort
  • Evict only keys that have an expiry

Done means

Per-service failure status, dependencies only on readiness, a best-effort push, and an eviction policy that cannot remove the key ring.

How it is graded

Published in full, before you start — every point is one of these and there is nothing else.

  1. Orders reports Redis down as Degraded+20Deciding in advance how to fail
  2. Identity reports it as Unhealthy+15Deciding in advance how to fail
  3. Liveness checks no dependencies+20Running it in production
  4. Readiness runs the tagged checks+10Running it in production
  5. A failed push does not fail the order+25Deciding in advance how to fail
  6. Only keys with an expiry are evicted+10Deciding in advance how to fail

What it teaches

The rest of Works on One Server