{"id":18520702,"url":"https://github.com/wanwanpp/simple-rpc-plus","last_synced_at":"2025-10-26T14:44:05.071Z","repository":{"id":88055877,"uuid":"116243339","full_name":"wanwanpp/simple-rpc-plus","owner":"wanwanpp","description":"使用netty和zookeeper技术实现的远程调用框架","archived":false,"fork":false,"pushed_at":"2018-02-28T06:53:21.000Z","size":38,"stargazers_count":16,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T04:24:11.993Z","etag":null,"topics":["netty","rpc","zookeeper"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wanwanpp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-04T09:51:45.000Z","updated_at":"2019-12-04T06:33:45.000Z","dependencies_parsed_at":"2023-03-04T14:30:12.965Z","dependency_job_id":null,"html_url":"https://github.com/wanwanpp/simple-rpc-plus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanwanpp%2Fsimple-rpc-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanwanpp%2Fsimple-rpc-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanwanpp%2Fsimple-rpc-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanwanpp%2Fsimple-rpc-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wanwanpp","download_url":"https://codeload.github.com/wanwanpp/simple-rpc-plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248012689,"owners_count":21033238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["netty","rpc","zookeeper"],"created_at":"2024-11-06T17:22:18.536Z","updated_at":"2025-10-26T14:44:04.986Z","avatar_url":"https://github.com/wanwanpp.png","language":"Java","readme":"# simple-rpc-plus\n## 项目介绍\n基于**netty**和**zookeeper**实现的一款简单rpc调用框架。\n\n## 项目结构\n### 1.调用端组件\n  - **RpcClient**  \n  使用Netty向服务提供方发起服务调用连接。\n  - **ServiceDiscovery**  \n  连接Zookeeper，获取服务地址。\n  - **RpcProxy**  \n  创建远程服务调用代理。\n\n### 2.服务端组件\n  - **RpcServer**  \n    使用Netty启动通信服务器，接收调用端发起的请求。\n  - **ServiceRegistry**\n    注册服务地址到zookeeper。\n  - **ServerHandler**  \n    解析调用端请求，反射执行调用的服务，并返回结果至调用方。\n\n### 3.编解码器\n  - Encoder和Decoder类，使用Protostuff进行序列化。\n   \n\n## 扩展 \n  - 分离出**注册中心组件**，对服务进行更细致的管理。  \n    比如：  \n    1. 做服务的负载均衡，目前项目中使用了简单的随机法进行负载。  \n    2. 目前只在注册中心记录了服务提供方的地址，但是不能保证每个服务器上都提供了相同的服务。\n\n## 示例\n  示例请参照 [**simple-rpc-example**](https://github.com/wanwanpp/simple-rpc-example)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwanwanpp%2Fsimple-rpc-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwanwanpp%2Fsimple-rpc-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwanwanpp%2Fsimple-rpc-plus/lists"}