Measure.
Don't assume.
Local SQLite experiments. Not employer infrastructure or distributed production benchmarks.
Counter writes
Direct updates versus transaction batches. The chart reports transaction latency, not end-to-end event latency.
Linux x86_64, Python 3.13.5, SQLite 3.46.1
| Method | Events/s | p50 ms | p95 ms | p99 ms |
|---|---|---|---|---|
| Direct | 210975 | 0.0045 | 0.0054 | 0.0083 |
| Batch 100 | 14196933 | 0.0027 | 0.0033 | 0.0147 |
20,000 increments; single process, in-memory SQLite, one transaction per direct update or batch of 100. No network, disk durability or queue delay measured.
Theoretical controls
At 1,000 events/s over two seconds, direct writes = 2,000; ideal aggregate writes = one. Durability and event visibility are not modeled.
Idealized direct writes: ; aggregate writes: 1 per window, per counter.
Illustrative score with other checks zero:
Pipeline anatomy
Conceptual synthetic architecture, not a representation of private systems.
01Ingest
Read CSV records or events from a source.
02Validate
Check required fields, types and data contracts.
03Transform
Normalize fields, aggregate records and apply business rules.
04Store
Persist curated records and preserve raw inputs.
05Deliver
Expose results to downstream consumers.