Skip to main content

Introduction

Feuer — cost-aware tiered cache

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_uring rings 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​

  1. Memory hit: return the cached bytes.
  2. Disk hit: read and checksum-verify the object, then promote it to memory.
  3. 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​