Redis: All content tagged as Redis in NoSQL databases and polyglot persistence
Monday, 2 April 2012
Another Redis-Based Queue for Python: Introducing RQ
Vincent Driessen creates RQ as an alternative to Celery inspired by Resque:
I wanted a solution that was lightweight, easy to adopt, and easy to grasp. So I devised a simple queueing library for Python, and dubbed it RQ.
Welcome to the world of a thousand Redis-based queues.
Original title and link: Another Redis-Based Queue for Python: Introducing RQ (©myNoSQL)
Automatic Async and Sync Pipelining of Redis Commands
The nuts and bolts of implementing synchronous and asynchronous Redis clients supporting pipelining:
In this post I describe different approaches for client-libraries to implement Redis protocol pipelining. I will cover synchronous as well as asynchronous (event-driven) techniques and discuss their respective pros and cons: Synchronous client APIs require the library user to explicitly pipeline commands, potentially yielding optimal protocol performance, but at the cost of additional bookkeeping when handling replies. Asynchronous client libraries, on the other hand, allow automatic pipelining, while being less efficient in their pipelining behavior.
Original title and link: Automatic Async and Sync Pipelining of Redis Commands (©myNoSQL)
Tuesday, 27 March 2012
NoSQL Databases Adoption in Numbers
Source of data is Jaspersoft NoSQL connectors downloads. RedMonk published a graphic and an analysis and Klint Finley followed up with job trends:

Couple of things I don’t see mentioned in the RedMonk post:
-
if and how data has been normalized based on each connector availability
According to the post data has been collected between Jan.2011-Mar.2012 and I think that not all connectors have been available since the beginning of the period.
-
if and how marketing pushes for each connectors have been weighed in
Announcing the Hadoop connector at an event with 2000 attendees or the MongoDB connector at an event with 800 attendeed could definitely influence the results (nb: keep in mind that the largest number is less than 7000, thus 200-500 downloads triggered by such an event have a significant impact)
-
Redis and VoltDB are mostly OLTP only databases
Original title and link: NoSQL Databases Adoption in Numbers (©myNoSQL)
Monday, 26 March 2012
Redis Persistence Demystified
TL;DR:
even if Redis is an in memory database it offers good durability compared to other on disk databases.
But you must read the post for all the nitty-gritty.
Original title and link: Redis Persistence Demystified (©myNoSQL)
via: http://antirez.com/post/redis-persistence-demystified.html
Wednesday, 21 March 2012
In-Memory Key-Value Store in C, Go and Python
Graham King:
On paternity leave for my second child, I found myself writing an in-memory hashmap (a poor-man’s memcached), in Go, Python and C. I was wondering how hard it would be to replace memcached, if we wanted to do something unusual with our key-value store. I also wanted to compare the languages, and, well, I get bored easily!
Actually it’s very easy and doesn’t require any coding at all. Plus you’ll get a bit more than what you’d expect.
Original title and link: In-Memory Key-Value Store in C, Go and Python (©myNoSQL)
via: http://www.darkcoding.net/software/in-memory-key-value-store-in-c-go-and-python/
Tuesday, 20 March 2012
Reinventing Reliable Queues With Redis Lua Scripting
Salvatore Sanfilippo:
Redis 2.6 support for Lua scripting opens a lot of possibilities, basically because you can do atomically a lot of things that before required to pay a big performance hit.
In this blog post I want to show a pattern based on the scripting capability that can be used to implement reliable queues.
I know I might upset a few people, but this feels like reinventing some wheels. Having server-side scripting support in Redis makes it a possible good fit for many new use cases, so I don’t think there’s a need to reinvent solutions that can already address an even wider range of scenarios.
Original title and link: Reinventing Reliable Queues With Redis Lua Scripting (©myNoSQL)
Friday, 16 March 2012
Redis: Hell Yeah Take 2
Redmonk’s James Gavernor in a sort of a documented Redis? Hell yeah!:

Indeed mentions on HackerNews is just a sign of breaking the awareness threshold. But with awareness comes adoption. The only thing that remains to be established is the relevance of the HN community.
Original title and link: Redis: Hell Yeah Take 2 (©myNoSQL)
Thursday, 15 March 2012
Redis Lua Scripting Is Badass
TJ Holowaychuk:
Lua is a great fit for Redis, they have similar philosophies, being simple, small, and fast.
Hell yeah! I almost can feel it!
Original title and link: Redis Lua Scripting Is Badass (©myNoSQL)
via: http://tjholowaychuk.com/post/19321054250/redis-lua-scripting-is-badass
Wednesday, 14 March 2012
NoSQL Security: Installing and Hardening Redis
Many useful pieces of advice—from the very basics to renaming commands—in Marc Wickenden post about securing Redis:
Redis doesn’t have much in the way of security so I knew that anyone who managed to pop the box could theoretically connect to the local Redis instance and mess around. I’ll take you through the steps I took to install and harden Redis, on a Debian Squeeze GNU/Linux box.
Archived.
Original title and link: NoSQL Security: Installing and Hardening Redis (©myNoSQL)
via: http://blog.7elements.co.uk/2012/03/installing-and-hardening-redis.html
Monday, 12 March 2012
Is Memcached a Dinosaur in Comparison to Redis?
Interesting comments on StackOverflow:
So, honestly - Is memcache really that old dinousaur that is a bad choice from a performance perspective when compared to this newcomer called Redis?
Here’s mine: feature-wise Redis has already overpasssed Memcached in almost all aspects. Redis 3.0 will bring Redis Cluster a distributed implementation of a subset of Redis standalone—check this for an detailed explanation of Redis Cluster. Production-wise though, Memcached will not be replaced so easy as so many services rely on it for quite some time.
Original title and link: Is Memcached a Dinosaur in Comparison to Redis? (©myNoSQL)
via: http://stackoverflow.com/questions/2873249/is-memcached-a-dinosaur-in-comparison-to-redis
Redis and MongoDB Can Work Together to Perform Distinct, Complex Queries
Cody Powell:
It turns out that, technically, I was correct. I could use MongoDB as a key-value store for caching, much like I could use my Mazda 3 as an amphibious assault vehicle. In practice, neither would be optimized for those use cases.
Use the same principle if you have to build MongoDB work queues.
Original title and link: Redis and MongoDB Can Work Together to Perform Distinct, Complex Queries (©myNoSQL)
via: http://architects.dzone.com/articles/redis-and-mongodb-can-work?mz=36885-nosql
Thursday, 8 March 2012
Redis Guide: What Each Redis Data Type Should Be Used For
Salvatore Sanfilippo offers a very detailed answer to this question on StackOverflow. Just to give you a glimpse.
- strings:
- to avoid converting your already encoded data (JSON, HTML)
- bitmaps and in general random access arrays of bytes
- lists:
- when you are likely to touch only the extremes of the list: near tail, or near head
- capped collection of N items where usually we access just the top or bottom items, or when N is small
- sets:
- to check for existence or size of the collection in a very fast way
- random elements peeking or popping
- to represent relations (nb: sotrted sets might be more interesting)
- hashes:
- to represent objects, composed of fields and values
- to represent linked data structures, using references
- sorted sets:
- maintain ordered lists of unique elements
- describe relations
- paginate the list of items and to remember the ordering
- priority queues
In the list of top 5 mistakes to avoid when using Redis, I’ve listed not knowing all data types and their corresponding operations as being the top one. So I expect the examples above to come in very handy for a lot of new Redis users.
Original title and link: Redis Guide: What Each Redis Data Type Should Be Used For (©myNoSQL)
Most Popular Articles
- Translate SQL to MongoDB MapReduce
- Tutorial: Getting Started With Cassandra
- CouchDB vs MongoDB: An attempt for a More Informed Comparison
- Cassandra @ Twitter: An Interview with Ryan King
- A Couple of Nice GUI Tools for MongoDB
- NoSQL benchmarks and performance evaluations
- Ehcache: Distributed Cache or NoSQL Store?
- Document Databases Compared: CouchDB, MongoDB, RavenDB
- Quick Review of Existing Graph Databases
- NoSQL Data Modeling