HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
s2-streamstore
cachey
Rust2025–2025
s2-streamstore / cachey

cachey

Read-through cache for object storage

2Distinct people
4Mentions
0Explicit recommenders
695GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Read-through cache for object storage

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day4 dated mentions

Observed mentions: 2025-09-14 14:37:48 UTC to 2025-09-27 16:48:30 UTC.

012025-09-14 00:00:00 UTC to 2025-09-15 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsSep 142025-09-15 00:00:00 UTC to 2025-09-16 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-09-16 00:00:00 UTC to 2025-09-17 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-09-17 00:00:00 UTC to 2025-09-18 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2025-09-18 00:00:00 UTC to 2025-09-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-09-19 00:00:00 UTC to 2025-09-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-09-20 00:00:00 UTC to 2025-09-21 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsSep 202025-09-21 00:00:00 UTC to 2025-09-22 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-09-22 00:00:00 UTC to 2025-09-23 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-09-23 00:00:00 UTC to 2025-09-24 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-09-24 00:00:00 UTC to 2025-09-25 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-09-25 00:00:00 UTC to 2025-09-26 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-09-26 00:00:00 UTC to 2025-09-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-09-27 00:00:00 UTC to 2025-09-28 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 27

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Sep 142025-09-14 00:00:00 UTC2025-09-15 00:00:00 UTC110
Sep 152025-09-15 00:00:00 UTC2025-09-16 00:00:00 UTC000
Sep 162025-09-16 00:00:00 UTC2025-09-17 00:00:00 UTC000
Sep 172025-09-17 00:00:00 UTC2025-09-18 00:00:00 UTC110
Sep 182025-09-18 00:00:00 UTC2025-09-19 00:00:00 UTC000
Sep 192025-09-19 00:00:00 UTC2025-09-20 00:00:00 UTC000
Sep 202025-09-20 00:00:00 UTC2025-09-21 00:00:00 UTC110
Sep 212025-09-21 00:00:00 UTC2025-09-22 00:00:00 UTC000
Sep 222025-09-22 00:00:00 UTC2025-09-23 00:00:00 UTC000
Sep 232025-09-23 00:00:00 UTC2025-09-24 00:00:00 UTC000
Sep 242025-09-24 00:00:00 UTC2025-09-25 00:00:00 UTC000
Sep 252025-09-25 00:00:00 UTC2025-09-26 00:00:00 UTC000
Sep 262025-09-26 00:00:00 UTC2025-09-27 00:00:00 UTC000
Sep 272025-09-27 00:00:00 UTC2025-09-28 00:00:00 UTC101

What Hacker News says

4 sources
shikhar·Sep 14, 2025Submission

Show HN: Cachey, a Read-Through Cache for S3

Cachey (https://github.com/s2-streamstore/cachey) is an open source read-through cache for S3-compatible object storage. It is written in Rust with a hybrid memory+disk cache powered by foyer [1], accessed over a simple HTTP API. It runs as a self-contained single-node binary – the idea is to distribute yourself and lean on client-side logic for key affinity and load balancing. If you are building something heavily reliant on object storage, the need for something like this is likely to come up! A bunch of companies have talked about their approaches to distributed caching atop S3 (such as Clickhouse [2], Turbopuffer [3], WarpStream [4], RisingWave [5]). Why we built it: Recent records in s2.dev are owned by a designated process for each stream, and we could return them for reads with minimal latency overhead once they were durable. Howev
Read the rest
er this limited our scalability in terms of concurrent readers and throughput, as well as implied cross-zone network costs when the zones of the gateway and stream-owning process did not align. The source of durability was S3, so there was a path to slurping recently-written data straight from there (older data would already be read directly), and take advantage of free bandwidth. But even S3 has RPS limits [6], and avoiding the latency overhead as much as possible is desirable. Caching helps reduce S3 operation costs, improves the latency profile, and lifts the scalability ceiling. Now, regardless of whether records are recent or old, our reads always flow through Cachey. Cachey internals: - It borrows an idea from OS page caches by mapping every request into a page-aligned range read. This did call for requiring the typically-optional Range header, with an exact byte range. Standard tradeoffs around picking page sizes apply, and we went with fixing it at the high end of S3's recommendation (16 MB). If multiple pages are accessed, some limited intra-request concurrency is used. The sliced data is sent as a streaming response. - It will coalesce concurrent requests to the same page (another thing an OS page cache will do). This was easy since foyer provides a native 'fetch' API that takes a key and thunk. - It mitigates the high tail latency of object storage by maintaining latency statistics and making a duplicate request when a configurable quantile is exceeded, picking whichever response becomes available first. Jeff Dean discussed this technique in "The Tail at Scale" [7], and S3 docs also suggest such an approach. A more niche thing Cachey lets you do is specify more than 1 bucket an object may live on, and attempt up to 2, prioritizing the client's preference blended with its own knowledge of recent operational stats. This is actually something we rely on since we offer regional durability with low latency by ensuring a quorum of zonal S3 express buckets for recently-written data, so the desired range may not exist on an arbitrary one. This capability may end up making sense to reuse for multi-region durability in future, too. I'd love to hear your feedback and suggestions! Hopefully other projects will also find Cachey to be a useful part of their stack. [1] https://github.com/foyer-rs/foyer [2] https://clickhouse.com/blog/building-a-distributed-cache-for... [3] https://turbopuffer.com/docs/architecture [4] https://www.warpstream.com/blog/minimizing-s3-api-costs-with... [5] https://risingwave.com/blog/risingwave-elastic-disk-cache [6] https://docs.aws.amazon.com/AmazonS3/latest/userguide/optimi... [7] https://cacm.acm.org/research/the-tail-at-scale/#body-7
3 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.