V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 5475 views
    This topic created in 3004 days ago, the information mentioned may be changed or developed.

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

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