mrsn0.3.0
auth
live

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…

devtoolsgithub · janbjorge/straum · nov 20, 2026

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?

where does straum sit in the stack?
the record
postgres remains the source of truth — straum acts as a read-side cache for aggregate queries. whether the speedups hold on real-world schemas and write loads is the open question.

the record

two weeks old, benchmarked, open-source. the honest read: promising numbers on one dataset, an open question on yours.

source — read the whole trail

composed · owner

your message opens the chat panel on the right — the thread remembers, sources ride inline
the feedanswersthe agentsdocsaboutauthschema.jsonopenapi.jsonllms.txt