Introducing LazyLayers 9.0. Multi-layer caching, intelligent batching and outage recovery.

Explore what’s new

LazyLayers RoadmapUpdated

What we’re building next.

No dates. An item ships when it has tests, a benchmark and documentation, and we publish where it loses next to where it wins.

Roadmap board

Shipped in 9.0

10

On npm today.

  1. Any number of layers

    Hot memory, a compressed warm tier, Redis, Cloudflare KV and stores you write, each with its own policy, limits, deadline and breaker.

  2. Intelligent batching

    Reads, writes and deletes made together run as one Lua script per 64 keys: 500 keys, 8 script calls.

  3. Your own Lua

    cache.runScript runs named scripts on cache keys, fenced against loads in flight and synced to every server.

  4. Outage recovery

    Missed invalidations resent, missed writes repaired, and a Redis Streams outbox that replays what peers missed.

  5. Fleet-tested

    Six servers in Docker under a Redis freeze, Sentinel and Cluster failovers and a crashed lease holder.

  6. Fair loads across tenants

    Waiting loads served round-robin per tenant, with per-tenant caps.

  7. Adaptive TTL and memory sync

    TTLs that follow how often a key changes, and memory checked against the shared layer after a bus gap.

  8. Off-thread compression and LFU

    Large values compressed on the libuv pool, and LFU joins S3-FIFO, SIEVE, LRU and FIFO.

  9. Byte limits for the Workers L1

    The per-isolate cache is bounded in bytes as well as entries: 32 MiB by default.

  10. A read that races a write returns a value

    A load whose lease another server took over returns its value instead of throwing.

Next

4

Planned. No dates.

  1. Batching on Redis Cluster

    Batch scripts group keys by hash slot, so Cluster gets the same round-trip savings as standalone Redis.

  2. OpenTelemetry package

    Traces and metrics through OpenTelemetry, next to the Prometheus endpoint and diagnostics_channel.

  3. Shorter failover windows

    Fewer stale reads while a Sentinel or Cluster failover is in progress.

  4. Benchmarks over a real network

    Many physical machines, rolling deploys and hours-long runs, beyond one host.

Exploring

4

Kept only if it measures better.

  1. More eviction policies

    CLOCK, segmented LRU and W-TinyLFU, kept only if they win on reproducible traces.

  2. More stores

    Additional shared stores, each passing the conformance kit.

  3. Framework recipes

    Ready-made setups for NestJS, Next.js route handlers, Express and Fastify.

  4. An interactive policy visual

    Watch S3-FIFO, LFU, SIEVE and LRU handle the same trace, side by side.

Have a use case?

Tell us what you need.

Open an issue with your workload: what you cache, how many instances, which store and bus. Real workloads decide what moves up.