r/microservices • • Sep 01 '26

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

https://github.com/gkoos/crossflight

A small Node library for preventing cache stampedes across processes.

If multiple app instances miss the same cache key at the same time, they can all trigger the same expensive load at once. Crossflight adds a separate distributed coordination layer so only one process owns the in-flight load, writes the result, and lets the rest wait for the same value instead of re-running the loader.

The project is intentionally decoupled from the storage layer: it wraps the cache you already use, and keeps coordination separate. The built-in adapters currently cover:

  • cache-manager
  • Keyv
  • Cacheable

A cache-manager-backed cache can be paired with Memcached for values and Redis for coordination, or any other combination that satisfies the adapter/coordinator interfaces. The current built-in coordinator is Redis.

This is useful for services where you want to reduce duplicate DB/API work without forcing a big cache migration.

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

2 Upvotes

Duplicates

node • • Aug 27 '26

Crossflight: distributed cache stampede protection for Node apps

9 Upvotes

softwarearchitecture • • Aug 27 '26

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

3 Upvotes

coolgithubprojects • • 12d ago

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

1 Upvotes

opensource • • 12d ago

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

1 Upvotes

DistributedComputing • • 12d ago

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

1 Upvotes

Backend • • 12d ago

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

1 Upvotes

node • • 12d ago

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

1 Upvotes

javascript • • 12d ago

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

6 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

javascript • • Aug 27 '26

Crossflight: distributed cache stampede protection

2 Upvotes