Running Multithreaded Redis using KeyDB and Dynomite

Image for post
Image for post

Keys is the default oss standard for K/V store for many use cases and solutions. When you need run low latency, high throughput IN Memory Persistence — Dynomite is your solution. I always wanted to have multi-thread support in redis as Memcached has. Now someone made it and call it KeyDB. The best thing is the fact that this is done supporting the redis RESP protocol, so all your tools, scripts and code using redis protocol directly still works. Another killer feature in KeyDB is the support for FLASH storage, only available on Redis Enterprise. KeyDB also supports backup to S3. For this post, I will show how to build and run KeyDB which is dead simple and also how to use it with Dynomite like it was Redis.

KeyDB Benchmarks

Image for post
Image for post

As you can see on the KeyDB benchmarks, KeyDB does 1.5x less latency and 50% more throughput. These numbers are pretty impressive. The best part is the fact that is all transparent.

Running KeyDB

Running KeyDB with Dynomite

See the Results

KeyDB running

Image for post
Image for post

Dynomite Running

Image for post
Image for post

redis-cli (via dynomite port 8102)

Image for post
Image for post

Other Dynomite related Posts

Cheers,

Diego Pacheco

Originally published at diego-pacheco.blogspot.com.

Written by

Brazilian, Software Architect, SWE(Java, Scala, Rust, Go) SOA & DevOps expert, Author. Working with EKS/K8S. diegopacheco.github.io (Opinions on my own)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store