How Many Users Can a $12 Server Handle? What a Load Test Shows About Caching

Cover graphic: How many users can a $12 server handle, what a simulated test shows about caching

Before paying for a bigger cloud server, it helps to know what a cheap one can do. Developer Arjay McCandless published a load test of a $12-a-month server. All figures below are his, from a simulated test. We did not run or reproduce it, and they are not verified real-world capacity. Here is what he reported and what you can take from it.

The test setup (as reported by the creator)

  • Server: a DigitalOcean Basic Droplet at $12 a month, with 1 shared vCPU at 2.0 GHz and 2 GB of RAM, running Ubuntu 24.04.
  • App: a simple social media API. Nginx, Node.js and PostgreSQL all ran on the same machine.
  • Data: 50,000 users, 500,000 posts and 2 million likes.
  • Load: a separate machine ran the k6 load-testing tool. Each simulated user loaded the feed, paused, sometimes liked or posted, then repeated.

Where it broke, according to the test

The creator raised the simulated load in steps. Up to 1,000 users the server was fine. At 2,000 the average response time was healthy, but the slowest responses (P95 and P99) began to climb. At 3,000 users the test failed his own success criteria, so he settled on 2,500 as the baseline limit.

At 2,500 simulated concurrent users he reported about 232 requests per second and a P95 latency of about 288 milliseconds. CPU use reached about 90%, while memory stayed under 1 GB. In his results PostgreSQL was not the bottleneck.

Two caching changes he tested

  1. A one-second cache inside Node.js. Caching the feed response for one second let many users share the same answer. He reported capacity rising from about 2,500 to about 4,000 simulated concurrent users.
  2. Moving the cache into Nginx. Nginx answers cached requests before they reach the app. He reported capacity passing 5,000, and his page lists 5,250.

Concurrent users are not daily users

Concurrent users are people active at the same moment. The creator estimates 5,000 concurrent users is roughly 25,000 to 30,000 daily active users. That is his estimate, not a measurement.

What to take from it

  • Measure first. In this test the CPU was the limit, not memory or the database. A bigger server would have hidden that.
  • Watch P95 and P99, not averages. At 2,000 users the average looked fine while the slowest requests were already stretching.
  • Cache close to the user. Short caches for feeds and other repeated responses can save a lot of CPU.
  • Test your own setup. Results depend on the app, the data and the traffic pattern. Simulated users behave differently from real ones, so treat these numbers as a reference point only.

FAQ

Can one $12 server run a real app?

In this simulated test, a read-heavy app with a simple design and good caching handled thousands of concurrent users. Real apps may differ, so test yours.

Is a one-second cache safe?

It suits feeds where slightly stale data is acceptable. Avoid caching per-user private data unless the cache key separates users.

What is k6?

An open-source load-testing tool that simulates many virtual users.

Sources

Leave a Reply