{"id":38867544,"url":"https://github.com/continuous1024/simple-rpc","last_synced_at":"2026-01-17T14:27:02.674Z","repository":{"id":37137735,"uuid":"237776902","full_name":"continuous1024/simple-rpc","owner":"continuous1024","description":"最简单的RPC，使用接口进行RPC调用，使用Netty进行通信，使用JDK动态代理来实现客户端代理，使用CompletableFuture获取请求结果","archived":false,"fork":false,"pushed_at":"2022-12-12T07:16:14.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-04T07:24:26.823Z","etag":null,"topics":["completable-future","jdk-proxy","netty-rpc","rpc","rpc-framework"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/continuous1024.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-02T13:40:33.000Z","updated_at":"2022-12-14T23:11:43.000Z","dependencies_parsed_at":"2023-01-27T15:45:34.882Z","dependency_job_id":null,"html_url":"https://github.com/continuous1024/simple-rpc","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/continuous1024/simple-rpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/continuous1024%2Fsimple-rpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/continuous1024%2Fsimple-rpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/continuous1024%2Fsimple-rpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/continuous1024%2Fsimple-rpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/continuous1024","download_url":"https://codeload.github.com/continuous1024/simple-rpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/continuous1024%2Fsimple-rpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["completable-future","jdk-proxy","netty-rpc","rpc","rpc-framework"],"created_at":"2026-01-17T14:27:01.961Z","updated_at":"2026-01-17T14:27:02.668Z","avatar_url":"https://github.com/continuous1024.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-rpc\n算是最简单的RPC\n- 使用接口进行RPC调用\n- 使用Netty进行通信\n- 使用JDK动态代理来实现客户端代理\n- 使用CompletableFuture获取请求结果\n\n## 示例\n### 服务接口\n```java\npublic interface DemoService {\n    String hello(String name);\n}\n\n```\n### 暴露服务\n```java\nServiceConfig\u003cDemoService\u003e serviceServiceConfig = ServiceConfig.\u003cDemoService\u003ebuilder()\n        .interfaceClass(DemoService.class)\n        .serviceImpl(new DemoServiceImpl()).build();\nserviceServiceConfig.export();\n```\n\n### 服务调用\n```java\nReferenceConfig\u003cDemoService\u003e referenceConfig = ReferenceConfig.\u003cDemoService\u003ebuilder()\n        .host(\"127.0.0.1\").port(2880).interfaceClass(DemoService.class).build();\nDemoService demoService = referenceConfig.refer();\nString result = demoService.hello(\"World\");\nSystem.out.println(result);\n\nSystem.out.println(demoService.hello(\"Huan Yu\"));\n```\n\n## 借鉴Dubbo源码实现\n阅读Dubbo源码之前或者之后，查看该源码会对rpc有一个很清晰的认识。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontinuous1024%2Fsimple-rpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontinuous1024%2Fsimple-rpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontinuous1024%2Fsimple-rpc/lists"}