idempotency-handling

Community

Make API operations idempotent with keys.

Authorsecondsky
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Ensures operations produce identical results across retries, preventing duplicates and race conditions in distributed systems.

Core Features & Use Cases

  • Idempotency key pattern with Redis caching and DB constraints
  • Safe retries for critical mutations (payments, webhook handling, etc.)
  • Deterministic responses for repeated requests
  • Clear TTL guidance and cleanup strategies

Quick Start

Implement middleware that reads an idempotency-key from request headers, checks a cache/store for a prior response, and returns the cached response if found, or stores the new response for future retries.

Dependency Matrix

Required Modules

redis

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: idempotency-handling
Download link: https://github.com/secondsky/claude-skills/archive/main.zip#idempotency-handling

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository