FeatureFuel
1

Queues: push delivery to an HTTP endpoint, signed per Standard Webhooks, with retries and a dead-letter queue

Source: supabase/supabase#54447 · opened by @martijn00
Supabase Queues are pull only. A consumer calls pgmq.read (or pgmq_public.read through the Data API), processes the message and deletes it. The documented way to run a server-side consumer is an Edge Function that a Supabase Cron job invokes every N seconds ("Consume queue messages"), and the automatic embeddings guide builds the same loop out of pg_cron, pgmq.read and net.http_post. Each project that wants "call my endpoint when a message arrives" rebuilds the same parts: • a cron job that polls even when the queue is empty, with a latency floor of the cron interval; • a dispatcher that reads a batch, posts each message with pg_net, and deletes it only after a 2xx, which means reading net._http_response on a later run because pg_net is asynchronous; • retries with backoff, and a dead-letter step after N attempts (read_ct is there, but nothing acts on it); • a signature so the receiver can tell the request came from the database, with the …

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests