I'm looking for a way to trigger serverless functi...
# off-topic
s
I'm looking for a way to trigger serverless functions with supabase self-hosted. Basically, a postgres TRIGGER plus HTTP POST should work. Does anyone know how these postgres extensions compare for HTTP ? https://github.com/pramsey/pgsql-http and https://github.com/supabase/pg_net
g
pgsql-http has been out awhile and works fine, but is synchronous. It will hang your trigger until your http responds or resolves. pg_net is Supabase's newer async approach. It is either alpha or beta, not sure without going to look. You can glance thru the issues and see if it is stable enough for your use. It is used by Supabase function hooks.
s
that makes sense! thanks