Relative Content

Tag Archive for redis

2 Servers 1 Database – Can I use Redis?

Ok I have a couple of questions here. First let me give you some background information. I’m starting a project where I have a node.js server running my application and my website running on another normal server. My application will allow multiple users simultaneous connections and updates to the database so Redis seemed like a good fit there because of its speed and atomic functions.

Nested sets in Redis?

Let’s say I want to implement a leaderboard for a coding competition backed by Redis. And the data structure I would to maintain is competitionId -> userId -> set<problemId>.

How to implement a message queue over Redis?

Why Redis for queuing? I’m under the impression that Redis can make a good candidate for implementing a queueing system. Up until this point we’ve been using our MySQL database with polling, or RabbitMQ. With RabbitMQ we’ve had many problems – the client libraries are very poor and buggy and we’d like not to invest […]