Story Details

  • Show HN: A bi-directional, persisted KV store that is faster than Redis

    Posted: 2025-03-17 12:35:16

    HPKV is a new key-value store boasting faster performance than Redis, achieved through a novel lock-free B+ tree implementation. It's bi-directional, allowing efficient retrieval by both key and value, and offers persistence to disk. Designed for embedded and server-side use cases, HPKV supports multiple languages (C, C++, Python, Java, Go, and JavaScript) and provides various features like range scans, prefix scans, and TTL. It's available under the Apache 2.0 license, promoting open-source contribution and adoption.

    Summary of Comments ( 9 )
    https://news.ycombinator.com/item?id=43387834

    Hacker News users discussed the performance claims of hpkv, questioning the benchmark methodology and the choice of Redis as a comparison point. Several commenters pointed out that using redis-benchmark with a pipeline size of 1 is unfair to Redis, significantly hindering its performance. Others suggested alternative benchmarking tools and emphasized the importance of real-world workload simulations. The lack of detail about hpkv's persistence mechanism and data safety guarantees also drew scrutiny. Some expressed interest in the project but desired more information about its architecture and use cases. A few users pointed out potential bugs in the benchmarking script itself, further questioning the validity of the presented results.