V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2018-09-20 10:00:55 +08:00 · 3957 次点击
    这是一个创建于 2016 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1 条回复    2018-09-20 10:15:55 +08:00
    xiaoshenke
        1
    xiaoshenke  
       2018-09-20 10:15:55 +08:00   ❤️ 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 只是基于这个框架做的一个插件。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5298 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 09:34 · PVG 17:34 · LAX 02:34 · JFK 05:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.