Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozhu811/crpc
🤣为了理解rpc框架实现,写的小玩具
https://github.com/mozhu811/crpc
Last synced: 7 days ago
JSON representation
🤣为了理解rpc框架实现,写的小玩具
- Host: GitHub
- URL: https://github.com/mozhu811/crpc
- Owner: mozhu811
- Created: 2022-11-12T03:50:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-12T04:10:56.000Z (about 2 years ago)
- Last Synced: 2024-05-15T16:10:43.718Z (6 months ago)
- Language: Java
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cRPC
为了理解RPC框架的实现原理,使用Netty实现的一个自定义RPC框架(玩具
实现Zookeeper为服务注册中心的RPC调用
能实现基本的RPC调用功能## 通信协议
```
+---------------------------------------------------------------+
| 魔数 2byte | 协议版本号 1byte | 序列化算法 1byte | 报文类型 1byte |
+---------------------------------------------------------------+
| 状态 1byte | 消息 ID 8byte | 数据长度 4byte |
+---------------------------------------------------------------+
| 数据内容 (长度不定) |
+---------------------------------------------------------------+
```