A database for each tenant

Run PostgreSQL-compatible queries beside your data on Cloudflare. Compute duration charges stop when the database can hibernate.

One tenant runs a query.
Another sleeps.

Each database gets its own Durable Object. In this example, a storefront counts its orders while a warehouse database hibernates.

Storefront

Running SQL
orders
order_iditem
1041Field notebook
1042Pencil set
1043Desk pad
SELECT count(*) FROM orders;3

The SQL engine counts three rows in the storefront’s local storage.

Warehouse

Hibernating
inventory
itemon_hand
Field notebook48
Pencil set16
Desk pad32

The warehouse keeps its committed stock counts in storage while compute sleeps.

Monthly estimate

What would one database cost to run for 30 days? Pick a workload to compare PostDurable and Neon Launch, then adjust it to fit your app.

Your workload

This adds up to 120 active hours and 1,500,000 queries in 30 days.

Estimated monthly cost USD

PostDurable$3.52
Neon Launch$5.20
Monthly costsPostDurableNeon Launch
Database activity$1.82$3.45
Stored data$1.70$1.75

The PostDurable estimate is $1.68 lower for this workload.

PostDurable models active time, requests and rows processed. Neon Launch models a 0.25 CU compute with a five-minute autosuspend delay.

Development estimate. Billing is inactive. Network traffic, backups and plan allowances are excluded.

Rates and exclusions

Invoice history with a window function

Build a running list of invoice amounts for each customer in SQL. Here’s what PostDurable returned in its PostgreSQL comparison tests.

Query
SELECT cust,
  jsonb_agg(amount) OVER (
    PARTITION BY cust
    ORDER BY id
  )
FROM inv
ORDER BY id;
Result 3 rows
custjsonb_agg
acme[100.50]
acme[100.50, -20.25]
beta[0.00]

Explore the SQL examples

Join the early-access waitlist

We’ll email you if your database access is approved.

Open the link in this browser to confirm your email.