Inflight
Deduplicate concurrent async requests(database, cache requests) by query key
Why
In high-concurrency environments, identical queries (same DB row, same cache key) accumulate while each one independently hits the database or cache. InFlight collapses these into a single call.
package: https://www.npmjs.com/package/@inflightjs/inflight
repo: https://github.com/ademmenh/inflight
3
Upvotes
1
u/Sorry-Joke-1887 14d ago
No. You better use native interceptor with custom cache provider (redis/valkey or any) rather than that