PlanetScale provides a serverless MySQL database built on Vitess, the same technology that scales YouTube's database. It offers non-blocking schema changes, database branching, and horizontal sharding. The platform eliminates downtime during migrations and provides connection-level caching for improved performance.
Deploy schema changes to production without locking tables or causing downtime using PlanetScale's deploy request workflow, which handles online DDL automatically.
Distribute read replicas across multiple regions to serve data with minimal latency for globally distributed applications.
Scale MySQL horizontally with Vitess-powered sharding that handles millions of queries per second without application-level changes.
import { connect } from "@planetscale/database";const conn = connect({ url: process.env.DATABASE_URL });export async function searchProducts(query: string, limit = 20) {const results = await conn.execute("SELECT id, name, price, category FROM products WHERE MATCH(name, description) AGAINST(? IN BOOLEAN MODE) LIMIT ?",[query, limit]);return results.rows.map((row) => ({id: row.id as string,name: row.name as string,price: row.price as number,category: row.category as string,}));}
Seamless integration, great documentation. Set up in under 10 minutes.
2 days ago
Works well for our use case. Would love to see more webhook event types.
1 week ago
Excellent compliance coverage. HIPAA audit trail works perfectly.
2 weeks ago
| Key | Description | Example |
|---|---|---|
| DATABASE_URL | PlanetScale connection string | mysql://user:pass@aws.connect.psdb.cloud/mydb?sslaccept=strict |
PlanetScale is a serverless MySQL platform built on Vitess that provides non-blocking schema changes, database branching, and horizontal sharding. It is ideal for teams that need MySQL at scale with zero-downtime migrations and a Git-like workflow for database schema management.