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?
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

Neon
Node.js