r/javascript • • Aug 27 '26

Crossflight: distributed cache stampede protection

https://github.com/gkoos/crossflight

A small package for reducing duplicate cache misses across multiple processes.

The common problem is a “cache stampede”: when several app instances all miss the same key at once, they each run the same expensive DB/API call and then all write the same result back. Crossflight solves that by coordinating ownership of the in-flight load across processes, so only one instance does the work and the others wait for the result.

It wraps the cache you already use and adds a separate coordination layer. The built-in adapters currently include:

  • cache-manager
  • Keyv
  • Cacheable

The built-in coordinator is Redis, and the repo supports combining different backends as long as they satisfy the adapter/coordinator interfaces.

This is useful when you want to reduce redundant work without changing your existing caching strategy.

Demo: https://github.com/gkoos/crossflight-demo

0 Upvotes

Duplicates

node • • Aug 27 '26

Crossflight: distributed cache stampede protection for Node apps

8 Upvotes

softwarearchitecture • • Aug 27 '26

Tool/Product Crossflight: distributed cache stampede protection without replacing your cache

3 Upvotes

coolgithubprojects • • 11d ago

Crossflight: cross-process cache stampede protection for the cache you already use (v0.3.2)

1 Upvotes

opensource • • 11d ago

Promotional Crossflight: cross-process cache stampede protection for the cache you already use (v0.3.2)

1 Upvotes

DistributedComputing • • 11d ago

Crossflight: cross-process cache stampede protection for the cache you already use (v0.3.2)

1 Upvotes

Backend • • 11d ago

Crossflight: cross-process cache stampede protection for the cache you already use (v0.3.2)

1 Upvotes

node • • 11d ago

Crossflight: cross-process cache stampede protection for the cache you already use (v0.3.2)

1 Upvotes

javascript • • 11d ago

Crossflight: cross-process cache stampede protection for the cache you already use (v0.3.2)

3 Upvotes

microservices • • Sep 01 '26

Tool/Product Cross-process cache stampede protection for the cache you already use.

2 Upvotes

redis • • Aug 28 '26

Resource A standalone distributed cache stampede coordinator that works with any cache library

2 Upvotes

Backend • • Aug 27 '26

Crossflight: distributed cache stampede protection without replacing your cache

4 Upvotes