https://kotlinlang.org logo
#feed
Title
# feed
t

tipsy

01/01/2020, 3:34 PM
👍🏼 5
s

suresh

01/01/2020, 7:03 PM
Thanks update. https://github.com/tipsy/javalin/blob/master/src/main/java/io/javalin/http/util/RateLimitUtil.kt#L22 - Just curious, isnt it better to use a single ScheduledThreadPoolExecutor to scheule all taks instead of creating new executor for each RateLimiter? With the current approach if we have 10 handlers using RateLimiter, there would be 10 thread running all the time.
t

tipsy

01/01/2020, 7:47 PM
There should only be one per interval
Not one per handler
2 Views