r/vibecoding • • 15d ago

Discussion I tried to break Prisma Postgres with a live app

I wanted to know whether Prisma's new Postgres + Compute platform can run a real app, so I built one and tried to break it.

The load run: 10,000 votes in 51 seconds, 64 in parallel, zero server errors. The whole four-day test used about 100,000 operations.

I wrote up the honest bill at list prices, the caveats (Prisma 8 is still an RC, no built-in auth, no point-in-time recovery yet), and who should pick it over Neon or Supabase.

1 Upvotes

14 comments sorted by

3

u/Due_Culture_3544 15d ago

Cool test, but 10k in 51 seconds is like 200 a second, which most setups handle fine. I’d be more curious about latency under load, what p95 looked like, and what happens with cold starts or when you hit connection limits. no point-in-time recovery would honestly be a dealbreaker for me on anything real until that ships

1

u/kondasviktor 14d ago

Fair, 200/s isn't a big number. It wasn't meant as a max-throughput test, more "does a real app with locking transactions stay correct and cheap".

Latency from that run: p50 227 ms, p95 674 ms, p99 1.3 s, 64 in parallel. Cold start after ~18h idle was about 1.0-1.3 s. I didn't push it into connection limits, so I can't tell you what happens there.

Agree on PITR. It's on their roadmap but not available yet, and I put that in the "skip it if" list. Daily backups only on paid plans for now.

2

u/HenrikLindqvist 14d ago

this numbers shouldn’t stress any modern database. The bigger prod risk is not having PITR: one bad migration and you’re restoring from whatever backup you happen to have. Usage-based billing on serverless Postgres can also get ugly during a spike. Plain MariaDB with backups and binlogs gives you PITR and predictable costs without babysitting an RC stack.

1

u/kondasviktor 14d ago

Agree on PITR, that's the real gap. Right now it's daily backups on paid plans, and I didn't even test a restore. For anything where one bad migration hurts, that's a valid reason to wait.

On spikes: the whole 4-day test, load run included, was about 100k operations. Caching made the biggest difference (rankings reads went from ~3,010 operations to ~43). But yes, if you can't think in operations, usage billing can surprise you.

MariaDB with binlogs is a solid boring choice. Prisma's pitch is more app + DB + preview branches in one TypeScript deploy, not "best database".

2

u/recro69 14d ago

Zero server errors is a start, but I would like to see how latency changed when the system was under sustained load and how latency behaved when many connections fought for the same resources. Failure recovery is just as important as making sure the load test succeeded and failure recovery should also be examined under conditions.

1

u/kondasviktor 14d ago

Agreed, that's the honest limit of what I ran. It was a 51-second burst, not sustained load, and I didn't inject failures.

Closest I got to contention: 200 voters hitting the same duel at the same instant, with row locks on both tools. 3.3 s total, all 200 counted exactly once. The full run's p95 was 674 ms, p99 1.3 s.

Sustained load plus a failure/restore test would be the right next round. If I do one, I'll post the numbers.

2

u/Crafty_Disk_7026 13d ago

When I worked at aws we had a system that had 1 million requests a second. It's probably at 2 million now. Always blew my mind the scale of some things

1

u/kondasviktor 13d ago

Ha, puts my 195 votes a second in perspective 😄 It was never meant as a scale flex, more "will this hold up for an indie app without me babysitting it." 1M/s is a different universe.

1

u/Crafty_Disk_7026 13d ago

Yeah but you don't have data center the size of a city hahah

1

u/kondasviktor 13d ago

I must talk to my wife about having a data centre in the garden, X-Mas is coming 😉

1

u/Crafty_Disk_7026 13d ago

Hey it is called a server Farm

2

u/[deleted] 13d ago

[removed] — view removed comment

1

u/kondasviktor 13d ago

The closest I got to a spike was 200 voters hitting one duel at once: done in 3.3 s, every vote counted exactly once. I didn't run sustained load, so I can't say how cost scales under real pressure. The whole four-day test was about 100k operations. Agreed on PITR, it's on their roadmap but not there yet, so I wouldn't put anything critical on it today.