Should I write my own Redis?

1 points by ihucos ↗ HN
Hello,

there is an excellent library for golang which allows you to implement the redis server protocol: https://github.com/tidwall/redcon

I would like to put in the effort to implement most redis commands there and map them to SQL, so that all data can be saved inside a fine tuned sqlite.

Essentially if this is implemented we would have a database compatible to redis, the difference is that data is saved to disk and not to RAM.

Is there a use case for that? Do people want that? There is some interesting things that could be done with that but I am not sure if the world needs this.

4 comments

[ 3.0 ms ] story [ 22.6 ms ] thread
Usually people don't know is they really want something until it's in front of them. It's also easier to show off what it does that way.

  > If you build it, they will come.
Hahaha, well it would be a pity to code for months in a basement only to find out there is no use case.
> I would like to put in the effort to implement most redis commands there and map them to SQL, so that all data can be saved inside a fine tuned sqlite.

Maybe this is related to what you are looking for? https://launchpad.redis.com/project/reqlite

Hmm interesting. Yes, kind of related still different. It's a sqlite extension to query existing redis server data. Not a redis server itself. But interesting. Thanks for the link!