https://kotlinlang.org logo
#coroutines
Title
# coroutines
g

gotoOla

09/13/2018, 7:50 AM
Hi! I have a question about coroutines. Right now I’m looking into building a load/pressure-test tool and I am using the ktor http client to execute like 1000 concurrent request towards another service. So far this seems to work out pretty well but I wanted to get some input from here if there are any gotchas I should watch out for Right now I am just using the commonpool (at least in my code and if I understood it correctly ktor-client will do the same) and it feels like there should be some performance hit somewhere were I spawn like 1000 tcp-connections on only cores-1 threads?
w

withoutclass

09/13/2018, 5:36 PM
Is there any reason you’re not just using vegeta?https://github.com/tsenart/vegeta
3 Views