Idempotency
3 items
- Note Idempotency Matters More Now That AI Is Calling Your API AI agents decide at runtime how many times to call your API, which turns every POST into a retry risk. Make operations naturally idempotent where you can, detect and replay where you can't, and enforce it at write time.4 min
- Note Canonical Serialization: Why the Same Object Hashes Differently Serialization isn't canonical, so the same object can hash differently across systems. If a payload hash drives duplicate detection, sort the token tree with an ordinal comparer and decide arrays and nulls on purpose.4 min
- Note Idempotency-Key: Same Key, Same Outcome A POST that timed out leaves the caller with nothing safe to do. An Idempotency-Key header, backed by a key derived into the data and a database that rejects duplicates, makes the retry safe.3 min