Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 C++ 中使用可以处理至少 100,000 个并发连接的 NIO 框架。我正在考虑使用 boost::asio,但我不知道它在多核系统上是否可以很好地扩展。有人有使用 boost:asio 和处理这么多连接的经验吗?
Boost ASIO 可能会在现代硬件上处理 10K 连接,但在性能方面,它是对 CPU 和内存资源的浪费。以下是一些替代方案:
我个人建议您使用libevent,因为它具有可移植性和相对较高的性能。