cloudflare / cloudflare/pingora

Disk cache

Open
#210 0 comments 9 reactions 0 assignees View on GitHub
enhancement Long Term Goal
Dominant language
Rust
Stars
27.4k
Forks
1.7k
Avg merge
6h 22m
Merged PRs (30d)
3

Description

## What is the problem your feature solves, or the need it fulfills?

Looks like pingora already provides a memory-cache module, but I suspect memory caching may be cost prohibitive for a lot of folks currently using something like NGINX, which caches to disk by default.

## Describe the solution you'd like

Would be great to see a disk-cache module in addition to the memory-cache module!

## Describe alternatives you've considered

We could always implement custom disk caching modules in user-land since pingora is so extensible, and the fact that the current memory-cache module is already abstracted behind a generic interface probably makes this even easier. But having off-the-shelf disk-caching would make it a lot easier to migrate existing NGINX-based workloads and help accelerate adoption.

## Additional context

The fact that there's no disk-cache module in pingora makes me super curious about how Cloudflare handling caching with pingora today. Is all caching done in-memory (sounds expensive!)? Or maybe you have dedicated disk caching services living outside of the pingora proxies themselves? Would love to learn more. May be a good blog post topic? :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.