Calls in RateLimitService can be externalized to a LUA script
Hi,
It shall be better off if calls to redis from RateLimitService.java can be combined in a LUA script. That way it shall be faster since redis will compile it once and is invoked via SHA code.
I have put the calls in a script, it is @ https://gist.github.com/hpirosha/8972921
Thanks, Hussain
Hi @hpirosha - we will definitely have a look at that. Thanks.
BTW: are you using the implementation in any of your projects (always happy to hear some good stories ;))?
Cheers,
No, Haven't used so far. Appreciate that you open sourced your work.
On Fri, Feb 14, 2014 at 3:08 AM, Maciej Lopacinski <[email protected]
wrote:
Hi @hpirosha https://github.com/hpirosha - we will definitely have a look at that. Thanks.
BTW: are you using the implementation in any of your projects (always happy to hear some good stories ;))?
Cheers,
Reply to this email directly or view it on GitHubhttps://github.com/hamsterready/redis-ratelimit/issues/2#issuecomment-35029170 .