The tool call that charges twice — System design

An AI assistant buys things through a tool server, and customers report being charged twice. Find out why it happens and stop it.

Learn the idea first

Idempotency keys: try the retry race yourself

All system design challenges