Introduction
Feuer caches immutable objects in memory and on disk. On a cache miss, it calls your function to fetch or compute the object.
Why Feuer
Feuer was built for object-storage search and analytics workloads such as Quickwit, where general-purpose hybrid caches like Foyer did not fit the workload:
- Cost-aware retention: Retention is built around attributing cost for each layer.
- Read-prioritized NVMe I/O: Separate read and write
io_uringrings throttle writes under read pressure. See the I/O queue explorer for a side-by-side comparison with Foyer. - Disk-to-source fall-through: When the local SSD read queue saturates, Feuer lets the application decide if we should fall-through and refetch from S3 instead.
Memory-only opening works on every supported platform and needs no runtime, otherwise Feuer requires Linux with io_uring support and a local NVMe SSD for disk caching.
How lookups work
- Memory hit: return the cached bytes.
- Disk hit: read and checksum-verify the object, then promote it to memory.
- Miss: call your callback, cache the result in memory, and queue a disk write when disk caching is enabled.
Concurrent requests for the same key and callback error type share in-flight disk reads and source fetches. When disk reads back up, get_or_fetch_with_disk_fallthrough lets callers fetch directly from the source instead of waiting on disk.
Start here
- Quick start: create a cache, share I/O queues, and check platform requirements.
- Disk I/O: read priority, write pacing, source fall-through, and 1-MiB chunk writes.
- Memory and concurrency: aligned buffer reuse, sharded memory storage, and shared concurrent work.
- Eviction and admission: cost-aware scoring, admission filters, access history, and tuning.
- Observability:
mixtricsmetrics, recovery logs, and access-trace capture for replay. - Architecture explorer · I/O queue explorer: interactive walkthroughs of the internals.
- API reference · crates.io · Source code.