News for hackers. Stuff that matters.
Re:Go 1.18 by lanstin on Wednesday March 16, 2022 @01:19AM (#30695582)
The thing about channels is, while they might be slow for tight inner loop type compute code, it lets you scale across all the cores very linearly. And, given a channel to flow the work thru, you can manage the number of workers at each stage however you like - growing with more load, dropping work with more load, back pressure with more load. All concisely and explicitly. And a lot of network server things are classic producer/consumer things, so it’s great to have a solution for that where you get concurrency without any thread worries.
Re:Go 1.18 by bashery on Wednesday March 16, 2022 @09:04AM (#30698238)
+1