Deployments
aparathyras's profile
Thanassis Parathyras@aparathyras•Apr 29
1.6K
Post cover image

Idempotency: What, Why and How

Avatar of wendelladrielW endell Adriel•From wendelladriel.com•Apr 27•16m read time

A deep dive into idempotency for HTTP APIs, covering the theory and a practical Laravel implementation using the `wendelladriel/laravel-idempotency` package. Explains idempotency keys, request fingerprinting, cached response replay, atomic locks for concurrent requests, and key scoping (user/IP/global). Shows how to apply idempotency via route middleware or PHP attributes, customize per-endpoint settings, design idempotent controllers with proper domain invariants, handle failure status codes (400/409/422), use Artisan commands for observability, and write feature tests for retry contracts. Also covers common mistakes like reusing keys across operations or neglecting shared cache infrastructure.

Sort:

aparathyras's user avatar
Thanassis Parathyras
@aparathyras
Joined Jun 14. 2024
1.6K

Engineering lead combining product experience

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard