{"id":13908781,"url":"https://github.com/xincao9/yurpc","last_synced_at":"2026-01-11T17:46:20.194Z","repository":{"id":57724165,"uuid":"164391691","full_name":"xincao9/yurpc","owner":"xincao9","description":"high-performance RPC framework.","archived":false,"fork":false,"pushed_at":"2024-12-04T13:52:26.000Z","size":964,"stargazers_count":57,"open_issues_count":5,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T11:03:36.154Z","etag":null,"topics":["rpc","service","service-discovery","soa","soap"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xincao9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2019-01-07T07:02:47.000Z","updated_at":"2024-12-31T03:29:10.000Z","dependencies_parsed_at":"2025-03-16T00:45:24.610Z","dependency_job_id":null,"html_url":"https://github.com/xincao9/yurpc","commit_stats":null,"previous_names":["xincao9/jsonrpc"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xincao9%2Fyurpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xincao9%2Fyurpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xincao9%2Fyurpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xincao9%2Fyurpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xincao9","download_url":"https://codeload.github.com/xincao9/yurpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"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":["rpc","service","service-discovery","soa","soap"],"created_at":"2024-08-06T23:02:59.271Z","updated_at":"2026-01-11T17:46:20.157Z","avatar_url":"https://github.com/xincao9.png","language":"Java","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"## yurpc\n\n### 高性能RPC框架\n\n#### yurpc 基于java的高性能开源RPC框架，使用方式上类似dubbo，提倡面向接口编程，如果您熟悉dubbo很容易迁移到yurpc;并享受高性能带来的服务体验。提供springboot高度集成starter包，实现零配置使用\n\n![logo](https://github.com/xincao9/yurpc/blob/master/architecture.png)\n\n#### yurpc 实战\n\n**_maven 依赖_**\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.xincao9\u003c/groupId\u003e\n    \u003cartifactId\u003eyurpc-spring-boot-starter\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.6\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n**_实体定义_**\n\n```\n\npublic class Say {\n\n    private Integer id;\n    private String body;\n\n    public Say(Integer id, String body) {\n        this.id = id;\n        this.body = body;\n    }\n\n    public Integer getId() {\n        return id;\n    }\n\n    public void setId(Integer id) {\n        this.id = id;\n    }\n\n    public String getBody() {\n        return body;\n    }\n\n    public void setBody(String body) {\n    \n        this.body = body;\n    }\n\n    @Override\n    public String toString() {\n        return JSONObject.toJSONString(this, SerializerFeature.DisableCircularReferenceDetect);\n    }\n}\n```\n\n**_服务接口定义_**\n\n```\npublic interface SayService {\n\n    Say perform(Say say);\n}\n```\n\n**_提供者实现服务接口_**\n\n```\n@YUProvider\npublic class SayServiceImpl implements SayService {\n\n    @Override\n    public Say perform(Say say) {\n        return say;\n    }\n\n}\n```\n\n**_服务提供者启动类_**\n\n```\n@SpringBootApplication\n@EnableYuRPC(server = true)\npublic class ApplicationProvider {\n\n    public static void main(String... args) {\n        SpringApplication.run(ApplicationProvider.class, args);\n    }\n}\n```\n\n**_服务消费者启动类_**\n\n```\n@SpringBootApplication\n@EnableYuRPC(client = true)\npublic class ApplicationConsumer {\n\n    @YUConsumer\n    private SayService sayService; // 可以在任何spring bean 中注入yurpc服务\n\n\n    public static void main(String... args) {\n        SpringApplication.run(ApplicationConsumer.class, args);\n    }\n\n    @Bean\n    public CommandLineRunner commandLineRunner() {\n        return (String... args) -\u003e {\n            for (int no = 0; no \u003c 100; no++) {\n                String value = RandomStringUtils.randomAscii(128);\n                Say say = new Say(no, value);\n                System.out.println(sayService.perform(say)); // 远程调用yurpc服务\n            }\n        };\n    }\n\n}\n```\n**_application.properties_**\n\n```\n## 服务发现注册或订阅的zk地址，暂时只支持zookeeper的注册中心\nyurpc.discovery.zookeeper=localhost:2181\n\n## 消费者配置\nyurpc.client.connectionTimeoutMS=5000 // 服务连接超时时间\nyurpc.client.invokeTimeoutMS=1000 // 服务调用超时时间\n\n## 提供者配置\nyurpc.server.port=12306 // 服务监听端口\n```\n\n**_温馨提示_**\n\n* 欢迎查看示例 [examples](https://github.com/xincao9/yurpc/tree/master/yurpc-sample)\n* yurpc 本身并不是必须和springboot一起使用，在示例中可以查看\n* 单独使用的话，配置文件名为 config.properties，在示例中可以查看\n* @EnableYuRPC(server = true, client = true) 意味着服务角色同为消费端和提供者使用\n\n#### 联系方式\n\n* [https://github.com/xincao9/yurpc/issues](https://github.com/xincao9/yurpc/issues)\n* [https://issues.sonatype.org/browse/OSSRH-47112](https://issues.sonatype.org/browse/OSSRH-47112)\n* xincao9@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxincao9%2Fyurpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxincao9%2Fyurpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxincao9%2Fyurpc/lists"}