Skip to main content

Practice · 2 of 2

Retry-safe POST

CHALLENGE
Difficulty: advanced+25 XP

Implement IdempotencyStore with execute(key, fn): - the first call with a key runs fn() and records its return value - every later call with the same key replays the recorded value WITHOUT calling fn again - different keys are independent The guarantee under test: fn runs exactly once per key, no matter how many retries arrive.

Back to lesson: Practice: Mini API Project