7

请推荐一门能精确控制大量并发并行的编程语言或解决方案 - OSCHINA

 3 years ago
source link: https://www.oschina.net/question/4460257_2320428
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

请推荐一门能精确控制大量并发并行的编程语言或解决方案

大呜呼 发布于 12/14 17:19
阅读 1K+

需求是短时间内发送大量 GET 和 POST 请求,支持并行,要有极致的效率,慢一毫秒都无法接受的那种。

我现在已经用 Python 的异步方式实现了一个小 Demo,用到了 Trio 和 HTTPX 这两个包。但是速度并不满意。虽然能够并发,但是随着并行数量越来越多,提升硬件和带宽并不能提升效率。毕竟异步仍然是单核单线程。

我也搜了相关的内容,比如用 Go 语言试试。但是时间有限,比较着急,希望熟悉的大佬能指点一下,谢谢。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK