Idempotent database inserts: Getting it right | Hacker News Reader