Using PlanetScale with
██████╗██╗ ██████╗ ██╗ ██╗██████╗ ███████╗██╗ █████╗ ██████╗ ███████╗
██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗██╔════╝██║ ██╔══██╗██╔══██╗██╔════╝
██║ ██║ ██║ ██║██║ ██║██║ ██║█████╗ ██║ ███████║██████╔╝█████╗
██║ ██║ ██║ ██║██║ ██║██║ ██║██╔══╝ ██║ ██╔══██║██╔══██╗██╔══╝
╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝██║ ███████╗██║ ██║██║ ██║███████╗
╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
PlanetScale gives Cloudflare Workers applications a fast, scalable database backend with Postgres or Vitess-powered MySQL. Connect PlanetScale to Cloudflare Hyperdrive for connection pooling, lower latency, and simple database access from Workers.
Postgres or MySQL, ready for production
Start with PlanetScale Postgres or Vitess (MySQL) and get a database platform built for production traffic from day one.
Fast storage for the best performance
PlanetScale Metal databases run on locally attached NVMe SSDs for high-throughput, low-latency workloads.
Scale without re-architecting
Resize clusters, add replicas, and leverage sharding in Vitess as your database traffic increases.
Safe development workflows
Use database branches and multiple Cloudflare environments to separate local development, staging, and production.
Query performance insights
PlanetScale Query Insights helps you find slow queries, understand load, and tune indexes as your Workers app grows.
Build with AI
Combine PlanetScale's MCP server, database skills, and powerful CLI to improve your database via AI agents.
Cloudflare Hyperdrive
Hyperdrive is Cloudflare’s database connection pooling and query acceleration service for Workers. Connect Hyperdrive to PlanetScale so your Worker can query your database from Cloudflare’s global network while Hyperdrive manages connection pooling and query acceleration.
Warm pooled connections
Hyperdrive maintains warm connections to your PlanetScale database, reducing the overhead of opening a new connection for every request.
Built for Postgres and MySQL
Use Hyperdrive with PlanetScale Postgres or Vitess-powered MySQL.
Works with your existing Worker
Add a Hyperdrive binding to your Worker, connect it to PlanetScale, and keep your application code on the Cloudflare platform you already use.
Production visibility
PlanetScale Query Insights helps you understand what your Cloudflare app is doing to the database when traffic starts to grow.
Cloudflare Workers
Workers gives you a global serverless runtime. PlanetScale gives that runtime a durable, scalable source of truth for product data, user state, transactions, and real-time features.
A Cloudflare-native stack
- Use Workers for application logic close to your users.
- Use Hyperdrive to pool and accelerate database connections.
- Use Durable Objects and WebSockets for real-time coordination.
- Use PlanetScale as the production database behind the stack.
Build your next Cloudflare app on PlanetScale
Create a PlanetScale database, connect it to Cloudflare Hyperdrive, and deploy a fast application on Workers without building your own connection pooling or database scaling layer.