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

Tomcat 和 uwsgi 实现的功能是不是一样的

  •  
  •   mili8908 · Sep 20, 2018 · 5219 views
    This topic created in 2927 days ago, the information mentioned may be changed or developed.
    1 replies  •  2018-09-20 10:15:55 +08:00
    xiaoshenke
        1
    xiaoshenke  
       Sep 20, 2018   ❤️ 1
    在接受和转发的容器意义上,两者很相似。

    tomcat:实现的协议更多,http 和 tcp 都支持。tomcat 还实现了 jsp 解析器。也就是 jsp 和 java 代码的互相转化。
    uwsgi:只实现了 http 协议。

    wiki https://en.wikipedia.org/wiki/Apache_Tomcat。

    这么说吧,tomcat 实现的这一套都是基于 sun 公司的 servlet 协议来做的,而 uwsgi 做的事情,其实更多的是基于 python 的特性做的一个 http 服务,也就是说 uwsgi 是一套框架,而它的 http 只是基于这个框架做的一个插件。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2422 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 10:21 · PVG 18:21 · LAX 03:21 · JFK 06:21
    ♥ Do have faith in what you're doing.