Idempotency keys in practice
Retries are inevitable. A small table keyed by request ID and a TTL covers most payment-style APIs without distributed locks.
Short notes on software, distributed systems and the occasional hike.
Retries are inevitable. A small table keyed by request ID and a TTL covers most payment-style APIs without distributed locks.
Running go build -gcflags=-m on a hot path often reveals one interface conversion responsible for most allocations.
Cool air, clear skies, and the ski hut trail was almost empty by 8 a.m.