I built WarpKit with one SQLite database per user because I couldn't find a good, solid SQLite template for web apps, and I wanted to know how far one small Hetzner box goes before I have to pay for a bigger one. So I rented the cheapest one that makes sense for an app, a CX23 at €5.99 a month with 2 shared vCPU and 4 GB of RAM, and threw as many users at it as it would take.
With the settings for a box that also builds the app, which is how RunMist deploys it, it carried 3,500 users online at the same time, each with their own database, each saving every 30 seconds, with a p95 of 174 to 313 ms. Not one save failed and not one was lost. When the app builds somewhere else, like on Render, Railway or a Docker image built in CI, the template gives the cache twice the room and it carried 3,600 users at 11 ms, with the CPUs two thirds idle.
That's one €5.99 server, one process and no database server. No cluster, no Kubernetes, no managed Postgres.
This is for the little guys like me who are trying to squeeze the most out of their little Hetzner boxes and scale cheaply for as long as possible.
What did I test?
Each simulated user logs in with their own session, so they get their own user.db file, opens one connection to the server and keeps it, like a browser tab, and saves a note every 30 seconds through the same server function the app uses. Each save is an update, an audit row and a rate limit check inside a write lock. In some runs each user also loads the note right before saving, through the app's real loader. The load came over HTTP from a second server in the same datacenter.
Every 30 seconds is a busy user, not an idle one. Someone with your app open in a tab and saving twice a minute is the heavy end of real use, and here all of them do it at once, every one of them, for the whole run.
| Server | Hetzner CX23: 2 shared vCPU (Intel Xeon Skylake), 4 GB, no swap, Debian 13, Falkenstein |
| Load generator | Hetzner CX33, same location, private network |
| App | WarpKit production build, bun cluster.ts with 2 workers, Bun 1.4.5 |
| Users seeded | 20,000, each with their own SQLite database, 3 GB of data in all |
| Each level | 30 s warmup, then 60 s measured |
How many users did it handle?
With the template exactly as it ships:
| Users online, saving every 30 s | p50 | p95 | p99 | Failed |
|---|---|---|---|---|
| 3,000 | 38 ms | 131 ms | 227 ms | 0 |
| 3,500 | 54 ms | 313 ms | 463 ms | 0 |
| 3,500, again | 53 ms | 174 ms | 234 ms | 0 |
| 4,000 | 1.2 s | 2.1 s | 2.4 s | 0 |
With a read before every save it carried 3,000 users, writes at 144 ms p95 and reads at 218 ms.
3,500 is where I'd stop on this box. At 4,000 it was still taking every save, they just waited in line, and even at 6,000 nothing failed, but a 2 second wait isn't something I'd put a customer through.
What stops it there is the disk, not the CPU, which was only about 55% busy. The template keeps 956 user databases open per worker on this box, and at 3,500 users each worker has more users than that, so most saves have to open a database and close another one first. I'll come back to why it's 956.
And if the box doesn't build?
How big that cache is depends on where the app builds. RunMist builds on the same server and the build needs room, so it keeps the cache to a quarter of the RAM. Everywhere else the template now gives it half the RAM, 1,913 per worker on a CX23, and then every user fits in it, without you having to set anything:
| Users online, saving every 30 s | p95 | CPU busy |
|---|---|---|
| 3,000 | 11.6 ms | 29% |
| 3,200 | 10.9 ms | 31% |
| 3,600 | 11.4 ms | 33% |
| 3,600, with a read before each save | writes 11.5 ms, reads 11.6 ms | 45% |
3,600 people saving twice a minute, at 11 milliseconds, on a €5.99 server that's mostly idle. The edge is the cache's size, about 3,800 users across the two workers, and past it the same disk limit as before comes back. The app used about 1 GB per worker with the cache full, which leaves enough for the app and the server itself but not for a build on top, so that's the trade.
What about every user saving every 3 seconds?
Before this I ran a much harsher test, every user saving every 3 seconds without a pause, which is ten times the writes per user. That's not real use, it's a stress test, and it's where the CPU becomes the limit:
| Users saving every 3 s | Writes a second | p95 as shipped | p95 with builds elsewhere |
|---|---|---|---|
| 1,400 | 467 | 90.8 ms | 20.7 ms |
| 2,000 | 667 | 13.6 s | 119 ms |
2,000 users saving every 3 seconds is about 58 million writes a day, on one small box, with nothing lost.
I also counted every write. Across all the runs of the last test the server had 339,046 audit rows in its 20,000 databases, exactly the saves the load generator counted plus its 26 probe writes.
The first run was a lot worse
The first time I ran the nonstop test, with the template as it was, it gave me this:
| Users saving every 3 s | p95 with the old default | p95 now |
|---|---|---|
| 400 | 50 ms | 11.6 ms |
| 1,000 | 9.7 s | 17.1 ms |
At 1,000 users it was nearly 10 seconds, and I had expected a lot more than 1,000, so to be honest my first thought was that my template wasn't fit for production. It never showed up on my live sites, only in the test. The cause was one setting: each worker kept at most 200 user databases open, and past that every request closed one database to open another, and closing a SQLite database in WAL mode writes its log back with two fsyncs. The disk couldn't keep up while the CPU sat at 40%.
Now the template sizes that cache from the server's memory when it starts, half the RAM, or a quarter when RunMist builds on the same box, split across the workers, at about 0.5 MB per open database. On a CX23 under RunMist that's 956 per worker instead of 200, and you can still set USER_DB_MAX_CONNECTIONS yourself. I also tested users with 5 MB of data each, and an open database still took about 0.33 MB, and in case a lot of pages get written while a database is open, the template now frees that memory before it would run out. I ran a production build on the same box while it was serving users with full caches, and it peaked at 1.23 GB and nothing got killed.
I also looked at closing databases without that write back, and SQLite can do it, but Bun doesn't expose the option, and the workarounds I found either keep the fsyncs or make a crash less safe, so I left durability as it is.
What about Postgres?
On one shared database Postgres keeps up with SQLite, I measured that on an 8-core Hetzner box once both had the same durability settings. Where SQLite pulls ahead is the case WarpKit is built for, writes spread across many users, each in their own file, with no connection pool and no database server to run.
What I didn't measure
Pages that read more than one thing, and the rest of an app's server functions. Users who behave less evenly than one save every 30 seconds, which should be easier on the cache, not harder. A cache bigger than half the RAM, though with every user cached the CPUs were still about half idle, so there's likely more in the box. More than one or two runs per level, on shared vCPUs a neighbour can slow down. And a build during a busy minute does hurt: at 1,000 nonstop users, p95 went to 2.75 s while it ran.
So how far does a €5.99 box go?
Further than most of us will ever need. 3,500 people online at the same moment is a lot of customers, because they won't all be online at once. Even if they were, at $20 a month that's $70K MRR on one €5.99 server.
You don't need Kubernetes for that, or a cluster, or a database you pay for by the hour. When one box isn't enough anymore, my plan is to put a group of users on a second server and keep going like that, one box of customers at a time.
If you want to start from the same template, that's WarpKit. And if you're running SQLite on a small box too, I'd like to know what numbers you get.