GraphQL-Gate
GraphQL-Gate copied to clipboard
Experiment with redis functions to do cache side computations of ratelimiting computations
Our token bucket algo is currently getting data from the redis cache and doing computations server side. 'Redis Functions' allow the redis store to carry out computations on the redis's side, which possibly decreases the number of requests made to speed up the algorithm. Try this out to see if it actually has any performance differences.
see Lua scripting
Consider either SortedSet or List for use in SlidingWindowLog. Will most likely require a lua script to be purely server side.
Hashes may be useful for remaining limiters and may not require a lua script