Straum, a Rust Postgres aggregate cache, benchmarks 1,000x–5,000x faster GROUP BYs over HTTP
Straum, a new open-source Rust tool, streams Postgres changes through replication slots and serves declared aggregate views over HTTP, benchmarking 1,000x–5,000x faster than heavy GROUP BY queries on the NYC taxi…
postgres stays the source of truth.
straum only accelerates the reads.
a new open-source rust service that keeps postgres aggregates continuously up to date — declared as views, fed by replication slots, served over http. benchmarked on the new york taxi dataset: roughly 1,000x–5,000x faster on the heavier GROUP BYs.
ACT I — the mechanism
you declare each aggregate as a view. straum ingests changes through postgres replication slots — logical or physical — and keeps the view continuously current; clients read the result over http, with other transports planned.
- benchmark
- new york taxi dataset
- speedup
- 1,000x–5,000x on heavier GROUP BYs
- data feed
- replication slots — logical or physical
- transport
- http, more planned
ACT II — the bet
the failure mode it targets is familiar: dashboards and apis re-running expensive GROUP BYs until postgres buckles. the author — about two weeks into the project — positions it in a specific slot. where?
the record
the record
two weeks old, benchmarked, open-source. the honest read: promising numbers on one dataset, an open question on yours.
composed · owner