Skip to content

A light-weight RPC implement of google protobuf RPC framework.

License

Notifications You must be signed in to change notification settings

billowqiu/sofa-pbrpc

 
 

Repository files navigation

sofa-pbrpc

Build Status Join the chat at https://gitter.im/sofa-pbrpc/rpc Coverity Scan Build Status

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.
  • Supports opentracing with Jaeger backend

Dependencies

This lib depends on boost(only need header), protobuf3, snappy and zlib:

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

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.

Tracing

  • Follow this guide
  • cd _build
  • cp ../sample/echo/config.yml .
  • ./echoserver
  • Open an new terminal, ./echoclient_async
  • Open http://127.0.0.1:16686

tracing-search

tracing-detail

Support

opensearch@baidu.com

About

A light-weight RPC implement of google protobuf RPC framework.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 96.9%
  • Python 0.7%
  • CMake 0.7%
  • Perl 0.7%
  • Makefile 0.5%
  • Shell 0.3%
  • Other 0.2%