Build a video webhook handler that survives duplicates (Express + Postgres) (opens in new tab)
📦 Code: github.com/USER/video-webhook-receiver (replace before publishing) TL;DR We build a production-grade webhook receiver for async video events (asset.ready and friends): verify HMAC-SHA256 on the raw body, dedupe on the event id with a Postgres unique index, persist + ack with 200 fast, then process from a queue. Webhooks are at-least-once, so duplicates are guaranteed; we design for them. Managed video APIs encode asynchronously. You upload, you get status: preparing, and minutes later...
Read the original article