{"id":50878322,"url":"https://github.com/spring-avengers/saluki","last_synced_at":"2026-07-03T02:01:11.156Z","repository":{"id":41046105,"uuid":"108377534","full_name":"spring-avengers/saluki","owner":"spring-avengers","description":"Spring Boot starter module for gRPC framework.","archived":false,"fork":false,"pushed_at":"2022-10-04T23:39:33.000Z","size":73142,"stargazers_count":126,"open_issues_count":8,"forks_count":77,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-06-21T00:12:54.067Z","etag":null,"topics":["grpc","grpc-discovery","grpc-extend","grpc-registry","http2","micro-service","oop-service","spring-boot","spring-boot-grpc"],"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/spring-avengers.png","metadata":{"files":{"readme":"README-zh.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":"2017-10-26T07:36:52.000Z","updated_at":"2025-02-07T13:33:54.000Z","dependencies_parsed_at":"2023-01-19T05:46:27.345Z","dependency_job_id":null,"html_url":"https://github.com/spring-avengers/saluki","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/spring-avengers/saluki","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-avengers%2Fsaluki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-avengers%2Fsaluki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-avengers%2Fsaluki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-avengers%2Fsaluki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spring-avengers","download_url":"https://codeload.github.com/spring-avengers/saluki/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-avengers%2Fsaluki/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35069183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"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","grpc-discovery","grpc-extend","grpc-registry","http2","micro-service","oop-service","spring-boot","spring-boot-grpc"],"created_at":"2026-06-15T12:00:25.782Z","updated_at":"2026-07-03T02:01:11.143Z","avatar_url":"https://github.com/spring-avengers.png","language":"Java","funding_links":[],"categories":["开发框架"],"sub_categories":["微服务框架"],"readme":"# 概述\n\n* saluki是以Grpc作为底层，提供一套高性能、易于使用的服务化治理框架\n* 对Grpc的开发进行扩展，支持java开发服务端，其他语言(php、go、c++)做客户端语言，不会对Grpc原生开发方式产生破坏\n\n# 功能\n\n* 服务注册及发现，提供集群环境的服务发现及治理能力\n* 服务路由，基于javascript路由规则配置及host的路由规则配置(\u003ca href=\"http://dubbo.io/User+Guide-zh.htm#UserGuide-zh-%E8%B7%AF%E7%94%B1%E8%A7%84%E5%88%99\"\u003e路由规则示例\u003c/a\u003e)\n* 熔断及隔离，基于hystrix来进行的熔断、隔离、服务降级\n* 简化开发方式，对于Grpc原生stub方式进行封装，提供了使用interface和java Bean作为服务契约的方式\n* 与spring-boot进行集成，提供了autoconfig的方式\n* ha重试功能，针对幂等服务可以开启ha功能，当前服务实例存在问题，会剔除当前实例，选择另外实例进行负载均衡\n* 可以自由选择三种模式，genric、Stub、proxy，其中泛化在框架集成上，原生Stub模式针对原生已有的Grpc服务、普通代理模式推荐使用\n\n# 详细说明\n\n* saluki-plugin提供的插件可以在grpc插件基础上生成interface及java bean\n* saluki-serializer提供了将protobuf与java bean两者对象互相转换\n* saluki-registry提供了服务注册，可以在此扩展，目前仅支持consul\n\n# Compile\n```\n   mvn install -Dmaven.test.skip=true\n   \n```\n# 关于服务调用Sample\n  详细请查看 \u003ca href=\"https://github.com/venus-boot/saluki/tree/master/saluki-example\"\u003esample\u003c/a\u003e\n  \n# Quick Start\n\n* 首先在proto文件工程配置grpc提供的gradle或maven插件生成stub\n\n示例：\u003ca href=https://github.com/venus-boot/saluki/tree/master/saluki-service\"\u003e api \u003c/a\u003e\n\n```\n\u003cbuild\u003e\n  \u003cextensions\u003e\n    \u003cextension\u003e\n      \u003cgroupId\u003ekr.motd.maven\u003c/groupId\u003e\n      \u003cartifactId\u003eos-maven-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e1.4.1.Final\u003c/version\u003e\n    \u003c/extension\u003e\n  \u003c/extensions\u003e\n  \u003cplugins\u003e\n    \u003cplugin\u003e\n      \u003cgroupId\u003eorg.xolstice.maven.plugins\u003c/groupId\u003e\n      \u003cartifactId\u003eprotobuf-maven-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e0.5.0\u003c/version\u003e\n      \u003cconfiguration\u003e\n        \u003cprotocArtifact\u003ecom.google.protobuf:protoc:3.0.2:exe:${os.detected.classifier}\u003c/protocArtifact\u003e\n        \u003cpluginId\u003egrpc-java\u003c/pluginId\u003e\n        \u003cpluginArtifact\u003eio.grpc:protoc-gen-grpc-java:1.2.0:exe:${os.detected.classifier}\u003c/pluginArtifact\u003e\n      \u003c/configuration\u003e\n      \u003cexecutions\u003e\n        \u003cexecution\u003e\n          \u003cgoals\u003e\n            \u003cgoal\u003ecompile\u003c/goal\u003e\n            \u003cgoal\u003ecompile-custom\u003c/goal\u003e\n          \u003c/goals\u003e\n        \u003c/execution\u003e\n      \u003c/executions\u003e\n    \u003c/plugin\u003e\n  \u003c/plugins\u003e\n\u003c/build\u003e\n\n```\n* 再次添加saluki提供的gradle或maven插件根据protoc文件生成interface及pojo模型\n\n```\n\u003cdependency\u003e\n\t\u003cgroupId\u003eio.github.saluki\u003c/groupId\u003e\n\t\u003cartifactId\u003esaluki-core\u003c/artifactId\u003e\n\t\u003cversion\u003e1.5.7.RELEASE\u003c/version\u003e\n\t\u003cscope\u003eprovided\u003c/scope\u003e\n\u003c/dependency\u003e\n\n\u003cplugin\u003e\n\t\u003cgroupId\u003eio.github.saluki\u003c/groupId\u003e\n\t\u003cartifactId\u003esaluki-maven-plugin\u003c/artifactId\u003e\n\t\u003cversion\u003e1.5.7.RELEASE\u003c/version\u003e\n\t\u003cconfiguration\u003e\n\t\t\u003cprotoPath\u003esrc/main/proto\u003c/protoPath\u003e\n\t\t\u003cbuildPath\u003etarget/generated-sources/protobuf/java\u003c/buildPath\u003e\n\t\u003c/configuration\u003e\n\t\u003cexecutions\u003e\n\t\t\u003cexecution\u003e\n\t\t\t\u003cgoals\u003e\n\t\t\t\t\u003cgoal\u003eproto2java\u003c/goal\u003e\n\t\t\t\u003c/goals\u003e\n\t\t\u003c/execution\u003e\n\t\u003c/executions\u003e\n\u003c/plugin\u003e\n\n```\n\n添加后在生成Grpc的相关类之后，同时会生成interface及bean\n![interface](./doc/interface.jpeg)\n![bean](./doc/bean.jpeg)\n\n* 应用上两步生成的artifactId，添加spring-boot-saluki依赖\n\n```\n\u003cdependency\u003e\n\t\u003cgroupId\u003eio.github.frostingwolf\u003c/groupId\u003e\n\t\u003cartifactId\u003espring-boot-starter-saluki\u003c/artifactId\u003e\n\t\u003cversion\u003e1.5.7.RELEASE\u003c/version\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n\t\u003cgroupId\u003eio.github.frostingwolf\u003c/groupId\u003e\n\t\u003cartifactId\u003espring-boot-starter-saluki-monitor\u003c/artifactId\u003e\n\t\u003cversion\u003e1.5.7.RELEASE\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n* 启动spring boot main，并访问localhost:8080/doc,可进行服务测试\n![login](./doc/service.jpeg)\n\n\n# 关于网关\n  网关有一个新项目独立出来支撑grpc和dubbo，将在个人项目中孵化：\u003ca href=\"https://github.com/linking12/tesla\"\u003egateway\u003c/a\u003e ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspring-avengers%2Fsaluki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspring-avengers%2Fsaluki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspring-avengers%2Fsaluki/lists"}