# How many threads does your network client use?

DevFeed: [How many threads does your network client use?](<https://devfeed.tech/articles/how-many-threads-does-your-network-client-use-39355.md>)

Original publisher: [Read original article](<https://kt.academy/article/network_client_threads>)

Published: 2024-05-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/topics/kotlin-coroutines.md>), [Ktor](<https://devfeed.tech/topics/ktor.md>), [Spring Boot](<https://devfeed.tech/topics/spring-boot.md>), [client](<https://devfeed.tech/topics/client.md>), [Network](<https://devfeed.tech/topics/network.md>)

Tags: [coroutine](<https://devfeed.tech/tags/coroutine.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [ktor](<https://devfeed.tech/tags/ktor.md>), [network](<https://devfeed.tech/tags/network.md>), [spring-boot](<https://devfeed.tech/tags/spring-boot.md>), [threads](<https://devfeed.tech/tags/threads.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

## AI overview

This article examines how network clients can consume more threads than expected in Kotlin applications. It explains the thread and memory costs of blocking network requests, contrasts them with suspended Kotlin coroutines, and discusses checking client behavior in Ktor and Spring Boot applications.

## Source excerpt

Many popular network clients consume way more threads than you might expect. Let's overview the problem and find a solution.