推荐学习书目
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 · Mar 21, 2016 · 2934 views
    This topic created in 3781 days ago, the information mentioned may be changed or developed.

    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  
       Mar 21, 2016
    沟通靠的是数据和协议吧
    node 本身的特性不是支持高 IO ,但是对于复杂的后台逻辑的比较苦手吗,但是对于数据的即时传递效果比较好,做做一些实时性比较强的应用应该很合适。
    zonghua
        2
    zonghua  
    OP
       Mar 21, 2016 via iPhone
    @domty 难道是用 node.js 实现的组件取代 wsgi ?
    domty
        3
    domty  
       Mar 21, 2016
    @zonghua
    Tornado and (very selectively) node.js as web-servers.
    应该是发布容器或者 web 服务器。
    zonghua
        4
    zonghua  
    OP
       Mar 21, 2016
    @domty Nginx 就做静态服务器和负载均衡?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2807 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:21 · PVG 23:21 · LAX 08:21 · JFK 11:21
    ♥ Do have faith in what you're doing.