{"id":22204177,"url":"https://github.com/tonydeng/springboot-rpc-samples","last_synced_at":"2025-08-12T23:07:57.578Z","repository":{"id":37174785,"uuid":"150961527","full_name":"tonydeng/springboot-rpc-samples","owner":"tonydeng","description":"Spring Boot RPC Samples","archived":false,"fork":false,"pushed_at":"2022-06-17T01:56:59.000Z","size":966,"stargazers_count":10,"open_issues_count":9,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-27T06:01:48.808Z","etag":null,"topics":["grpc","rpc","rpcs","spring-boot","thrift"],"latest_commit_sha":null,"homepage":null,"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/tonydeng.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}},"created_at":"2018-09-30T11:30:17.000Z","updated_at":"2021-06-15T10:47:32.000Z","dependencies_parsed_at":"2022-08-25T12:22:14.246Z","dependency_job_id":null,"html_url":"https://github.com/tonydeng/springboot-rpc-samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tonydeng/springboot-rpc-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonydeng%2Fspringboot-rpc-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonydeng%2Fspringboot-rpc-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonydeng%2Fspringboot-rpc-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonydeng%2Fspringboot-rpc-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tonydeng","download_url":"https://codeload.github.com/tonydeng/springboot-rpc-samples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonydeng%2Fspringboot-rpc-samples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270149345,"owners_count":24535728,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"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":["grpc","rpc","rpcs","spring-boot","thrift"],"created_at":"2024-12-02T17:16:24.466Z","updated_at":"2025-08-12T23:07:57.542Z","avatar_url":"https://github.com/tonydeng.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot RPC's Samples\n\n[![Build Status](https://travis-ci.org/tonydeng/springboot-rpc-samples.svg?branch=master)](https://travis-ci.org/tonydeng/springboot-rpc-samples)\u003cbr\u003e\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.tonydeng.demo%3Aspringboot-rpc-samples\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.tonydeng.demo%3Aspringboot-rpc-samples)\u003cbr\u003e\n[![Lines of code](https://sonarcloud.io/api/project_badges/measure?project=com.github.tonydeng.demo%3Aspringboot-rpc-samples\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=com.github.tonydeng.demo%3Aspringboot-rpc-samples)\u003cbr\u003e\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n## RPC\n\n`RPC`只是描绘了`Client`与`Server`之间的点对点调用流程，包括`stub`、通信、`RPC`消息解析等部分，在实际应用中，还需要考虑服务的高可用、负载均衡等问题，所以产品级的`RPC`框架除了点对点的`RPC`协议的具体实现外，还应包括服务的发现与注销、提供服务的多台`Server`的负载均衡、服务的高可用等更多的功能。目前的`RPC`框架大致有两种不同的侧重方向，一种偏重于服务治理，另一种偏重于跨语言调用。 \n\n**服务治理型**的`RPC`框架有`Dubbo`、`DubboX`、`Motan`等，这类的`RPC`框架的特点是功能丰富，提供高性能的远程调用以及服务发现及治理功能，适用于大型服务的微服务化拆分以及管理，对于特定语言（如`Java`）的项目可以十分友好的透明化接入。但缺点是语言耦合度较高，跨语言支持难度较大。\n\n跨语言调用型的`RPC`框架有`Thrift`、`gRPC`、`Hessian`、`Hprose`等，这一类的`RPC`框架重点关注于服务的跨语言调用，能够支持大部分的语言进行语言无关的调用，非常适合于为不同语言提供通用远程服务的场景。但这类框架没有服务发现相关机制，实际使用时一般需要代理层进行请求转发和负载均衡策略控制。\n\n## Thrift\n\nhttps://thrift.apache.org/\n\n\u003e  The Apache Thrift software framework, for scalable cross-language services development, combines a software stack with a code generation engine to build services that work efficiently and seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, OCaml and Delphi and other languages.\n\n[Thrift介绍](docs/thrift.md)\n\n## Armeria\n\nhttps://armeria.github.io/\n\n\u003e Asynchronous RPC/REST library built on top of Java 8, Netty, HTTP/2, Thrift and gRPC\n\n[Armeria介绍](docs/armeria.md)\n\n## gRPC\n\nhttps://grpc.io/\n\n\u003e A high performance, open-source universal RPC framework\n\n[gRPC介绍](docs/grpc.md)\n\n## Gateway","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonydeng%2Fspringboot-rpc-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonydeng%2Fspringboot-rpc-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonydeng%2Fspringboot-rpc-samples/lists"}