Using atomic transactions in Postgres to power an idempotent API | Hacker News Reader