Skip to main content

Practice ยท 2 of 2

Retry-safe POST

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.

Difficulty: advanced

Back to lesson: Practice: Mini API Project