Deploy Postgres and MySQL Databases with PlanetScale + Workers

Deploy Postgres and MySQL Databases with PlanetScale + Workers

Cloudflare Blog
Cloudflare BlogApr 16, 2026

Why It Matters

The unified provisioning and billing streamlines full‑stack development on Cloudflare’s edge platform, lowering operational overhead and improving performance for serverless applications.

Key Takeaways

  • Cloudflare lets users provision PlanetScale Postgres/MySQL from its dashboard.
  • New databases will be billed directly to Cloudflare accounts next month.
  • Hyperdrive handles connection pooling and query caching for Workers.
  • Placement hints let Workers run near the database, cutting latency.
  • PlanetScale pricing starts at $5/month for a single Postgres node.

Pulse Analysis

Relational databases have long been a backbone for modern web applications, yet accessing them from serverless edge environments often involves fragmented workflows and separate billing streams. Cloudflare’s latest partnership with PlanetScale bridges that gap by embedding Postgres and MySQL provisioning directly into the Cloudflare dashboard and API. Developers can spin up a fully managed PlanetScale cluster with a few clicks, while the cost is consolidated onto their existing Cloudflare invoice. This move aligns with Cloudflare’s broader strategy to become a one‑stop platform for compute, networking, and data services at the edge.

The integration is powered by Hyperdrive, Cloudflare’s database connectivity layer that automatically creates connection pools and caches query results. By exposing a simple binding in the worker’s wrangler configuration, teams can query a PlanetScale instance using familiar client libraries such as pg for Postgres. Additionally, explicit placement hints allow Workers to execute in the same region as the database, cutting round‑trip latency to single‑digit milliseconds. Together, these features deliver a performance profile that rivals traditional centralized architectures while preserving the scalability of edge compute.

For businesses, the unified provisioning and billing model reduces operational friction and makes budgeting more predictable. PlanetScale’s pricing starts at $5 per month for a single Postgres node, and Cloudflare credits from its startup program can be applied, lowering the barrier for early‑stage projects. The combined offering also brings advanced developer tools—query insights, branching, and AI‑driven workflow automation—to the edge, positioning Cloudflare as a compelling alternative to other serverless platforms that rely on external database providers. As more developers adopt this stack, we can expect a shift toward fully edge‑native full‑stack applications.

Deploy Postgres and MySQL databases with PlanetScale + Workers

Comments

Want to join the conversation?

Loading comments...