Enhance Postgres event handling with reliable, exactly-once processing. Upgrade from basic Supabase webhooks to feature-rich Sequin webhook sinks.
orders
table:
orders
table. The trigger then fires a webhook (via pg_net
) to send the data to an HTTP endpoint.
When the trigger fires, Supabase sends the data to the endpoint with the following payload:
orders
table with no filters. Here’s how to do it:
public.users
or public
).30000 ms
for “Request timeout” as this is more than enough time for your function to process the request1
for “Batch size” for now to mimic the behavior of the Supabase webhook.orders_webhook_sink
) and click “Create Webhook Sink”.metadata
field includes additional metadata about the consumer and the table.insert
, update
, delete
) in the action
field not the type
field.update
and delete
operations in the changes
field not the old_record
field.
changes
object only contains the changed columns and their old values, while Supabase’s old_record
field contains the prior state of the entire record before it was updated.record
field contains the prior state of the record before it was deleted and the changes
field is null
, while Supabase’s old_record
contains the the prior state of the record before it was deleted and the record
field is null
.