Serverless Postgres: How It Works and How to Choose a Provider

Serverless Postgres is PostgreSQL you never provision or manage: the platform allocates compute on demand and bills you for usage, not for a server size you picked up front. One label, though, covers very different products, and they differ on two things that decide your cost and your latency: what they bill for, and whether compute sleeps when idle.
This guide leads with the comparison and a way to choose, then explains the reasoning. It compares serverless behavior and pricing only; a production decision should also weigh extensions, read replicas, backups, regions, and compliance, which are out of scope here. Every price and behavior was checked against the provider's own pages in July 2026, and vendor claims (including Prisma's) are labeled as such.
The providers at a glance
| Bills for | Scale-to-zero | Cold start | Free tier | Paid entry | |
|---|---|---|---|---|---|
| Prisma Postgres | Operations (queries) | No (stays ready) | None (by design; vendor claim) | 100k ops, 500 MB, 50 DBs | $10/mo (1M ops, 10 GB) |
| Neon | Compute-hours | After 5 min idle | A few hundred ms | 100 CU-hrs, 0.5 GB × 100 projects | Pay-as-you-go, $0.106/CU-hr |
| Aurora Serverless v2 | Compute-seconds | Optional (0 ACU min) | ~15 s | None | Per ACU-second + storage |
| Supabase | Instance + usage | Free tier only | None on paid; restore on free | 2 projects, 500 MB | $25/mo |
| PlanetScale Postgres | Instance per branch | No (always-on) | None (never sleeps) | None | $5/mo (single node) |
Choose by workload
Walk the tree, or read the guidance beneath it.
The same decision tree as text
What are you choosing a database for?
- A side project or prototype:
Prisma Postgres. 100k operations, 500 MB and 50 databases per month free, with no card. Always ready, with no cold starts (our own architecture claim). Grows into $10/month for 1M operations. Prisma publishes this guide.
Neon. Each of up to 100 projects gets its own free 100 CU-hours and 0.5 GB per month, with scale-to-zero after 5 minutes idle. First query after idle takes a few hundred milliseconds. Supabase's free tier also works if week-idle pausing is acceptable.
- A production workload:
Do you want the platform to bundle more than the database?
- Yes, batteries included:
Supabase. The bundle is auth, storage, realtime and edge functions around Postgres, from $25/month with a Micro instance covered by credits. The economics are instance-shaped: paid projects are always-on, and serverless behaviors are not what you are buying.
Prisma Postgres + Compute. A different bundle: database, ORM, and TypeScript app hosting designed together, with one schema and one config, and the app deployed next to the database. Prisma Compute is in public beta. Auth, storage, and realtime are not part of this bundle; that is Supabase's territory.
- No, I need Postgres:
Which best describes the workload?
- Steady and high-throughput, rarely idle:
Is your infrastructure already committed to AWS?
- Yes, deep in AWS:
Aurora, sized for the load. At sustained throughput you want dedicated capacity inside the ecosystem you already run: IAM, VPC peering, global databases. Skip auto-pause for this workload shape; it is built for idle periods you do not have.
- No:
PlanetScale. Always-on dedicated clusters from $5/month (single node) or $50/month on Metal, prorated to the millisecond. At sustained load, paying for every hour beats metering. There is no free tier and nothing scales to zero; a quiet month still bills the instance.
- Yes, deep in AWS:
- Real idle periods (nights, weekends, bursts):
Can the first query after an idle stretch afford to be slow?
- Yes (cron jobs, internal tools, dev/test):
Neon. Scale-to-zero was built for exactly this: idle time costs storage only, and a few hundred milliseconds of wake-up is invisible to a cron job. If the workload later becomes user-facing, revisit; cold starts stop being free when someone is watching.
Aurora auto-pause (on AWS). Set minimum capacity to 0 ACUs and instances pause after a configurable idle interval, with no compute charge while paused. Resume takes about 15 seconds, and an attached RDS Proxy prevents pausing entirely.
- No, users are waiting on it:
Roughly how many queries a month?
- Up to about 10 million:
Prisma Postgres. Operation-based billing fits this shape: the database is always ready (no cold starts, by our own architecture claim), idle time costs nothing extra, and up to about 10M queries a month stays inside the plan allowances ($10 covers 1M, $49 covers 10M). Prisma publishes this guide, so hold this recommendation to the same skepticism as the rest. Past roughly 24M queries a month the guide's own worked example shows an always-on Neon compute becomes cheaper.
- More than that:
An always-on instance. Neon with auto-suspend disabled runs about $77/month per CU ($0.106 × 730 hours); PlanetScale starts at $5/month single node or $50/month Metal; paid Supabase is $25/month with a Micro covered. No per-query component. The worked example in the pricing-models section shows the ~24M crossover against the $49 operations plan.
Prisma Postgres, higher tier. $1 per million operations at the top tier ($129/month with 50M included), always ready with no cold starts (our own claim). Compare against the always-on options at your exact query count. Prisma publishes this guide.
- Up to about 10 million:
- Yes (cron jobs, internal tools, dev/test):
- A fleet of many small databases (per-tenant, per-user, per-agent):
Prisma Postgres. Operations are metered account-wide across up to 1,000 databases on one plan, so a fleet of small databases shares one allowance. Prisma publishes this guide; the account-wide metering claim is from our pricing page.
Neon. Per-project allowances stretch far for fleets of prototypes: each of up to 100 projects brings its own free 100 CU-hours a month. This pattern is growing: Neon's telemetry had AI agents creating over 80% of databases on its platform as of May 2025.
- Steady and high-throughput, rarely idle:
- Yes, batteries included:
- Side project, prototype, or agent-generated app: you want a generous free tier and zero setup. Prisma Postgres (100k operations, 50 databases, no card), Neon (100 CU-hours across 100 projects), or Supabase (2 projects, if week-idle pausing is acceptable).
- Spiky or scheduled workloads (cron jobs, internal tools, dev/test fleets): compute-time billing with scale-to-zero was built for this. Neon, or Aurora if you're already on AWS and can tolerate ~15-second resumes.
- User-facing apps that go idle but have latency-sensitive users: this is where cold starts hurt. Either keep the database always ready and pay per query (Prisma Postgres), disable auto-suspend on Neon, or run a small always-on instance on PlanetScale ($5) or paid Supabase ($25). The cost comparison below shows how to pick between them.
- Steady, high-throughput production: always-on dedicated capacity wins on price-per-query at sustained load. PlanetScale (from $5 single node, $50 Metal), or Aurora sized for the load.
- Many small databases (per-tenant, per-user, per-AI-agent): account-level metering across a fleet beats per-database pricing. Prisma Postgres meters operations across all databases on one plan; Neon's per-project free allowance also stretches far.
- You want more than a database: for auth, storage, and realtime out of the box, Supabase. For app hosting alongside the database, Prisma pairs Prisma Postgres with Prisma Compute (TypeScript app hosting, public beta) and the ORM as one platform.
The two decisions that matter
Everything else follows from two questions. Answer them and the shortlist above nearly picks itself.
1. What do you pay for?
The category has three billing models, and the model matters more than any single feature.
| Model | Who uses it | You pay for | Favors |
|---|---|---|---|
| Compute-time | Neon, Aurora Serverless v2 | Hours or seconds of compute, sized to load, plus storage | Bursty or idle-heavy workloads that scale to zero |
| Operations | Prisma Postgres | Each query, regardless of compute time, plus storage | A bill that tracks traffic, not clock time |
| Instances | PlanetScale, Supabase | A dedicated instance, always on, prorated by time | Sustained load where dedicated capacity beats metering |
- Compute-time rewards idleness. A database that sleeps 20 hours a day costs a fraction of an always-on one. A workload that never idles loses the whole advantage.
- Operations track traffic. The plans are flat monthly tiers with allowances, so the floor is the plan price rather than zero, with no idle-versus-active math. The catch: the query count is the bill, so chatty patterns (N+1, polling) cost more.
- Instances are the most predictable. A fixed monthly price, and you give up paying nothing when idle.
2. What happens when the database is idle?
Serverless databases separate compute from storage, so compute can stop while your data stays put. What each provider does with that idle time is what your users feel:
- Scale-to-zero suspends compute after an idle period, so an unused database costs storage only.
- Cold start is the price of that nap: the first query after a suspension waits for compute to wake.
Where a provider suspends, the wake time below is from its own docs; where it doesn't, the reason is stated instead:
- Neon: activating from idle "typically takes a few hundred milliseconds" (Neon's docs). Paid plans can disable auto-suspend.
- Aurora Serverless v2: resume from 0 ACUs takes "approximately 15 seconds," or 30+ after a pause over 24 hours (AWS's docs).
- Supabase: paid projects never pause (no cold start); free projects pause after a week and need a restore.
- PlanetScale: nothing sleeps, so no cold start; you pay for the always-on instance.
- Prisma Postgres: always ready, so no cold start, by architecture rather than by paying for idle time. This is our own claim about our own product (see the architecture write-up) and isn't independently benchmarked; hold it to the same skepticism as any vendor claim.
On compute-time platforms, cold starts are the price of the savings: eliminate them and you're paying for idle time again.
Provider profiles
Same attributes for each, so you can scan across them.
Prisma Postgres
Managed Postgres on unikernels in microVMs, designed so databases are always ready. (Disclosure: Prisma publishes this guide; the no-cold-start claim is ours and is documented but not independently benchmarked.)
- Best for: apps that want the bill to track query traffic, and fleets of many small databases.
- Bills for: operations, defined on the pricing page as "each time you interact with your database, no matter the compute time. We count the Prisma ORM queries you make, not the SQL statements you run." Check the pricing docs for how non-ORM queries count.
- Idle behaviour: no scale-to-zero and no cold starts; databases stay ready.
- Free / entry: 100,000 operations, 500 MB, and 50 databases, no card; paid from $10/mo (1M operations, 10 GB, then $0.008 per 1,000) to $129/mo (50M operations). Allowances are account-wide, not per database.
- Watch out for: no database branching yet (separate databases are the substitute); less operational track record than Aurora or Supabase; at sustained high query volume the per-operation math can exceed always-on billing (see the cost comparison).
Neon
The reference implementation of the compute-time model, and the provider that popularized serverless Postgres.
- Best for: bursty or idle-heavy workloads that can tolerate a sub-second wake.
- Bills for: compute in CUs (1 CU = 1 vCPU + 4 GB), $0.106/CU-hour on Launch, $0.222 on Scale, storage $0.35/GB-month. Pay-as-you-go, no monthly minimum.
- Idle behaviour: suspends after 5 minutes; wakes in "a few hundred milliseconds." Paid plans can disable auto-suspend for zero cold starts.
- Free / entry: genuinely per project: each of up to 100 projects gets 100 CU-hours and 0.5 GB a month.
- Watch out for: Databricks agreed to acquire Neon in May 2025; Neon's docs say it continues as a standalone platform positioned alongside Databricks Lakebase, which is a stated intention worth weighing for long-horizon bets.
Aurora Serverless v2
AWS's elastic Postgres (and MySQL), billing capacity in ACU-seconds within a range you configure.
- Best for: teams already deep in AWS who need its ecosystem (IAM, VPC peering, global databases).
- Bills for: ACU-seconds (1 ACU ≈ 2 GB RAM), per second, varying by region; model it on the AWS pricing page.
- Idle behaviour: optional scale-to-zero at a 0-ACU minimum (since late 2024); resume "approximately 15 seconds," 30+ after a 24-hour pause, per AWS's docs.
- Free / entry: no free tier; standard AWS billing.
- Watch out for: an attached RDS Proxy, logical replication, or being the writer in a global database each silently keeps instances awake and defeats auto-pause.
Supabase
A backend platform (auth, storage, realtime, edge functions) with Postgres at its center, rather than a pure database service.
- Best for: teams who want the bundled backend more than serverless behavior.
- Bills for: an instance plus usage; $10/mo of credits covers one Micro (2-core ARM, 1 GB RAM), with dedicated instances from $15 to $3,730/mo billed hourly.
- Idle behaviour: paid projects never pause (no cold starts); free projects pause after a week of inactivity.
- Free / entry: 2 projects at 500 MB each; paid entry $25/mo.
- Watch out for: measured against the serverless behaviors above, it shows the fewest of the five, which matters only if serverless behavior is what you came for.
PlanetScale Postgres
Long a MySQL/Vitess platform; it entered Postgres in 2025 and takes the opposite position from Neon: no scale-to-zero at all.
- Best for: sustained production workloads where predictable dedicated performance justifies paying every hour.
- Bills for: a dedicated instance per branch, by size, prorated to the millisecond.
- Idle behaviour: nothing sleeps, so no cold starts.
- Free / entry: no free tier; from $5/mo (single node), $15/mo (highly available), and $50/mo for the Metal tier (locally attached NVMe, storage included).
- Watch out for: you pay for every hour, idle or not. (Postgres reached GA on September 22, 2025; Metal on December 15, 2025. The Drizzle ORM team joined PlanetScale in March 2026, with Drizzle stated to stay an independent open source project.)
The cost crossover
The operations-versus-compute question has a crossover point, and it's worth doing the arithmetic once. Take an app running 30M queries a month:
- Operations (Prisma Postgres): about $89 on the $49 plan (10M operations included, 20M overage at $0.002 per 1,000).
- Compute (Neon): about $77/mo for a dedicated, always-on 1-CU compute ($0.106 × 730 hours), with no per-query component.
Below that crossover, operation billing keeps you off always-on costs; above it, a dedicated instance is cheaper per query. A companion post breaks Prisma Postgres and Neon pricing down line by line.
Secondary considerations
Beyond billing and idle behavior, a production choice touches a few more things. They rarely decide the shortlist, but they can break a tie:
- Branching. Copy-on-write storage lets several providers fork a database like a Git branch for previews or migration tests. Neon includes 10 branches per project free; Supabase bills $0.01344 per branch-hour; PlanetScale runs each branch as its own billed cluster. Prisma Postgres has no branching yet (its substitute is separate databases: 50 free, 1,000 on paid).
- Connection pooling. Serverless functions open connections fast, and Postgres tolerates a limited number. Prisma Postgres, Neon, and Supabase build in a pooler. On Aurora the answer is RDS Proxy, a separately billed service that holds connections open and, as a result, prevents auto-pause from ever engaging.
- Ecosystem. Aurora buys into the full AWS stack; Supabase bundles auth, storage, and realtime; PlanetScale brings its Vitess and Metal operational heritage.
Other providers you may encounter
The five above cover the main shapes. Most of the rest of the managed-Postgres market isn't serverless at all, and knowing which is which is half the value of the label. All checked against vendor pages in July 2026.
Serverless-adjacent:
- Xata relaunched in 2025 around copy-on-write branching ("one Postgres, thousands of branches"), with idle branches hibernating and waking in about a second. Billing is hourly per instance (from $0.012/hour) plus $0.28/GB-month; no permanent free cloud tier ($100 in 14-day credits), and its core is Apache 2.0 as of 2026.
- Nile is serverless Postgres for multi-tenant apps: every tenant is a virtual database in one Postgres, billed in query tokens (free tier 50M tokens and 1 GB; Pro from $15/mo). Its bet is multi-tenant compute that never pauses.
- Tembo pivoted in May 2025 to running AI coding agents and no longer markets a Postgres product. Worth knowing if you shortlisted it from an older comparison.
Managed instances (not serverless): DigitalOcean (from $15.15/mo), Render (from $6/mo, billed per second), and Heroku Postgres (from $5/mo) all sell instance sizes you pick and resize yourself: no autoscaling, no scale-to-zero, and none of them calls the product serverless. Railway is the edge case: it bills usage per minute and offers opt-in sleep for idle services, though its docs don't say whether volume-backed Postgres can sleep.
Hyperscalers: Aurora Serverless v2 (above) is the only hyperscaler Postgres that auto-suspends. Google Cloud SQL and AlloyDB, and Azure Database for PostgreSQL Flexible Server (from ~$12/mo), all use fixed compute with manual stop at most, and none is branded serverless by its own vendor.
The test that sorts the field: if you pick an instance size and the vendor never suspends it for you, that's managed Postgres, which may be exactly what you need.
Frequently asked questions
The bottom line
Pick by the shape of your workload:
- Can sleep, tolerant of a sub-second wake? Neon.
- Always-on capacity you want to be predictable? PlanetScale, or paid Supabase if you also want the bundled backend.
- Already committed to AWS? Aurora Serverless v2.
- Want costs tied to query traffic, with no cold starts? Prisma Postgres.
To try the operation-based model, spin up a Prisma Postgres database in seconds with npx create-db (no account; temporary until you claim it), or use npx prisma dev for a local instance. For the money side in depth, a companion post breaks Prisma Postgres and Neon pricing down line by line.
About the author

Martin is a member of the Prisma team who has spent his career at the intersection of people, growth, and technology. He writes about the trends and news in the developer tools industry.
Keep reading
Prisma Compute vs Vercel Pricing
Prisma Compute vs Vercel, priced line by line: the same workload runs ~$98 vs ~$236. See why, and why Vercel bills the workflow while Prisma bills the work.
How One Founder Builds a Live Sports Platform Without a Database Team
How Xeito uses Prisma ORM and Prisma Postgres to ship live scoring, leagues, payments, and player workflows without a database team.
Build your next app with Prisma
Start free. Scale when you’re ready.
