---
title: "Using Hyperdrive with Neon and Cloudflare Workers: FAQ"
description: "Cloudflare Hyperdrive is a globally distributed connection pooler and read-query cache for Workers."
url: "https://swe.quest/articles/using-hyperdrive-with-neon-and-cloudflare-workers-faq-3467430ed9174f03"
canonical: "https://neon.com/blog/hyperdrive-neon-faq"
source: "Neon"
published: "2024-12-26"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["postgres","serverless","cdn-edge","caching","performance"]
---

# Using Hyperdrive with Neon and Cloudflare Workers: FAQ

A post on [Neon](https://swe.quest/sources/neon.md), published 2024-12-26, 5 min read, How-to. Original: [https://neon.com/blog/hyperdrive-neon-faq](https://neon.com/blog/hyperdrive-neon-faq)

## Summary

Cloudflare Hyperdrive is a globally distributed connection pooler and read-query cache for Workers. Because Workers keep warm connections at the nearest edge node, the ~6 round trips of TCP setup, TLS handshake, Postgres auth and query collapse to one. Neon measured roughly 9x faster global SELECT queries with Hyperdrive. Neon's recommendation is to connect Hyperdrive with standard TCP drivers like node-postgres or Postgres.js, and to skip both Neon's PgBouncer pooler and the Neon serverless driver, which uses WebSockets or HTTP and is redundant or incompatible here.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [CDN & edge](https://swe.quest/tags/cdn-edge.md) (Infrastructure)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- Postgres connections ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- Cloudflare Workers basics
- connection pooling

## Keywords

Hyperdrive, Neon, Cloudflare Workers, PgBouncer, node-postgres, Postgres.js

## Related posts

- [Quicker serverless Postgres connections](https://swe.quest/articles/quicker-serverless-postgres-connections-7a37a1071edd4362.md): Neon · 2023-03-28 · Medium · 8 min read · PostgreSQL, Networking, Serverless, Performance engineering, Cryptography
  Neon cut the network round-trips needed to get a first query result from its WebSocket-based serverless Postgres driver from nine to four.
- [Edge-compatible Serverless Driver for Postgres](https://swe.quest/articles/edge-compatible-serverless-driver-for-postgres-9b0d09c6c7a067d0.md): Neon · 2022-12-08 · Medium · 9 min read · PostgreSQL, Serverless, Networking, Cryptography, WebAssembly
  Neon's @neondatabase/serverless driver lets V8-isolate platforms like Cloudflare Workers, which lack TCP, speak the real Postgres wire protocol by tunnelling it over a WebSocket to an open-source Go proxy that relays to TCP.
- [Sub-10ms Postgres queries for Vercel Edge Functions](https://swe.quest/articles/sub-10ms-postgres-queries-for-vercel-edge-functions-6bc9caef6fab65ca.md): Neon · 2023-07-10 · Medium · 3 min read · PostgreSQL, Serverless, CDN & edge, Performance engineering, TypeScript
  Neon's serverless Postgres driver now supports SQL-over-HTTP via fetch, and Neon's proxy adds opt-in experimental connection caching (\`fetchConnectionCache\`).
- [Build and Deploy a Global Serverless Nuxt SSR App with Cloudflare Hyperdrive and Postgres](https://swe.quest/articles/build-and-deploy-a-global-serverless-nuxt-ssr-app-with-cloudflare-hyperdrive-32566cf4580232ef.md): Neon · 2024-04-05 · Medium · 12 min read · Serverless, PostgreSQL, CDN & edge, JavaScript, Caching
  A Nuxt SSR app on Cloudflare Pages can query Neon Postgres through Hyperdrive by routing Drizzle's pg-proxy driver to a separate Hono-based Cloudflare Worker that holds the Hyperdrive binding and runs queries with node-postgres.
- [HTTP vs. WebSockets: Which protocol for your Postgres queries at the Edge](https://swe.quest/articles/http-vs-websockets-which-protocol-for-your-postgres-queries-at-the-edge-25a9317092665f21.md): Neon · 2023-07-11 · Medium · 5 min read · PostgreSQL, Serverless, Performance engineering, CDN & edge, Networking
  Neon's serverless Postgres driver now supports SQL-over-HTTP alongside WebSockets, and benchmarks from Vercel Edge and Serverless functions (iad1 to us-east-1) show each wins in different cases.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
