Pbrpc
Protobuf RPC是一种基于TCP协议的二进制RPC通信协议的GO实现. JAVA实现:https://github.com/baidu/Jprotobuf-rpc-socket
Install / Use
/learn @baidu-golang/PbrpcREADME
features:
- 内置连接池,具备更高的性能,低延迟 QPS: 5w+
- 支持自动重连功能[Done]
- 支持附件发送[Done]
- 支持超时功能[Done]
- 压缩功能,支持GZip与Snappy[Done]
- 集成内置HTTP管理功能[TODO]
- Client支持Ha的负载均衡功能[Done]
- 灵活的超时设置功能[Done] 基于timewheel实现
- 分包chunk支持,针对大数据包支持拆分包的发送的功能[Done]
- 支持Web管理能力以及内置能力[Done] 查看
- 支持同步发布为Http JSON协议[Done] [>= v1.2.0]
Installing
To start using pbrpc, install Go and run go get:
$ go get github.com/baidu-golang/pbrpc
Which version
|version | protobuf package | | ---- | ---- | |<= 1.2.x| github.com/golang/protobuf| |1.3.x| google.golang.org/protobuf|
FYI: 由于这两个pb类库并不是完全兼容,官方推荐使用 google.golang.org/protobuf
使用说明与Demo
Quick Start(服务发布) <br> Quick Start(客户端调用) <br> 同步发布http rpc服务 <br> 更多特性使用说明<br> Demo开发示例代码<br>
License
brpc is Apache 2.0 licensed.
Related Skills
node-connect
348.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
