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