https://github.com/alexdyysp/easyrpc
模仿dubbo实现的简易RPC框架
https://github.com/alexdyysp/easyrpc
java rpc
Last synced: about 1 month ago
JSON representation
模仿dubbo实现的简易RPC框架
- Host: GitHub
- URL: https://github.com/alexdyysp/easyrpc
- Owner: alexdyysp
- Created: 2020-02-06T06:21:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T02:47:40.000Z (about 4 years ago)
- Last Synced: 2025-12-31T22:42:27.411Z (6 months ago)
- Topics: java, rpc
- Language: Java
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# easyRpc
模仿dubbo实现的简易RPC框架
- Provider模块
- 提供API、实现API、暴露(启动tomcat, NettyServer)、服务本地注册、服务注册中心注册
- Consumer模块
- 拿接口名从注册中心获取服务地址、调用
- Registry模块
- 保存服务配置信息(服务名:List)
- RpcProtocol模块
- 基于tomcat的httpprotocol、基于netty的dubboprotocol
- Framework模块
- 框架实现
内嵌tomcat
java动态代理实现代理对象
消费者调用服务需要负载均衡:随机、轮询、hash、最小活跃次数