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

Python 2018 rpc 最佳实践是什么

  •  
  •   luw2007 · 2018-05-30 13:14:48 +08:00 · 2288 次点击
    这是一个创建于 2129 天前的主题,其中的信息可能已经有所发展或是发生改变。
    python 基本都是 http + json,一旦 qps 上来真心抗不住。那么换成什么 rpc 好呢?
    4 条回复    2018-06-02 19:36:24 +08:00
    nbboy
        1
    nbboy  
       2018-05-31 10:25:08 +08:00   ❤️ 1
    能抗多少 qps 有测试过吗?毕竟这种方案简单。
    luw2007
        2
    luw2007  
    OP
       2018-06-01 13:42:14 +08:00
    @nbboy nginx <-> tornado <-> redis 本身性能就有限,线上业务在流量翻多倍的情况下,会出现服务器 cpu 抗不住的问题。大部分请求都是内部调用。所以考虑 rpc 异步来减少 cpu 压力。
    luw2007
        4
    luw2007  
    OP
       2018-06-02 19:36:24 +08:00
    @enrolls 没看到 rpc 相关的东西。 调度? 数据结构?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1972 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:21 · PVG 00:21 · LAX 09:21 · JFK 12:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.