chuntaojun / specification

Service Governance Specification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

服务治理标准

English | 简体中文


README:

介绍

服务治理标准

北极星服务治理标准遵循下一代架构基金会所制定的服务治理标准,在此之上进行了扩展:

Latest Release
Serivce Management Specification
namespace v1
service v1
instance v1
health check v1
Traffic Mangement Specification
router v1
load balancer v1
limiter v1
Fault Tolerance Specification
circuit breaker v1
fault detector v1
retry v1
Access Control Specification
authentication v1
anthorization v1

服务治理接口

Latest Release
Serivce Management Specification
namespace v1
service v1
instance v1
health check v1
Traffic Mangement Specification
router v1
load balancer v1
limiter v1
Fault Tolerance Specification
circuit breaker v1
fault detector v1
Access Control Specification
authentication v1

如何构建

  • Java语言

Java的编译相关的工程在/source/java/polaris-specification下,通过以下命令可以构建:

cd source/java
bash build.sh
  • Go语言

Go的编译相关工程在/source/go下,通过以下命令可以构建

cd source/go
rm -rf api
bash build.sh
  • Rust语言

Rust的编译相关工程在/source/rust/polaris-specification,通过以下命令可以构建

cd source/rust
bash build.sh

如何使用

  • Java语言,只需要添加polaris-specification的依赖即可完成。
<dependency>
    <groupId>com.tencent.polaris</groupId>
    <artifactId>polaris-specification</artifactId>
    <!-- 版本号可换成最新版本号-->
    <version>v1.3.0</version>
</dependency>
  • Go语言,修改go.mod,添加github.com/polarismesh/specification的依赖。
require github.com/polarismesh/specification v1.3.0
  • Rust语言,修改cargo.toml,添加polaris-specification的依赖。
[dependencies]
polaris-specification = "1.3"

About

Service Governance Specification


Languages

Language:Rust 48.6%Language:Python 46.7%Language:Shell 4.1%Language:PowerShell 0.6%