NeonN
Neon2mo ago
11 replies
primary-violet

Why is https and WebSockets better than TCP? (@neondatabase/serverless)

https://github.com/neondatabase/serverless?tab=readme-ov-file#neondatabaseserverless

It says that @neondatabase/serverless is "Ideal for serverless/edge deployment, using https and WebSockets in place of TCP". I just wanted to understand why. I couldn't find too much info about it in Google. If TCP is a lower level protocol, shouldn't it be more efficient? How can using https and WebSockets be any better in the context of serverless/edge deployments?
GitHub
Connect to Neon PostgreSQL from serverless/worker/edge functions - neondatabase/serverless
GitHub - neondatabase/serverless: Connect to Neon PostgreSQL from s...
Was this page helpful?