This week we return to comparing the http4k (https://http4k.org) and ktor (https://ktor.io/) http libraries, specifically looking at throughput in requests per second.
I’d like to be able to stay “stay tuned to see which is faster”; but the truth is that, on my laptop at least, both seem to be able to route and process requests faster than the operating system is able to accept them.
So instead, stay tuned to see some interesting benchmarking code that should come in handy next week.
In this episode
00:00:32 One final Gradle puzzler
00:01:30 Where are we with benchmarks?
00:03:00 Fix retrying fatal errors forever
00:05:23 Accounting for HotSpot
00:07:10 Are we running too fast?
00:07:50 Run the same benchmark against ktor
00:13:22 Errors prevent us comparing http4k and ktor throughput
00:14:49 Back off to reduce errors
00:18:01 But that really doesn't seem to be enough
This video is in a playlist of Ktor episodes ( • Ktor ) and http4k ( • http4k )
If you like this video, you’ll probably like my book Java to Kotlin, A Refactoring Guidebook (http://java-to-kotlin.dev). It's about far more than just the syntax differences between the languages - it shows how to upgrade your thinking to a more functional style.
Смотрите видео Benchmarking Ktor and http4k онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Pairing with Duncan 21 Июнь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 828 раз и оно понравилось 48 людям.