https://kotlinlang.org logo
#ktor
Title
# ktor
n

natario1

02/14/2021, 1:12 PM
Hi! 👋 I'm using ktor client for the first time. Is there any built-in tool for request throttling? I'm hitting a server that only accepts up to 3 requests per second. I'd like to suspend until the request can be executed successfully. How would you go to implement this?
a

alexfu

02/14/2021, 1:53 PM
this may of be interest to you: https://github.com/mantono/ktor-rate-limiting
n

natario1

02/14/2021, 2:02 PM
I'm trying to do this on the client. But source code there should help, thanks!
18 Views