limiter
limiter copied to clipboard
Simple Ruby rate limiting mechanism.
### Problem Theory I recently faced an issue related to the specified rate limit getting exceeded on certain occasions. Upon inspection of the code, I found a loophole which could...
Hello, Upon reviewing the documentation, I noticed there is no mention of synchronizing rate limits across multiple servers. My question pertains to implementing rate limiting within an application running in...
Constructing `balanced_ring` using `Array.new(&block)` saves us a range and a few array allocations. ### Profiling (memory_profiler) ``` report = MemoryProfiler.report do Limiter::RateQueue.new(500, interval: 1, balanced: true) end report.pretty_print ``` ####...