All Questions
4 questions
2
votes
0
answers
400
views
Redis lua - game leaderboard "overview"
Here is the code I invoke as Lua script in Redis. I use Redis sorted set to store game scores. This function is used to get some kind of overview of leaderboard. It returns id, score and rank of:
...
7
votes
2
answers
970
views
Sum-based sliding rate limiting with Redis and Lua
As I'm new to Redis, I would like to get a review / improvement suggestions from Redis / Lua experts on the following problem and the solution I have found so far.
Problem
The context is: an e-...
11
votes
1
answer
2k
views
Redis rate limiting in Lua
I've implemented a rate limiter for redis in Lua, and I'm wondering if anyone has any suggestions that might improve the performance.
An example use:
...
6
votes
1
answer
302
views
Iterating over JSON docs
This Lua code runs in redis. It iterates over some JSON docs, and applies some logic based on the user (if any) making the request. I'm sure there's a lot I can improve here.
...