Is there a library for bucket-based per-client rat...
# ktor
m
Is there a library for bucket-based per-client ratelimiting? I've only found ones that have a global configuration rather than allowing specifying it per bucket (if it even had buckets)
r
I have successfully implemented per-IP bucket rate limiting with Bucket4j (https://github.com/vladimir-bukhtoyarov/bucket4j). Async support works nice with coroutines (I've used it with Spring Webflux not Ktor, though).
m
Any clue how I'd add this to ktor easily?