MiniCTRM - Build Tutorial 641: Ten users or a thousand: what changes
→ to begin · N for the speaker notes
On a phone: Next or a swipe left to begin, Notes for the words.
What you'll learn
A load test of the save path with its numbers kept as a baseline, sessions a second server can read and a version on every editable record with a who-else-has-this-open indicator, PostgreSQL behind the same repositories with the migrations and the tests running on both databases and the numbers measured again, a deployment recipe in three shapes with the scheduler on one instance, six numbers an operator watches with a warning line each, and a capacity plan for ten, a hundred and a thousand users beside the baseline.
Count first – The honest numbers from ten users to a thousand, and a load test so that every later number has a before.
Sessions and record locking – Sessions a second server can read, a version on every editable record, and who else has this open.
PostgreSQL behind the same repositories – A server database, a connection and a pool from zero; the migrations and the tests on both; the numbers measured again.
Deployment: one server, then more – One machine behind a reverse proxy with HTTPS, the database on its own, two instances with the scheduler on one.
What to watch – Requests a second, the slowest endpoint, saves a minute, connections in use, the night's duration and signed-in sessions, with a line for each.
The capacity plan, then ship – What machine, what database and how many instances at each size, with the numbers that were measured; a rule in CLAUDE.md; /ship.
How MiniCTRM did it – One user, one SQLite file, one JAR by default, a PostgreSQL server from the same JAR, and what its help says about many users.
Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.
Welcome
Ten users or a thousand
1 / 19Count first
What changes, and what does not
2 / 19Count first
A load test of the save path
3 / 19Sessions and record locking
Two servers, and two people on one record
4 / 19Sessions and record locking
Sessions in the database, a version on every record, who else has this open
5 / 19PostgreSQL behind the same repositories
A server database, a connection and a pool
6 / 19PostgreSQL behind the same repositories
What moves and what stays
7 / 19PostgreSQL behind the same repositories
PostgreSQL behind the same repositories
8 / 19Deployment: one server, then more
One machine, then the database apart, then two instances
9 / 19Deployment: one server, then more
The three shapes, side by side
10 / 19Deployment: one server, then more
The deployment recipe, as a script and a document
11 / 19What to watch
The numbers an operator watches
12 / 19What to watch
Metrics on the status page and in the log, with a line for each
13 / 19The capacity plan, then ship
A plan the next person can trust
14 / 19The capacity plan, then ship
The capacity plan
15 / 19The capacity plan, then ship
Ship it
16 / 19How MiniCTRM did it
One user, one file, one JAR
17 / 19How MiniCTRM did it
What MiniCTRM says about many users
18 / 19What you have now
What you have now
19 / 19
You have finished lesson 641, Ten users or a thousand: what changes.