推荐学习书目
› 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
dandogn
V2EX  ›  Python

Flask 框架有没有什么好的异步处理组件,目前使用 Celery,感觉有很多坑

  •  
  •   dandogn · Feb 3, 2018 · 5915 views
    This topic created in 3201 days ago, the information mentioned may be changed or developed.

    例如 Celery 里面使用 Jpype 库,调用 Jar 包,就不行,会卡主。

    8 replies  •  2018-02-04 13:55:24 +08:00
    DonaidTrump
    DonaidTrump
    Feb 3, 2018 via iPhone
    1
    celery 已经是最好的了,没有之一
    okzpy9425
    okzpy9425
    Feb 3, 2018
    2
    有坑大部分情况都是因为对技术理解的不够。。celery 已经是 python 中最成熟的任务队列了把
    cz5424
    cz5424
    Feb 3, 2018 via Android
    3
    多看文档,就不会卡住
    lfzyx
    lfzyx
    Feb 3, 2018
    4
    歪个楼,既然异步可以用 celery 处理,那 asyncio 的使用场景是什么?
    julyclyde
    julyclyde
    Feb 3, 2018
    5
    和 flask 有啥关系??
    admirez
    admirez
    Feb 3, 2018
    6
    @lfzyx asyncio 是单个实例,celery 是分布式啊
    filosfino
    filosfino
    Feb 4, 2018 via iPhone
    7
    @lfzyx CPU 密集任务还是得上 celery
    matsuz
    matsuz
    Feb 4, 2018
    8
    @lfzyx Celery 是异步任务队列,asyncio 是异步 IO 库
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2586 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 11:13 · PVG 19:13 · LAX 03:13 · JFK 06:13
    ♥ Do have faith in what you're doing.