all threads
QuestionAPI / BackendAPI / Backend. server-side & data resolved

Best pattern for idempotent Stripe webhooks in Supabase Edge Functions?

@DevFASRank New· 6/21/2026

I gate side-effects on checkout.session.completed but worry about duplicate delivery. How do you dedupe — a processed_events table, or rely on unique constraints?

Built with
SupabaseSupabase · undefinedVercelVercel · undefinedStripeStripe · undefined
1 answers

1 answers

  • update: went with the processed_events table — added a unique index on event_id and insert-on-conflict-do-nothing at the top. zero dupes since. thanks both!

    @DevFASRank New· 6/21/2026
to answer.