百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sofa-pbrpc

> 编程语言
开源

一个基于 Google Protobuf RPC 框架的轻量级 RPC 实现。

2.1K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个基于 Google Protobuf RPC 框架的轻量级 RPC 实现。

sofa-pbrpc ========== A light-weight RPC implementation of Google's protobuf RPC framework. Wiki: https://github.com/baidu/sofa-pbrpc/wiki ### Features * High performace. * Easy to use. Refer to sample code in './sample'. * Supports sync call and async call. Refer to './sample/echo'. * Supports three level (service/method/request) timeout. Refer to './sample/timeout_sample'. * Supports transparent compression. Refer to './sample/compress_sample'. * Supports mock test. Refer to './sample/mock_sample'. * Supports network flow control. * Supports auto connecting and reconnecting. * Supports keep alive time of idle connections. * Supports statistics for profiling. * Supports multi-server load balance and fault tolerance. * Supports http protocol. * Provides web monitor. * Provides python client library. ### Dependencies This lib depends on boost-1.53.0 (only need header), protobuf-2.4.1, snappy and zlib: * boost - http://www.boost.org/ * protobuf - http://code.google.com/p/protobuf/ * snappy - http://code.google.com/p/snappy/ * zlib - http://zlib.net/ ATTENTION: boost header is only needed when compiling the lib, but is not needed for user code. Extrally, './unit-test' and './sample/mock_sample' also depends on gtest: * gtest - http://code.google.com/p/googletest/ ### Build 1. Modify the file './depends.mk' to specify depending libs.
The necessary libs are boost, protobuf, snappy, and zlib. 2. Run 'make' to build sofa-pbrpc.
The default optimization level is 'O2'.
To change it, modify the 'OPT' variable in file './Makefile'. 3. Run 'make install' to install sofa-pbrpc.
The default install directory is './output'.
To change it, modify the 'PREFIX' variable in file './Makefile'. For more details, please refer to the wiki [Build Guide](https://github.com/baidu/sofa-pbrpc/wiki/%E6%9E%84%E5%BB%BA%E6%8C%87%E5%BC%95). ### Sample For sample code, please refer to ['./sample'](https://github.com/baidu/sofa-pbrpc/tree/master/sample) and the wiki [Quick Start](https://github.com/baidu/sofa-pbrpc/wiki/%E5%BF%AB%E9%80%9F%E4%BD%BF%E7%94%A8). ### Profiling For Profiling feature, please refer to the wiki [Profiling](https://github.com/baidu/sofa-pbrpc/wiki/Profiling%E5%8A%9F%E8%83%BD). ### Performance For performace details, please refer to the wiki [Performance](https://github.com/baidu/sofa-pbrpc/wiki/%E6%80%A7%E8%83%BD). ### Implementation For implementation details, please refer to the wiki and file [doc/sofa-pbrpc-document.md](doc/sofa-pbrpc-document.md). ### Support [email protected]

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •High performace.
  • •Easy to use. Refer to sample code in './sample'.
  • •Supports sync call and async call. Refer to './sample/echo'.
  • •Supports three level (service/method/request) timeout. Refer to './sample/timeout_sample'.
  • •Supports transparent compression. Refer to './sample/compress_sample'.
  • •Supports mock test. Refer to './sample/mock_sample'.
  • •Supports network flow control.
  • •Supports auto connecting and reconnecting.
  • •Supports keep alive time of idle connections.
  • •Supports statistics for profiling.

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言