Connection via Websockets & HTTP #659
daniel-xyz
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I couldn't find any previous discussion about this topic so I thought I'd just start one. Now that edge environments and the connection via Websockets instead of TCP becomes more common, I'm wondering if this library will/should support other connection methods eventually.
I'm asking because yesterday, Supabase announced their own connection pooler that supports Websockets (with HTTP coming soon): https://supabase.com/blog/supavisor-1-million
Neon also has developed something similar for Websockets & HTTP. They recommend HTTP for one-shot queries and Websockets for basically everything else (transactions etc.). Neon & Supabase will even be compatible, meaning they'll be using the same Websockets protocol.
Are there any thoughts or opinions if other connection methods should be supported out of the box or if something like connection plugins could fit into the scope of this library? Maybe it requires more changes to the core than I imagine right now.
Beta Was this translation helpful? Give feedback.
All reactions