推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
ALLROBOT
V2EX  ›  Python

你愿意用哪个异步库? trio-tractor、aiomultiprocess 或原生库?

  •  
  •   ALLROBOT · Jun 6, 2024 · 5269 views
    This topic created in 841 days ago, the information mentioned may be changed or developed.
    基于多进程运行异步任务,大概是每个进程运行一个异步事件循环


    github:
    https://github.com/omnilib/aiomultiprocess
    https://github.com/goodboy/tractor
    等等

    总之免得自己造轮子,网上找的一些轮子库

    用 Python 写多进程异步的,感觉哪个异步库用起来最舒服?
    3 replies  •  2024-06-17 15:02:54 +08:00
    baidu2022
        1
    baidu2022  
       Jun 6, 2024 via iPhone
    python 很多异步是多线程模拟的,



    因此直接换 go 了,异步操作丢给语言本身解决
    ALLROBOT
        2
    ALLROBOT  
    OP
       Jun 6, 2024
    @baidu2022 #1 如果项目是纯 Python 写的,用别的语言重构太麻烦
    wryyyyyyyyyyyy
        3
    wryyyyyyyyyyyy  
       Jun 17, 2024
    哦牛的,还有这种东西,前几天看到就好了,公司 wincc 版本升级,导致读不到数据就崩溃,研究 1.5 天把原来单线程跑的改成原生的进程池了,但感觉开销有点大。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2501 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:37 · PVG 23:37 · LAX 08:37 · JFK 11:37
    ♥ Do have faith in what you're doing.