What's even better is the code is in very clean C, and the relatively small size (~10k LOC) makes it easy to read and study. There are plenty of clients (C, Python, Ruby, PHP, etc) which makes this a nice drop in to almost anywhere in your stack.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://redis.googlecode.com/files/redis-1.2.2.tar.gz | |
tar -zxvf redis-1.2.2.tar.gz | |
cd redis-1.2.2 | |
make && ./redis-server |
I was thinking of implementing something like GFS with it - using Redis to look up the location of a file on a NFS server. For scaling horizontally, Redis supports master/slave replication out of the box. Add a consistent hash on a filename with one master server for writes, and multiple slaves for reads and you're in business.
This is just the tip of the iceberg. There are some many uses for Redis. I look forward to working more with it!
No comments:
Post a Comment