I don't know if my approach is wrong but I wrote a requester + ratelimiter for http requests but the problems is it is pretty CPU intense on my Raspberryp Pi I get like 100% CPU and on Windows (of course better cpu) also like 10%: https://www.toptal.com/developers/hastebin/vaxayabohi.kotlin
Jan
12/30/2021, 3:59 PM
Using ktor btw
Jan
12/30/2021, 4:51 PM
ok of course the problem is the while loop trying to set the delay to 1s or something helps. But I'm not sure if this can be critical when its taking too long
Jan
12/30/2021, 5:01 PM
nvm when a request is queued the cpu usage still is very high