youtu.be
How Many Users Can a $12 Server Handle?
How many users can a $12/month server actually handle?
I rented the cheapest decent VM I could get: 1 shared vCPU and 2 GB of RAM. Nginx, Node.js and Postgres all run on that one box. Then I hit it with thousands of realistic virtual users (k6) until it broke, and made two small caching changes to see how much farther it could go.
Devmaxx (my app to master system design) https://www.devmaxx.dev/get
Chapters
0:00 Intro
0:52 The server
1:36 The app
2:14 What is a user
3:29 Generating load
4:10 Error thresholds
5:11 2,000 users
6:00 Finding the limit
6:54 What actually broke?
7:27 CPU steal
7:57 Raw throughput
8:35 Optimization 1
10:12 Optimization 2
12:05 How to load test your own app
12:39 What should I test next?