Why a 4 ms ALTER TABLE can take a site down, and how to avoid it: lock_timeout with retries, cheap versus rewriting changes, NOT NULL in steps and safe indexes.
Build a job queue on Postgres with FOR UPDATE SKIP LOCKED: a one-statement claim, leases for crashed workers, fenced completion, backoff and dead jobs.
How to build a webhook handler that survives duplicate and out-of-order deliveries: signature checks, an event ID table, one transaction and an outbox.
Webhooks
Idempotency
Payments
Have something you'd like built?
Tell us what you're building. We'll reply within two working days with questions, an approach and next steps.