scale: real-redis appview, commit cadence, and the 8000-run gauntlet
production shape lands: the Cache union gains a real-redis-over-TCP
backend (PREFECT_PDS_CACHE=redis, container via orbstack), selected at
boot; burner stays the zero-infra default. commit cadence becomes a
knob (PREFECT_PDS_COMMIT_EVERY) — the same lever as the cloud
prototype's delta-flush cadence.
scripts/bench-scale drives 16 concurrent client lifecycles in
cumulative tiers and found three real bugs before producing numbers:
quadratic CAR retention here (fixed: per-commit scratch arena +
child-allocator-owned latest_car), quadratic MST re-serialization in
zat (fixed upstream on zat#mst-block-cache), and realloc-dangled
response slices in the redis client under large SMEMBERS (fixed
upstream on redis#retired-read-buffers).
results (docs/scale-results.md): 8000 runs / ~30k records, no crashes.
point reads flat at ~1ms across 32x scale; per-write commits decay
O(records) as predicted; commit_every=20 flattens throughput at
840 w/s with p95 *improving* at depth. remaining walls are slopes with
named fixes, not cliffs.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>