AskOpenSource by The Arthi AI Collective

go-idempotency

Anyone building HTTP APIs in Go, including commercial products. It suits APIs that take payments, create orders or run any other operation that must not happen twice. MIT licence, so use, modification and redistribution are allowed.

View ndoubismarck/go-idempotency on GitHub
GitHub stars
—
Forks
—

Project details

Repository
ndoubismarck/go-idempotency
Licence
MIT
Catalog status
Available
Catalog check
2026-12-06
Required costs
Go 1.22+. The in-memory store needs nothing else and costs nothing. For several servers sharing state, you need your own Redis or PostgreSQL instance, which can be self-hosted or managed. Those are optional, and any hosting cost is whatever you already pay for them. No paid APIs, no hardware.

Repository description

Idempotency-Key middleware for Go HTTP APIs. Makes HTTP requests safe to retry: runs the handler once per key and replays the stored response. Works with net/http, Gin and Echo. Memory, Redis and PostgreSQL stores. Zero dependencies in the core.

Explore by topic

More tools in Apps & utilities