Skip to content

idempotency capability

idempotency adds idempotency key middleware to your Go service, making retried requests safe by detecting and short-circuiting duplicates.

  • Idempotency middleware
  • Key storage
  • Duplicate detection

Use idempotency on any endpoint where duplicate execution causes problems — payments, order creation, webhook processing. When paired with retry, idempotency keys ensure retries don’t produce duplicate side effects.

Requires: http-api

Suggests: redis

Terminal window
verikt new my-service --language go --cap http-api,idempotency
# or add to an existing service:
verikt add idempotency

retry

Retry with backoff — always pair with idempotency for mutations.

redis

Redis as fast storage for idempotency keys.

http-api

The Chi router foundation required by this capability.