Comments (2)
跨语言支持的初步想法是:
- 先实现Http支持:在http的POST数据中传输Request的json序列化格式,然后返回Response的json序列化格式。
- 由于protobuf本身是跨语言的,所以在不同的语言中,使用Http方式就可以访问server了——通过使用通用的协议(http)、跨语言的序列化/反序列化(protobuf),达到多语言客户端支持的目的,而且很容易扩展。
- 支持http争取在近两个月内完成。
多server和自动负载均衡:
- 初步的方案已经有了。
- 实现和发布争取在三个月内完成。
其实还考虑过一些有意思的特性,譬如:
- 访问控制:server应当具有拒绝不符合访问权限的请求的能力,譬如线上/线下服务的权限控制。可使用账号控制、访问控制列表、IP白名单等方式。
- 消息优先级控制:对于用户,不同类型的消息其优先级可能不同:控制类消息希望迅速发出去并得到响应;时效性服务也希望比非时效性服务优先得到处理。RPC需要提供消息优先级支持,提供设置优先级权重的接口,并根据权重调整发送顺序。
- Profiling支持:对请求各个阶段的耗时进行trace,便于进行问题追查和性能profiling。
- cancel功能:client端实现RpcController::StartCancel()功能,可以提前取消请求调用执行,且该cancel操作可以传递到server端;server端实现RpcController::NotifyOnCancel()接口。
- 过载保护:当server端繁忙的时候,某个请求可能在获得处理之前就已经超时了,此后的“处理请求”和“发送response”动作都是徒劳的;为避免徒劳的操作占用资源,需选择放弃处理此类请求。
from sofa-pbrpc.
很好用,期待尽快支持http
from sofa-pbrpc.
Related Issues (20)
- sofa-server端耗时异常
- sofa-client请求超时之后不关闭tcp连接导致同一个连接上请求连续超时 HOT 1
- try_start_receive是否可以省略_receive_token
- RpcServerMessageStream和RpcMessageStream类是否可抽取公共父类
- boost async_write_some可否用async_write替换 HOT 1
- sofa-pbrpc 需要引入可配置参数
- 客户端超时设置 HOT 2
- sofa-pbrpc-client health超时
- Too many threads in sofa ,how use epoll to overlap large number of socket events HOT 2
- sofa使用snapy压缩请求体大小为100+K时解压缩出错 HOT 5
- GOOGLE_ATTRIBUTE_DEPRECATED 替换成 __attribute__((deprecated)) HOT 2
- 什么时候支持window? HOT 2
- CPU使用问题 HOT 3
- 内存问题 HOT 2
- server如何主动向client发送消息? HOT 1
- bugs on weak memory model arch.(arm/power)
- server端如何主动发消息?
- 关于volatile变量相关的问题
- 有没有这种服务互相调用的方法
- cross compile error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sofa-pbrpc.