Re:A quick look at the Redis source code
by jeremiep on Tuesday October 15, 2013 @09:17AM
(#6553031)
It's actually a quick tutorial describing how to add a new command to Redis, not an actual analysis of the source code as I expected.
[ Parent
| on HN ]
You might be interested in one of these articles:
http://pauladamsmith.com/articles/redis-under-the-hood.html
http://blog.togo.io/how-to/adding-interval-sets-to-redis
They have both been discussed before though.
Re:A quick look at the Redis source code
by HeyChinaski on Tuesday October 15, 2013 @12:00PM
(#6554061)
Ah yes, I remember the interval sets article. The first post is a lot more in depth than mine. Both great links, thanks.
Re:A quick look at the Redis source code
by HeyChinaski on Tuesday October 15, 2013 @09:29AM
(#6553083)
Yeah, it's a pretty shallow introduction. I'd like to write more articles on the Redis code. The sorted set skiplist stuff is really interesting.
The entire implementation of sorted sets is really interesting, with a dual implementation of ziplists and skiplists being used depending on the amount of elements in the list. I've been meaning to write bit more about Redis internals lately; maybe I'll start on that in my commute hours.
I've got a couple of general articles on adding a command and adding a datatype to Redis at http://starkiller.net, but I don't get too into existing code. I'd be interested in writing a bit more about the other data structures as well as the multiple strategies used for EXPIRE (which recently changed I believe).