This Postgres Driver Is Perfect for Serverless Apps

Опубликовано: 31 Март 2026
на канале: Neon Postgres
3,650
78

Learn how you can use the Neon Serverless Driver. It provides WebSocket and HTTP transport options because some environments don't support raw TCP (e.g. Cloudflare Workers didn't when we released the driver, and Vercel Edge Functions still don't). More on this here: https://neon.tech/blog/serverless-dri...

In a serverless environment, you may need to reconnect with every web request, so we've done some work on the driver to speed up connections, which means they should be faster to establish than raw TCP connections, despite some additional overheads. We're continuing to work on reducing connection times. More on this here: https://neon.tech/blog/quicker-server...

Check out the repo to learn more: https://github.com/neondatabase/serve...

Instructor:   / thisismahmoud_   |   / mahmoud-codes  

→ Try Neon at https://neon.tech/youtube
→ Neon Discord: https://neon.tech/discord
→ Follow us on Twitter:   / neondatabase  
→ Star us on GitHub https://github.com/neondatabase/neon

00:00 - Intro
00:17 - Project Overview
01:14 - Serverless Driver setup
01:29 - HTTP vs. WebSockets
2:16 - Serverless Driver (HTTP)
4:37 - Serverless (WebScokets)
7:08 - Outro