2 ms·
Thank you, it would be useful to show how to this properly. Answers: - we are not spawning a thread for each request The following means we are creating N th
by StreamBright 10y ago
Thank you, it would be useful to show how to this properly.
Answers:
- we are not spawning a thread for each request
The following means we are creating N threads and execute a loop in every one of them, unless I misunderstand Rust entirely.
for id in 0..NTHREADS {
let thread_tx = tx.clone();
thread::spawn(move || { } ....
- I am not sure what coould I do about the standard channel library
- Doing a print at the very end once, the impact on performance is negligible
- keep alive used to be broken with hyper and I am not only looking for keepalive but pipelinening as well. Let me know if you are aware of a HTTP client in Rust that can do both