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

gevent.pywsgi vs gunicorn/uWSGI

  •  
  •   likang ·
    likang · Dec 16, 2016 · 3357 views
    This topic created in 3461 days ago, the information mentioned may be changed or developed.
    大家用 gevent 的时候,为什么很少听说直接用 gevent 内置的 WSGI 服务器,都是用 gunicorn 或者 uWSGI ?区别大吗?还是仅仅是习惯而已?
    8 replies    2016-12-17 09:22:55 +08:00
    ctftemp
        1
    ctftemp  
       Dec 16, 2016 via Android
    gevent 也能开发 web 服务么?
    clino
        2
    clino  
       Dec 16, 2016
    uwsgi 也可以跑 gevent,而且 uwsgi 有各种功能是内置 wsgi 服务器木有的,去看看 uwsgi 的选项有多少...
    hh4062703
        3
    hh4062703  
       Dec 16, 2016
    @ctftemp 使用 gunicorn 的 gevent worker
    likang
        4
    likang  
    OP
       Dec 16, 2016
    @ctftemp gevent 内置了一个 WSGI 的 server
    likang
        5
    likang  
    OP
       Dec 16, 2016
    @clino 嗯 内置的 server 功能比较基础。所以其实还是性能和个性化设置的需要。
    bearqq
        6
    bearqq  
       Dec 16, 2016 via Android   ❤️ 1
    有用这个开发代理服务器的,我拿来改了改,单机用性能可以了,具体没测
    ctftemp
        7
    ctftemp  
       Dec 17, 2016 via Android
    @likang 一般 web 框架都自带了 wsgi server ,如果不想用 gunicorn ,那用 web 框架自带的 wsgi server 不是更方便?干嘛非用 gevent 的,他又不是主要做这个的。
    clino
        8
    clino  
       Dec 17, 2016
    @likang 其实我用 gevent 的 wsgi server 跑过一些服务,后来发现 uwsgi 能跑就都用 uwsgi 跑了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3434 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 11:44 · PVG 19:44 · LAX 04:44 · JFK 07:44
    ♥ Do have faith in what you're doing.