HA-store

Smart data fetching that just works

npm install ha-store

Coalescing

Multiple identical requests? We send just one. When your app asks for the same data simultaneously, we're smart enough to combine them. Less noise, less load, same results for everyone.

HA-store
GET /item/123
GET /item/123
GET /item/123
Buffering...

Batching

Why make 100 trips when you can make one? We collect requests over a tiny window and bundle them together. Your database gets one efficient query instead of a stampede. Configure the timing to match your needs.

Caching

Hot data stays fast. Using time-aware LRU, we keep your most-requested data instantly available. Cache hits are lightning quick. Cache misses? We fetch and learn. Works with in-memory or Redis.

HA-store Cache
Cache
Database
HIT - 2ms ⚡
MISS - 250ms