3 ms·
I use Python + Redis using Hotqueue (http://pypi.python.org/pypi/hotqueue/0.2.1 http://pypi.python.org/pypi/hotqueue/0.2.1) for all the processing of flurbils.c
by unoti 16y ago
I use Python + Redis using Hotqueue (http://pypi.python.org/pypi/hotqueue/0.2.1 http://pypi.python.org/pypi/hotqueue/0.2.1) for all the processing of flurbils.com. All of the scoring for the game comes in from Second Life via http requests that are handed off immediately to a background handler via Redis. It's enabled me to seriously level out load spikes, and enabled me to push off having to upgrade the capacity of my servers as a result.
I've used other libraries for doing this in the past. Being able to switch backends using some other library would be nice, I suppose, but there is literally only about 6 lines of code in the software that is specific to hotqueue.
This has been working very well in production, and I'm very pleased with it. Using background processing to level out load peaks, plus migrating to Apache worker MPM has enabled me to handle loads on the same hardware that I wouldn't be able to touch using the basic normal approach.
Starting off using Redis as a queue is a great way to start with Redis, because everybody can use a queue for something. Then once Redis is running in production, it becomes far easier to start using it for more and more things.