{"id":37026327,"url":"https://github.com/baijianruoli/lidou","last_synced_at":"2026-01-14T03:03:43.067Z","repository":{"id":37111602,"uuid":"285024358","full_name":"baijianruoli/lidou","owner":"baijianruoli","description":"RPC framework based on Zookeeper and Netty ","archived":false,"fork":false,"pushed_at":"2023-06-14T22:44:44.000Z","size":136,"stargazers_count":18,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T23:15:56.634Z","etag":null,"topics":["java","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/baijianruoli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-08-04T15:39:52.000Z","updated_at":"2023-09-01T07:07:19.000Z","dependencies_parsed_at":"2024-11-16T17:23:45.899Z","dependency_job_id":"d6982fc2-5818-4b41-9767-a26f169f8118","html_url":"https://github.com/baijianruoli/lidou","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/baijianruoli/lidou","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baijianruoli%2Flidou","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baijianruoli%2Flidou/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baijianruoli%2Flidou/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baijianruoli%2Flidou/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baijianruoli","download_url":"https://codeload.github.com/baijianruoli/lidou/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baijianruoli%2Flidou/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["java","netty","rpc","zookeeper"],"created_at":"2026-01-14T03:03:42.364Z","updated_at":"2026-01-14T03:03:43.052Z","avatar_url":"https://github.com/baijianruoli.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lidou\n基于netty和zookeeper的自制rpc框架\n\n[文档介绍](https://blog.csdn.net/bai1112/article/details/110404380)\n# Apache Maven\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.github.baijianruoli\u003c/groupId\u003e\n  \u003cartifactId\u003elidou\u003c/artifactId\u003e\n  \u003cversion\u003e1.3.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n# 使用方法\n\n1.在配置文件上配置lidou.port,设置服务器netty端口\n\n2.在配置中心配置lidou.servicePackage,是Service的扫描路径\n\n3.在配置文件加上lidou.zookeeper.url，为zookeeper的注册地址\n\n4.在Service上标记@LidouService注解，使其作为远程服务的Service\n\n5.使用@Reference标记要注入的代理对象\n\n# 实现需求\n- [x] jdk动态代理，获得调用方法的类全路径，方法参数，类型，和名称\n\n- [x] protobuf序列化传输数据\n\n- [x] netty进行服务间的通信\n\n- [x] 多线程\n\n- [x] 反射\n\n- [x] 心跳检测保持长连接\n\n- [x] 自定义注解（现在客户端只要在Service上加上@Reference，自动注入代理对象,调用本地方法一样调用远程方法）\n\n- [x] 加入zookeeper注册中心，提供负载均衡(1.随机 2.轮询 3.一致性Hash 4.加权)\n\n- [x] 加入maven中央仓库，方便使用\n\n- [x] 管道复用\n\n# 缺少的功能\n- [ ]  提供缓存支持\n- [ ]  提高并发\n- [ ]  降级，熔断\n- [ ]  动态负载均衡\n\n\n\n# 压测\n2w的压力测试下，tcp响应时间为一百多毫秒，多线程可以继续改进\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaijianruoli%2Flidou","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaijianruoli%2Flidou","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaijianruoli%2Flidou/lists"}