Hrpc
A simple Java RPC framework based on Spring, Netty, Protobuf and Consul
Install / Use
/learn @hshenCode/HrpcREADME
hrpc
It's a simple Java RPC framework based on Spring, Netty and Consul.
How it works
Some articles in Chinese:
- 如何写一个RPC框架(一):关注点与我的实现
- 如何写一个RPC框架(二):通过Bean容器和动态代理简化服务调用代码
- 如何写一个RPC框架(三):服务注册与服务发现
- 如何写一个RPC框架(四):网络通信之客户端篇
- 如何写一个RPC框架(五):服务器端实现
- 如何写一个RPC框架(六):负载均衡
If the links above don't work, see the docs folder: docs
Usage
Please refer to:
- hrpc-sample-client
- hrpc-sample-server
- hrpc-sample-spi
References
- https://github.com/spring-cloud/spring-cloud-netflix/tree/master/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/feign
- https://github.com/luxiaoxun/NettyRpc
- https://my.oschina.net/huangyong/blog/361751
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.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
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
