baidu/sofa-pbrpc
baidu/sofa-pbrpc has 2,138 GitHub stars and 647 forks. GitHot measured 0 stars in 24 hours, -1 in 7 days, and -2 in 15 days. Last checked 2026-11-24 08:33 UTC. Last push 2023-08-24.
可以做什么
- 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'.
实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
Google Protobuf RPC 框架的轻量级 RPC 实现。
开发工具README.md
原文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:
Build
- Modify the file './depends.mk' to specify depending libs.
The necessary libs are boost, protobuf, snappy, and zlib. - Run 'make' to build sofa-pbrpc.
The default optimization level is 'O2'.
To change it, modify the 'OPT' variable in file './Makefile'. - 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.
Sample
For sample code, please refer to './sample' and the wiki Quick Start.
Profiling
For Profiling feature, please refer to the wiki Profiling.
Performance
For performace details, please refer to the wiki Performance.
Implementation
For implementation details, please refer to the wiki and file doc/sofa-pbrpc-document.md.
Support
探索相关项目
加载中…