Skip to content

AnandSundar/go-idempotency

Repository files navigation

go-idempotency

HTTP middleware for idempotent request handling in Go. Prevents duplicate processing of requests by caching responses based on idempotency keys—essential for payment, financial, and other critical APIs.

Features

  • 🔒 Prevents duplicate operations using idempotency keys
  • 🚀 Multiple storage backends: in-memory and Redis
  • Concurrent request handling with distributed locking
  • 🎯 Request fingerprinting (method + path + body hash)
  • ⏱️ Configurable TTL for cached responses
  • 🧪 Thoroughly tested with 90%+ coverage
  • 📦 Zero dependencies (except storage drivers)

Installation

go get github.com/AnandSundar/go-idempotency

About

No description, website, or topics provided.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors