https://github.com/duoan/mini-rpc
Spring + Netty + Protostuff + ZooKeeper 实现了一个轻量级 RPC 框架,使用 Spring 提供依赖注入与参数配置,使用 Netty 实现 NIO 方式的数据传输,使用 Protostuff 实现对象序列化,使用 ZooKeeper 实现服务注册与发现。使用该框架,可将服务部署到分布式环境中的任意节点上,客户端通过远程接口来调用服务端的具体实现,让服务端与客户端的开发完全分离,为实现大规模分布式应用提供了基础支持
https://github.com/duoan/mini-rpc
lightbox netty protobuffer remote-procedure-calls rpc-framework spring zookeeper
Last synced: about 10 hours ago
JSON representation
Spring + Netty + Protostuff + ZooKeeper 实现了一个轻量级 RPC 框架,使用 Spring 提供依赖注入与参数配置,使用 Netty 实现 NIO 方式的数据传输,使用 Protostuff 实现对象序列化,使用 ZooKeeper 实现服务注册与发现。使用该框架,可将服务部署到分布式环境中的任意节点上,客户端通过远程接口来调用服务端的具体实现,让服务端与客户端的开发完全分离,为实现大规模分布式应用提供了基础支持
- Host: GitHub
- URL: https://github.com/duoan/mini-rpc
- Owner: duoan
- Created: 2015-01-04T08:26:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-09-02T05:42:35.000Z (almost 3 years ago)
- Last Synced: 2024-04-25T07:17:01.158Z (about 2 years ago)
- Topics: lightbox, netty, protobuffer, remote-procedure-calls, rpc-framework, spring, zookeeper
- Language: Java
- Size: 80.1 KB
- Stars: 227
- Watchers: 36
- Forks: 143
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A Minimal RPC Implement with Java.
===========

Spring + Netty + Protostuff + ZooKeeper 实现了一个轻量级 RPC 框架,使用 Spring 提供依赖注入与参数配置,使用 Netty 实现 NIO 方式的数据传输,使用 Protostuff 实现对象序列化,使用 ZooKeeper 实现服务注册与发现。使用该框架,可将服务部署到分布式环境中的任意节点上,客户端通过远程接口来调用服务端的具体实现,让服务端与客户端的开发完全分离,为实现大规模分布式应用提供了基础支持。
## 如何测试
0. 环境准备:maven, intellij-idea
1. 下载安装并启动zookeeper https://www.apache.org/dyn/closer.cgi/zookeeper/
2. 启动服务端 `me.anduo.rpc.server.core.RpcBootstrap`
3. 启动测试 `me.anduo.rpc.example.HelloServiceTest`
## TODO LIST
- [ ] add metrics.
- [ ] support client pool