3 ms·
People are happily running Rust servers in production using thousands of concurrent threads per second.
by pcwalton 7y ago
People are happily running Rust servers in production using thousands of concurrent threads per second.
- lossolo 7y agoI don't doubt that but apparently we have different definitions of a lot. Additionally latency and hardware also matters, I can say that C is doing n things a second while PHP is doing the same but C is running on EC2 micro instance and PHP is running on 2x Intel Xeon Platinum 9282 dedicated machine. C10K problem was not solved by 1:1 model and this is an old problem. C100K+ is what I see in some of production systems I work on.
- pcwalton 7y agoOK, but, I mean, we've done this experiment, and we found that M:N in Rust was slower than 1:1.
- ori_b 7y agoThousands isn't much.
- pcwalton 7y agoYou can scale up to tens of thousands of threads. But if that isn't enough for your application, then you can use async! M:N threading was slower than 1:1 in Rust.
- steveklabnik 7y agoAt the same time, many others do need more power; that’s why async/await is asked for so often.