Git Product home page Git Product logo

Comments (2)

qinzuoyan avatar qinzuoyan commented on August 18, 2024

跨语言支持的初步想法是:

  1. 先实现Http支持:在http的POST数据中传输Request的json序列化格式,然后返回Response的json序列化格式。
  2. 由于protobuf本身是跨语言的,所以在不同的语言中,使用Http方式就可以访问server了——通过使用通用的协议(http)、跨语言的序列化/反序列化(protobuf),达到多语言客户端支持的目的,而且很容易扩展。
  3. 支持http争取在近两个月内完成。

多server和自动负载均衡:

  1. 初步的方案已经有了。
  2. 实现和发布争取在三个月内完成。

其实还考虑过一些有意思的特性,譬如:

  1. 访问控制:server应当具有拒绝不符合访问权限的请求的能力,譬如线上/线下服务的权限控制。可使用账号控制、访问控制列表、IP白名单等方式。
  2. 消息优先级控制:对于用户,不同类型的消息其优先级可能不同:控制类消息希望迅速发出去并得到响应;时效性服务也希望比非时效性服务优先得到处理。RPC需要提供消息优先级支持,提供设置优先级权重的接口,并根据权重调整发送顺序。
  3. Profiling支持:对请求各个阶段的耗时进行trace,便于进行问题追查和性能profiling。
  4. cancel功能:client端实现RpcController::StartCancel()功能,可以提前取消请求调用执行,且该cancel操作可以传递到server端;server端实现RpcController::NotifyOnCancel()接口。
  5. 过载保护:当server端繁忙的时候,某个请求可能在获得处理之前就已经超时了,此后的“处理请求”和“发送response”动作都是徒劳的;为避免徒劳的操作占用资源,需选择放弃处理此类请求。

from sofa-pbrpc.

junneyang avatar junneyang commented on August 18, 2024

很好用,期待尽快支持http

from sofa-pbrpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.