Lua and Sidekiq Pro

2013-08-10

I’ve started working with Redis 2.6’s embedded Lua support to power new features for Sidekiq Pro. I think there’s a rich vein of functionality to be tapped here for several reasons:

There’s a caveat of course: Redis is single-threaded so executing a user-defined Lua script can add significant latency to other Redis operations if you aren’t careful with performance. O(n^2) algorithms are definitely a no-no and minimizing O(n) algorithms is still a good idea if you want your Redis server to continue to perform well. Nevertheless I think Lua has real potential for developing some cool new features.

It’s possible some Lua features will go into Sidekiq but right now everything I’m planning will be Sidekiq Pro only.