Hacker News new | ask | show | jobs
Show HN: Zcached, in-memory key-value cache wire-compatible with memcached (source.static.kevinlin.info)
5 points by LINKIWI 1275 days ago
zcached is an in-memory key-value cache exposing a memcached ASCII protocol-compatible interface, built on pluggable cache engines like Ristretto and freecache [0].

It's not performance-competitive with memcached, especially at higher thread counts. That said, it achieves about 1.1M ops/s, but at significantly higher P99 and P999 latency (as measured by memtier). See [1] and [2] for benchmark results from my 7950x-based workstation.

Disclaimer: This is a hobby project created for fun while hacking over the holidays. zcached is not a commercial product and never will be. Don't use it in production; consider this a technology demo more than anything.

I don't expect the source code to build outside of my environment, but for those interested in playing with it, binary artifacts are available at [3]. Try `zcached --address tcp:localhost:11211`.

[0] https://github.com/dgraph-io/ristretto, https://github.com/coocood/freecache

[1] memcached, 16 worker threads: https://pastebin.com/raw/WHmk08ZG

[2] zcached: https://pastebin.com/raw/GjpwpMaD

[3] https://artifacts.kevinlin.info/zcached/latest/release.tar.g...