Skip to content

Do I need Neon, or will SQLite with Litebackup do?

Neon runs Postgres for you across the network, while SQLite with Litebackup runs in your process and backs up to infrastructure you own.

Why SQLite with Litebackup

  • Queries in microseconds

    A SQLite query is a function call in your process, so many small queries stay fast.

  • Nothing to wake up

    An idle database is a closed file, so there is no compute to start and no pooler to size.

  • A database per tenant

    Each customer gets its own file, so growth and hot tenants stay contained.

One page, a hundred small queries

A web page stacks many small queries, and each network round trip adds up before the database does any work.

100 SQLite queries in your process, at about 10 µs each
About 1 ms
100 queries across the network, at a 1 ms round trip each inside one region
About 100 ms
Slower over the network, and more across regions
About 100×

Every query stays in your process

SQLite runs inside your app, so a query is a function call instead of a trip across the network.

  • No round trip

    A local query takes microseconds. A query across the network pays a round trip first, every time.

  • Many small queries stay fast

    Code that runs a hundred small queries to build a page stays fast and simple, as SQLite's authors explain.

Scale to zero without a cold start

An idle SQLite database is a closed file, so there is nothing to start when the next request arrives.

  • No compute to wake

    Neon stops idle compute, and the next query waits while it starts again.

  • No pooler, no connection limit

    A SQLite file has no server to connect to, so there is no pooler to size and no limit to buy.

A database per tenant

Give every customer or agent its own SQLite file, and Litebackup backs up thousands per machine.

  • Growth stays contained

    A tenant that grows or runs hot touches only its own file.

  • Idle costs nothing

    An idle tenant is a closed file, with no compute to wake up.

  • Migrate one tenant first

    Run a schema change on one tenant, and restore its file if it goes wrong.

What stays the same

Your app keeps using SQLite exactly as it does today.

  • Official SQLite

    The SQLite from sqlite.org and the driver you already use, with no extension or fork.

  • Plain files

    Every replica and restore is an ordinary SQLite file, checked with SQLite's quick integrity check.

  • WAL or rollback journal

    Litebackup backs up both modes and never changes yours, so a rollback-journal database stays one file that also works on network file systems.

The trade-offs

What if a machine dies before it syncs?

It loses its last few seconds of writes, because commits never wait for the network. When a write must be safe first, wait for your server or bucket before you answer.

Can many writers share one database?

SQLite runs one write transaction at a time per file. With a database per tenant, that means one writer per tenant, which is rarely the limit.

Do I run a server?

Yes, one small service on a Linux VM, installed with one command. It keeps recent versions on its disk and archives them to your own bucket.

When is Neon the better choice?

When you need Postgres itself, for its extensions, for many concurrent writers on one shared dataset, or for SQL your team already runs, or when your code runs without a disk. SQLite lists its own limits at sqlite.org/whentouse.html.

At a glance

Neon SQLite with Litebackup
Engine Postgres Official SQLite from sqlite.org
Each query A network round trip to Neon's compute A function call in your process
Connections A pooler and a connection limit per plan No server to connect to
Idle databases Compute scales to zero and starts again on the next query A closed file that needs nothing to start
Where data lives Neon's hosted service Your disk, your server within seconds, and your bucket, encrypted with your key
Restore Point-in-time restore within your plan's window Any version or time you keep, into a new file, checked before it finishes
Price Free and paid plans See pricing

Install

Install your Litebackup server and back up a first database in minutes. Start at install, or see pricing.