Ktor streaming response backpressure and memory exhaustion risks
When serving large datasets using call.respondStream or ByteReadChannel , the goal is to maintain a low memory footprint by avoiding loading the entire collection into memory. While Ktor provides primitives to stream data in chunks, the interaction between the data source and the client-side consumption rate remains complex. Specifically, if a HTTP client co