PublishedProject_id: idempo
idempo
API idempotency middleware and adapters for Node.js services.
TypeScriptNode.jsRedis
01.
Overview
A backend library for safer retries and duplicate request handling.
idempo packages common idempotency patterns into reusable middleware and service adapters.
02.
Problem Solved
Distributed systems frequently receive duplicate requests, and teams often rebuild the same protections from scratch.
03.
Install
install.sh
$ npm install idempo04.
Usage Example
Quick start
import { createIdempo } from "idempo";
const idempo = createIdempo({ store: redisStore });05.
Key Design Decisions
Key Design Decisions
Request Fingerprinting
Duplicate request detection is shaped around consistent request identity.
Deduplication
Redis Adapter
Shared persistence keeps replay coordination simple for service deployments.
Storage Layer
Replay Protection
Retry paths can return safe results without re-running side effects.
Reliability
06.