MiniCTRMSearch

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.

Before you start

The lessons this one builds on: 622 Running jobs in parallel: the end of day in ten minutes, not twenty, 633 Security: sign-in, privileges on every endpoint, audit, secrets, 634 Reliability: backups, the restore drill, health checks, logs, upgrades.

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 / 19
Ten users or a thousand
Count first

What changes, and what does not

2 / 19
What changes, and what does not
Count first

A load test of the save path

3 / 19
A load test of the save path
Sessions and record locking

Two servers, and two people on one record

4 / 19
Two servers, and two people on one record
Sessions and record locking

Sessions in the database, a version on every record, who else has this open

5 / 19
Sessions in the database, a version on every record, who else has this open
PostgreSQL behind the same repositories

A server database, a connection and a pool

6 / 19
A server database, a connection and a pool
PostgreSQL behind the same repositories

What moves and what stays

7 / 19
What moves and what stays
PostgreSQL behind the same repositories

PostgreSQL behind the same repositories

8 / 19
PostgreSQL behind the same repositories
Deployment: one server, then more

One machine, then the database apart, then two instances

9 / 19
One machine, then the database apart, then two instances
Deployment: one server, then more

The three shapes, side by side

10 / 19
The three shapes, side by side
Deployment: one server, then more

The deployment recipe, as a script and a document

11 / 19
The deployment recipe, as a script and a document
What to watch

The numbers an operator watches

12 / 19
The numbers an operator watches
What to watch

Metrics on the status page and in the log, with a line for each

13 / 19
Metrics on the status page and in the log, with a line for each
The capacity plan, then ship

A plan the next person can trust

14 / 19
A plan the next person can trust
The capacity plan, then ship

The capacity plan

15 / 19
The capacity plan
The capacity plan, then ship

Ship it

16 / 19
Ship it
How MiniCTRM did it

One user, one file, one JAR

17 / 19
One user, one file, one JAR
How MiniCTRM did it

What MiniCTRM says about many users

18 / 19
What MiniCTRM says about many users
What you have now

What you have now

19 / 19
What you have now
← → move · N notes · Home / End