The short answer: with up to 100 jobs being counted at the same time, running console queries alongside caused no measurable slowdown (worst case, 10 jobs). Adding back-to-back generation of 100,000-row PDF reports caused a 9% slower p95 (worst case, 100 jobs). The slowest write p95 we measured anywhere was 34.7 ms — and when the extra load stopped, write speed returned to its baseline.
Write p95 with queries running
1.00×
vs the same tier without queries · worst at 10 jobs
Write p95 with queries + PDFs
1.09×
vs baseline · worst at 100 jobs
Slowest write p95 anywhere
34.7 ms
across 17,030 measured uploads
Rows verified in the database
19,017
83 PDFs · 5,348 console queries · 0 failed requests
Every ratio is against the same tier's own writes-only baseline window, measured minutes apart on the same data — not against another run. No upload or query failed in any measured window. No device ever fell behind its five-second scanning cadence.
How we tested
Each tier runs one continuous timeline in five windows. Writers keep counting through all of them; the read and report load joins only for its own window, so the tier's baseline and recovery windows bracket it.
- Counting writes. One synthetic device per job (four devices on the single job in the 1-job tier, so a one-site team still produces a usable sample) uploads one scanned record every 5 seconds through the real mobile batch API — single-record batches, real catalogue barcodes, the same catalogue hint the app sends. Every receipt is checked.
- Console queries. Two readers continuously open the records page, the summary and the differences of the jobs being counted (300–700 ms between calls) — deliberately heavier than the console's default 15-second refresh.
- PDF reports. During the reports window, the seven standard PDFs of one fixed 100,000-row job (50% matched against the live 3.27M-product catalogue) are generated back to back through the real report queue, with a 2-second pause between files. Nothing is started in the last 30 seconds, so no generation spills into recovery.
- The machine. Release build of the API running natively on macOS (M5), the development PostgreSQL and Azurite in the shared 4 vCPU / 8 GiB Podman VM, two Hangfire workers inside the API process — the everyday development setup, measured as-is.
Sample sizes per measured window: 1 job: 144 · 10 jobs: 301 · 50 jobs: 1,203 · 100 jobs: 2,392 uploads in the baseline window alone.
Watch a tier happen
Second-by-second upload latency for one tier. The shaded bands are the windows; the purple ticks along the bottom are individual PDF generations. Hover anywhere for the exact numbers of that second.
Window by window
The same tier, window by window. The badge above each loaded window is its write p95 compared with the tier's own baseline.
Across 1 to 100 jobs
How much the concurrent load changed write latency, per tier. A value of 1.0 means no change against the tier's own baseline.
The queries themselves
Do heavier write fleets make the console reads slower? Query latency per tier, while the writes of that tier are running.
The PDFs themselves
The same 100,000-row reports generated under every tier. Median execution time moved between 4.85 s and 4.92 s — report speed is dominated by the report's own size, not by the counting load around it.
All the numbers
Every measured window behind every chart above. Nothing is sampled out.
| Tier | Window | Uploads | Rows/s (target) | p50 ms | p95 ms | p99 ms | Max ms | p95 vs baseline | Failed | Late for cadence |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 job × 4 devices | counting writes only | 144 | 0.80 / 0.80 | 23.0 | 34.7 | 44.0 | 91.0 | — | 0 | 0 |
| 1 job × 4 devices | writes + console queries | 145 | 0.81 / 0.80 | 21.0 | 29.0 | 31.0 | 69.0 | 0.84× | 0 | 0 |
| 1 job × 4 devices | writes + queries + PDF generation | 191 | 0.80 / 0.80 | 13.0 | 24.5 | 32.3 | 90.0 | 0.71× | 0 | 0 |
| 1 job × 4 devices | writes only again | 72 | 0.80 / 0.80 | 20.0 | 28.4 | 31.0 | 31.0 | 0.82× | 0 | 0 |
| 10 jobs × 1 device | counting writes only | 301 | 2.01 / 2.00 | 20.0 | 27.0 | 31.0 | 34.0 | — | 0 | 0 |
| 10 jobs × 1 device | writes + console queries | 301 | 2.01 / 2.00 | 19.0 | 27.0 | 32.0 | 87.0 | 1.00× | 0 | 0 |
| 10 jobs × 1 device | writes + queries + PDF generation | 420 | 2.00 / 2.00 | 12.0 | 25.0 | 32.6 | 147.0 | 0.93× | 0 | 0 |
| 10 jobs × 1 device | writes only again | 180 | 2.00 / 2.00 | 20.0 | 28.0 | 59.6 | 220.0 | 1.04× | 0 | 0 |
| 50 jobs × 1 device | counting writes only | 1,203 | 10.03 / 10.00 | 17.0 | 24.0 | 29.0 | 36.0 | — | 0 | 0 |
| 50 jobs × 1 device | writes + console queries | 1,198 | 9.98 / 10.00 | 16.0 | 23.0 | 27.0 | 31.0 | 0.96× | 0 | 0 |
| 50 jobs × 1 device | writes + queries + PDF generation | 1,802 | 10.01 / 10.00 | 12.0 | 22.0 | 27.0 | 158.0 | 0.92× | 0 | 0 |
| 50 jobs × 1 device | writes only again | 884 | 9.82 / 10.00 | 17.0 | 25.0 | 29.0 | 31.0 | 1.04× | 0 | 0 |
| 100 jobs × 1 device | counting writes only | 2,392 | 19.93 / 20.00 | 14.0 | 22.0 | 26.0 | 33.0 | — | 0 | 0 |
| 100 jobs × 1 device | writes + console queries | 2,405 | 20.04 / 20.00 | 13.0 | 21.0 | 26.0 | 76.0 | 0.95× | 0 | 0 |
| 100 jobs × 1 device | writes + queries + PDF generation | 3,593 | 19.96 / 20.00 | 11.0 | 24.0 | 51.2 | 169.0 | 1.09× | 0 | 0 |
| 100 jobs × 1 device | writes only again | 1,799 | 19.99 / 20.00 | 16.0 | 25.0 | 30.0 | 225.0 | 1.14× | 0 | 0 |
| Tier (jobs) | Window | Queries | p50 ms | p95 ms | p99 ms | Max ms | Failed |
|---|---|---|---|---|---|---|---|
| 1 | writes + console queries | 689 | 19.0 | 33.0 | 37.0 | 69.0 | 0 |
| 1 | writes + queries + PDF generation | 924 | 14.0 | 34.0 | 43.1 | 173.0 | 0 |
| 10 | writes + console queries | 584 | 17.0 | 32.0 | 37.2 | 180.0 | 0 |
| 10 | writes + queries + PDF generation | 811 | 13.0 | 29.0 | 37.8 | 83.0 | 0 |
| 50 | writes + console queries | 469 | 14.0 | 28.0 | 31.0 | 39.0 | 0 |
| 50 | writes + queries + PDF generation | 705 | 12.0 | 27.0 | 33.0 | 141.0 | 0 |
| 100 | writes + console queries | 471 | 10.0 | 24.0 | 32.0 | 34.0 | 0 |
| 100 | writes + queries + PDF generation | 695 | 10.0 | 29.0 | 38.1 | 114.0 | 0 |
| Tier (jobs) | PDFs | Queued ms, median / max | Executed, median / max | Request to downloadable, median |
|---|---|---|---|---|
| 1 | 25 | 13 / 37 | 4.88 s / 9.93 s | 6.04 s |
| 10 | 22 | 13 / 18 | 4.91 s / 9.95 s | 6.05 s |
| 50 | 18 | 12 / 15 | 4.85 s / 9.90 s | 6.04 s |
| 100 | 18 | 11 / 17 | 4.92 s / 10.26 s | 6.04 s |
What this did not test
Being straight about the edges of this test, because they decide what we should not promise yet.
- One pass per tier. Each fleet size ran once, and every comparison is inside one tier (loaded windows against the same tier's baseline and recovery). A repeat run may land a few percent either way.
- Normal-speed entry only. Devices upload one record every 5 seconds. A mass backlog resync (hundreds of queued rows per device after an outage) is a different, heavier load and was not exercised here.
- Small live jobs. The jobs being counted held tens to a few hundred rows by the end of their tier; queries against them are cheap. The expensive read work in this test is the 100,000-row report job, by design.
- The 1-job tier is a small team, not a lone scanner. Four devices counted into the same job so the sample size stays meaningful; every other tier is one device per job. The per-device pace is identical in all tiers.
- Continuous query pressure. Two readers poll without resting — much heavier than a supervisor glancing at a dashboard that refreshes every 15 seconds. Treat the query window as a ceiling, not a typical load.
- Our development machine, not the cloud. API and driver share one Mac with the database VM. Numbers here are a local baseline for this code, not a production sizing.
How to trust this
- Every row was reconciled. The k6 drivers confirmed 19,017 uploaded rows; afterwards the database held exactly 19,017 rows carrying this run's marker, with 19,017 unique record identities and 0 malformed rows.
- Every report was accounted for. The reporter completed 83 generations; the server's own report table holds exactly 83 rows for the report job, all completed, each with queue and execution times read from the server's persisted timestamps rather than the driver's watch.
- Everything went through the real path. A real organisation admin, real jobs taken through Draft → Ready → Active (a licence consumed for each), the real mobile upload protocol with catalogue hints, the real report queue, and the development 3.27M-product catalogue. No platform identity, no bypass, no in-memory fakes.
- The baseline is next door, not from another day. Each tier's impact ratios compare its own loaded windows against the writes-only windows minutes apart in the same run, on the same data.
- Window alignment was verified. The k6 drivers logged every window transition; the observed transitions sat within seconds of the planned ones (worst 2.2 s).
Run 00fe3014 · version 20261014-concurrent-read-write · code under test a156f682 (with uncommitted changes) · measured 2026-10-14 · 43.1 minutes end to end · live catalogue of 3,275,088 products. Every figure on this page was generated by tests/performance/20261014-concurrent-read-write/page.mjs from the measured result files in tests/performance/20261014-concurrent-read-write/reports; none is typed in by hand.