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

Python 2018 rpc 最佳实践是什么

  •  
  •   luw2007 · May 30, 2018 · 3253 views
    This topic created in 2929 days ago, the information mentioned may be changed or developed.
    python 基本都是 http + json,一旦 qps 上来真心抗不住。那么换成什么 rpc 好呢?
    4 replies    2018-06-02 19:36:24 +08:00
    nbboy
        1
    nbboy  
       May 31, 2018   ❤️ 1
    能抗多少 qps 有测试过吗?毕竟这种方案简单。
    luw2007
        2
    luw2007  
    OP
       Jun 1, 2018
    @nbboy nginx <-> tornado <-> redis 本身性能就有限,线上业务在流量翻多倍的情况下,会出现服务器 cpu 抗不住的问题。大部分请求都是内部调用。所以考虑 rpc 异步来减少 cpu 压力。
    luw2007
        4
    luw2007  
    OP
       Jun 2, 2018
    @enrolls 没看到 rpc 相关的东西。 调度? 数据结构?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1137 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 18:04 · PVG 02:04 · LAX 11:04 · JFK 14:04
    ♥ Do have faith in what you're doing.