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

给 Python -RQ(Redis Queue)加上 gevent 支持

  •  
  •   gansteed ·
    jiajunhuang · Apr 22, 2019 · 2020 views
    This topic created in 2715 days ago, the information mentioned may be changed or developed.

    之前用 celery 的时候发现 celery 总是假死,后来切换到了 rq,发现非常好用。但是有一个问题,就是 rq 默认采用的是 fork 的模型,所以并发一上来,CPU 占用非常高,机器很可能就要挂掉。

    所以我们要给 rq 加上 gevent 支持,代码其实很简单,详见:

    https://jiajunhuang.com/articles/2019_04_18-python_rq_gevent.md.html

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   833 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 22:25 · PVG 06:25 · LAX 15:25 · JFK 18:25
    ♥ Do have faith in what you're doing.