{"id":18073465,"url":"https://github.com/iamazy/rpc-spring-cloud-starter","last_synced_at":"2025-04-05T18:17:30.448Z","repository":{"id":53258796,"uuid":"213810800","full_name":"iamazy/rpc-spring-cloud-starter","owner":"iamazy","description":"thrift connection pool based on common-pool2","archived":false,"fork":false,"pushed_at":"2023-06-14T22:29:29.000Z","size":24,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T15:33:10.710Z","etag":null,"topics":["common-pool2","spring-boot-starter","thrift"],"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/iamazy.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":"2019-10-09T03:19:16.000Z","updated_at":"2021-11-14T16:23:13.000Z","dependencies_parsed_at":"2025-02-11T15:43:12.666Z","dependency_job_id":null,"html_url":"https://github.com/iamazy/rpc-spring-cloud-starter","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/iamazy%2Frpc-spring-cloud-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamazy%2Frpc-spring-cloud-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamazy%2Frpc-spring-cloud-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamazy%2Frpc-spring-cloud-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamazy","download_url":"https://codeload.github.com/iamazy/rpc-spring-cloud-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378144,"owners_count":20929296,"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":["common-pool2","spring-boot-starter","thrift"],"created_at":"2024-10-31T10:07:42.269Z","updated_at":"2025-04-05T18:17:30.416Z","avatar_url":"https://github.com/iamazy.png","language":"Java","readme":"# RPC 数据连接池 v1\n\n#### 声明\n这是之前看到的别人用common-pool2实现的thrift连接池，但是找不到作者(好像是个歪果仁)的github地址了，有人知道的请告诉我一下蟹蟹\n\n#### 1.配置application.yml\n```yaml\nrpc:\n  enabled: true\n  pools: \n    auth:\n      category: thrift\n      max-total: 1000\n      max-idle-per-key: 1000\n      max-total-per-key: 1000\n      min-idle-per-key: 0\n      test-on-borrow: false\n      min-evictable-idle-time-millis: 3000000\n      soft-min-evictable-idle-time-millis: 3000000\n      jmx-enabled: false\n      server-host-and-ports:\n        -  192.168.12.166:8989\n        -  192.168.2.130:8989\n    retrieve-cities:\n      #枚举类型  小写也可以\n      category: thrift\n      max-total: 500\n      max-idle-per-key: 500\n      max-total-per-key: 500\n      min-idle-per-key: 0\n      test-on-borrow: false\n      min-evictable-idle-time-millis: 1500000\n      soft-min-evictable-idle-time-millis: 1500000\n      jmx-enabled: false\n      server-host-and-ports:\n        -  192.168.2.135:9000  \n```\n\n#### 3.调用RPC客户端\n```java\n@Resource(name = \"rpcDiscoveryClient\")\nprivate DiscoveryClient discoveryClient;\nThriftClient thriftClient=(ThriftClient) discoveryClient.getInstance(\"auth\");\nthriftClient.mpiface(TUserService.Client.class, RpcService.USER_SERVICE.getName()).get(username);\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamazy%2Frpc-spring-cloud-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamazy%2Frpc-spring-cloud-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamazy%2Frpc-spring-cloud-starter/lists"}