Scalability of Boost.Asio

前端 未结 2 802
渐次进展
渐次进展 2021-01-05 13:07

I\'m curious how far others have pushed Boost.Asio in terms of scalability. I am writing an application that may use close to 1000 socket objects, a handful of acceptor obje

相关标签:
2条回答
  • 2021-01-05 13:41

    I've used boost asio with a client / server where the server has several hundreds of concurrent connections all day long. Each session does a lot of read/write operations for several hours each. I would recommend using the latest version of boost asio. I can't remember version 1.39 but I've had issues with older versions. The current version of boost asio seems stable.

    The software I'm talking about only runs on Windows I should mention as well though which differs from your situation.

    0 讨论(0)
  • 2021-01-05 13:43

    We are using 1.39 on several Linux flavors for timers, network (both TCP and UDP), serial (20+ lines, two of which run at 500 kbps), and inotify events, and while we don't have many socket connections, we do have a few hundred async timers at any time. They are in production and they work well, for us. If I were you, I'd make up a quick prototype and performance-test it.

    Boost 1.43 claims a number of Linux-specific performance improvements in ASIO, but I am yet to benchmark them for our product.

    0 讨论(0)
提交回复
热议问题