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
zonghua
V2EX  ›  Python

Pinterest 是怎么用 Django 支撑起仅次于 Twitter 的访问流量

  •  
  •   zonghua · 2016-03-21 11:38:45 +08:00 · 2430 次点击
    这是一个创建于 2963 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Paul Sciarra, co-founder:

    We use python + heavily-modified Django at the application layer. Tornado and (very selectively) node.js as web-servers. Memcached and membase / redis for object- and logical-caching, respectively. RabbitMQ as a message queue. Nginx, HAproxy and Varnish for static-delivery and load-balancing. Persistent data storage using MySQL. MrJob on EMR for map-reduce.

    这里的 Tornado and (very selectively) node.js as web-servers 是指的怎么样的构造? Node.js 是怎么和 Django 沟通起来?

    domty
        1
    domty  
       2016-03-21 12:05:18 +08:00
    沟通靠的是数据和协议吧
    node 本身的特性不是支持高 IO ,但是对于复杂的后台逻辑的比较苦手吗,但是对于数据的即时传递效果比较好,做做一些实时性比较强的应用应该很合适。
    zonghua
        2
    zonghua  
    OP
       2016-03-21 14:18:40 +08:00 via iPhone
    @domty 难道是用 node.js 实现的组件取代 wsgi ?
    domty
        3
    domty  
       2016-03-21 19:03:13 +08:00
    @zonghua
    Tornado and (very selectively) node.js as web-servers.
    应该是发布容器或者 web 服务器。
    zonghua
        4
    zonghua  
    OP
       2016-03-21 21:30:39 +08:00
    @domty Nginx 就做静态服务器和负载均衡?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2308 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:17 · PVG 17:17 · LAX 02:17 · JFK 05:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.