supabase / supavisor

A cloud-native, multi-tenant Postgres connection pooler.
https://supabase.github.io/supavisor/
Apache License 2.0
1.7k stars 56 forks source link

feat: implement proxy handler #394

Closed abc3 closed 1 month ago

abc3 commented 1 month ago

The current PR introduces a new handler that will replace session mode. It authenticates incoming connections via auth queries, establishes a TCP connection to the tenant's database, and then simply forwards data between the client and the database, functioning primarily as a proxy

abc3 commented 1 month ago

Should we consider using defdelegate in Supavisor.Handlers.Proxy.Handler?

abc3 commented 1 month ago

Should we consider using defdelegate in Supavisor.Handlers.Proxy.Handler?

@hauleth wdyt?

hauleth commented 1 month ago

About defdelegate? No strong opinion on that matter.

abc3 commented 1 month ago

401