Skip to content

Commit e845b75

Browse files
authored
[#385]update readme and project instructions (#389)
1 parent d452717 commit e845b75

File tree

2 files changed

+70
-112
lines changed

2 files changed

+70
-112
lines changed

README.md

Lines changed: 38 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
[![Build Status](https://travis-ci.org/huaweicloud/spring-cloud-huawei.svg?branch=master)](https://travis-ci.org/huaweicloud/spring-cloud-huawei)
2-
[![Coverage Status](https://coveralls.io/repos/github/huaweicloud/spring-cloud-huawei/badge.svg?branch=master)](https://coveralls.io/github/huaweicloud/spring-cloud-huawei?branch=master)
32
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
43
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.huaweicloud/spring-cloud-huawei/badge.svg)](https://search.maven.org/search?q=g:com.huaweicloud%20AND%20a:spring-cloud-huawei-dependencies)
54

65
# Spring Cloud Huawei [查看中文文档](README_zh.md)
76

87
Spring Cloud Huawei is a framework that makes it easier to integrate Spring Cloud and Huawei frameworks.
9-
Including [Apache ServiceComb](http://servicecomb.apache.org) and [ServiceStage](https://www.huaweicloud.com/product/servicestage.html).
8+
Including [Apache ServiceComb](http://servicecomb.apache.org) and [ServiceStage][ServiceStage].
109

1110
## Supported version
1211

1312
| Branch | Latest Version | Spring Cloud Base Version | Spring Boot Base Version | Supported Spring Cloud Version | Supported Spring Boot Version|
1413
| ---------- | ------------ | ----------- | ----------- | ----------- | ----------- |
15-
| master | 1.5.1-Hoxton | Hoxton.SR4 | 2.2.5.RELEASE | Hoxton | 2.2.x |
14+
| master | 1.5.2-Hoxton | Hoxton.SR4 | 2.2.5.RELEASE | Hoxton | 2.2.x |
1615
| Greenwich | 1.5.1-Greenwich | Greenwich.SR6 | 2.1.6-RELEASE | Greenwich | 2.1.x |
1716
| Finchley | 1.5.1-Finchley | 2.0.4.RELEASE | 2.0.9.RELEASE | Finchley | 2.0.x |
1817
| Edgware | 1.2.0-Edgware | 1.3.6.RELEASE | 1.5.22.RELEASE | Edgware | 1.5.x |
@@ -22,74 +21,51 @@ Including [Apache ServiceComb](http://servicecomb.apache.org) and [ServiceStage]
2221
* Spring Cloud Edgeware, Finchley have all reached end of life status and are no longer supported.
2322

2423
## Why use
25-
1. Gives Blue-green Deployments and Canary Releases ability to your spring cloud application.
26-
2. Automatically generate a document, which follow open API specification, and register it to service registry, so that members of team can view and download API doc in unified service.
27-
3. Combined with the ecosystem of Apache servicecomb:
28-
- Apply multilingual paradigm to your microservice system by using [mesher](https://github.com/apache/servicecomb-mesher), an implementation of service mesh, java or spring cloud is not the only choice anymore.
29-
- Developer is able to use edge-service, a high-performance gateway which benifits from reactive, outperforms than spring cloud gateway and Netflix zuul.
30-
- A [go microservice framework](https://github.com/go-chassis/go-chassis) can work with springcloud.
31-
4. Zero-code thinking, all features are based on configuration, transparent to users, no migration costs.
24+
25+
1. Integrate Spring Cloud applications to Apache ServiceComb services, like servicecomb-service-center, servicecomb-kie.
26+
2. Integrate Spring Cloud applications to use ServiceStage. ServiceStage is a service deployment environment for microservices,
27+
includs high available discovery and registration service, configuration service, governance service, transaction management
28+
service and so on.
29+
3. Other enhancements like swagger generation and registration, canary release and so on.
3230

3331
## Modules
3432

3533
* **spring-cloud-starter-huawei-servicecomb-discovery:**
36-
* Support for use HuaweiCloud CSE/[ServiceComb-Service-Center](https://github.com/apache/servicecomb-service-center)
37-
:is a Restful based service-registry that provides
38-
micro-services discovery and micro-service management. It is based on Open API format
39-
and provides features like service-discovery, fault-tolerance, dynamic routing,
40-
notify subscription and scalable by design.
41-
Support multi-environment, multi-dimensional management and multi-registry configuration.
34+
* Support for use [servicecomb-service-center](https://github.com/apache/servicecomb-service-center)
35+
* Support for use [CSE][CSE] as [Service Registry][Service Registry]
36+
* Implements DiscoveryClient, ReactiveDiscoveryClient
37+
* Implements ServiceRegistry
38+
* Implements ServerList, IPing, ServerListUpdater
4239

4340
* **spring-cloud-starter-huawei-config:**
44-
* Connect with HuaweiCloud CSE for configuration management.
45-
Support multi environment, dynamic configuration, global configuration and
46-
priority multi-dimensional configuration distribution.
47-
* Support [ServiceComb-Kie](https://github.com/apache/servicecomb-kie),
48-
KIE is a key value based configuration center that supports historical version and label management.
49-
50-
* **spring-cloud-starter-huawei-dtm:**
51-
* Support for use HuaweiCloud DTM(Distributed Transaction Management),it resolve consistency issues in a distributed environment.
41+
* Support for use [servicecomb-kie](https://github.com/apache/servicecomb-kie)
42+
* Support for use [CSE][CSE] as [Configuration Center][Configuration Center]
43+
* Implements PropertySource
44+
* Implements @RefreshScope
45+
46+
* **spring-cloud-starter-huawei-governance:**
47+
* Support for use [CSE][CSE] [Request Marker-based Governance][Request Marker-based Governance]
48+
* Implements retry for FeignClient and RestTemplate
49+
* Implements rate limiter, circuit breaker, and bulkhead for Servlet Web MVC
5250

5351
* **spring-cloud-starter-huawei-router:**
54-
* The routing management module , for gray release,canary release by config,
55-
it supports matching HTTP header and proportional traffic distribution.
52+
* Support for use [ServiceStage][ServiceStage] [Canary release features][Canary release features].
5653

57-
* **spring-cloud-starter-huawei-swagger:**
58-
* Automatically generate swagger document with zero-code (based on [spring-fox](https://github.com/springfox/springfox)),
59-
and register to the server-center for interface documentation management.
60-
* Networking with [ServiceComb-Java-Chassis](https://github.com/apache/servicecomb-java-chassis) based swagger.
61-
* Using [Edge-Service](https://docs.servicecomb.io/java-chassis/en_US/edge/by-servicecomb-sdk/) gateway,
62-
Better performance than spring cloud gateway and netflix zuul.
54+
* **spring-cloud-starter-huawei-dtm:**
55+
* Support for use [ServiceStage][ServiceStage] [DTM][DTM]
6356

64-
* **spring-cloud-starter-huawei-governance:**
65-
* Based on the dynamic configuration, provide CircuitBreaker, Bulkhead, RateLimiter and Retry feature, based on [resilience4j](https://github.com/resilience4j/resilience4j)
66-
* For traffic governance, the operator matching is used to label the traffic, which can accurately govern the traffic for the request path , request method and request header.
67-
* By using dynamic configuration, zero waiting for governance rules to take effect. No code intrusion, only need distribution configuration.
68-
* [more information](https://support.huaweicloud.com/devg-servicestage/ss-devg-0021.html)
57+
* **spring-cloud-starter-huawei-swagger:**
58+
* Automatically swagger document generation and registration.
6959

7060
## How to use
71-
spring-cloud-huawei has been released in Maven's central repository.
72-
73-
Use dependencyManagement to manage dependencies.
74-
75-
<dependencyManagement>
76-
<dependencies>
77-
<dependency>
78-
<groupId>com.huaweicloud</groupId>
79-
<artifactId>spring-cloud-huawei-dependencies</artifactId>
80-
<version>${project.version}</version>
81-
<type>pom</type>
82-
<scope>import</scope>
83-
</dependency>
84-
</dependencies>
85-
</dependencyManagement>
86-
87-
88-
introduce starter.
89-
90-
<dependency>
91-
<groupId>com.huaweicloud</groupId>
92-
<artifactId>spring-cloud-starter-huawei-servicecomb-discovery</artifactId>
93-
</dependency>
94-
95-
[more document](https://support.huaweicloud.com/devg-servicestage/cse_java_0054.html)
61+
62+
1. [Developer Guide](https://support.huaweicloud.com/intl/en-us/devg-servicestage/ss-devg-0010.html)
63+
2. [Quick Start and Samples](https://github.com/huaweicloud/spring-cloud-huawei-samples)
64+
65+
[ServiceStage]: https://support.huaweicloud.com/intl/en-us/productdesc-servicestage/ss_productdesc_0001.html
66+
[CSE]: https://support.huaweicloud.com/intl/en-us/devg-servicestage/ss-devg-0002.html
67+
[DTM]: https://support.huaweicloud.com/devg-servicestage/dtm_devg_0002.html
68+
[Service Registry]: https://support.huaweicloud.com/intl/en-us/devg-servicestage/ss-devg-0017.html
69+
[Configuration Center]: https://support.huaweicloud.com/intl/en-us/devg-servicestage/ss-devg-0018.html
70+
[Request Marker-based Governance]: https://support.huaweicloud.com/intl/en-us/devg-servicestage/ss-devg-0020.html
71+
[Canary release features]: https://support.huaweicloud.com/devg-servicestage/ss-devg-0023.html

README_zh.md

Lines changed: 32 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
# Spring Cloud Huawei [English document](README.md)
77

88
此框架的目的是为了让spring cloud 和华为的框架更好的融合在一起。
9-
包括[Apache ServiceComb](http://servicecomb.apache.org)[ServiceStage](https://www.huaweicloud.com/product/servicestage.html)
9+
包括[Apache ServiceComb](http://servicecomb.apache.org)[ServiceStage][ServiceStage]
1010

1111
## 支持的版本列表
1212

1313
| 分支 | 最新版本 | Spring Cloud基线版本 | Spring Boot基线版本 | 支持的Spring Cloud版本 | 支持的Spring Boot版本|
1414
| ---------- | ------------ | ----------- | ----------- | ----------- | ----------- |
15-
| master | 1.5.1-Hoxton | Hoxton.SR4 | 2.2.5.RELEASE | Hoxton | 2.2.x |
15+
| master | 1.5.2-Hoxton | Hoxton.SR4 | 2.2.5.RELEASE | Hoxton | 2.2.x |
1616
| Greenwich | 1.5.1-Greenwich | Greenwich.SR6 | 2.1.6-RELEASE | Greenwich | 2.1.x |
1717
| Finchley | 1.5.1-Finchley | 2.0.4.RELEASE | 2.0.9.RELEASE | Finchley | 2.0.x |
1818
| Edgware | 1.2.0-Edgware | 1.3.6.RELEASE | 1.5.22.RELEASE | Edgware | 1.5.x |
@@ -22,67 +22,49 @@
2222
* Spring Cloud Edgeware, Finchley 已经停止维护,不建议在生产环境使用。
2323

2424
## 为什么使用
25-
1. 提供路由管理功能,对应用进行蓝绿部署、灰度发布。
26-
2. 自动生成open-api规范的swagger契约文档,并注册到注册中心,以便统一查看、下载API文档。
27-
3. 与Apache ServiceComb的生态体系结合:
28-
- 使用reactive线程模型的高性能网关edge-service,表现优于spring cloud gateway和netflix zuul。
29-
- 利用[ServiceComb-Mesher](https://github.com/apache/servicecomb-mesher)实现多语言构建的微服务系统,mesher是service mesh的一种实现。
30-
- go语言微服务框架 [go-chassis](https://github.com/go-chassis/go-chassis)
31-
4. 完全代码无侵入的核心思想,力求做到所有能力全部做在配置中,用户业务无感知,无迁移成本。
3225

26+
1. Spring Cloud 使用 ServiceComb 提供的服务, 包括 servicecomb-service-center, servicecomb-kie等.
27+
2. Spring Cloud 使用 ServiceStage 提供的服务. ServiceStage 是一个微服务的运行与托管平台,包括高可用的注册中心、配置中心、服务治理和分布式事务等服务。
28+
3. 给Spring Cloud应用提供契约生成和注册,灰度发布等功能。
3329

3430
## 功能模块
3531

3632
* **spring-cloud-starter-huawei-servicecomb-discovery:**
37-
* 对接华为云微服务引擎/[ServiceComb-Service-Center](https://github.com/apache/servicecomb-service-center)
38-
:一个基于Restful的提供微服务发现和微服务治理的服务注册中心,它基于Open API规范并提供服务发现、容错、动态路由、订阅和可扩展设计等功能。
39-
支持多环境、多维度管理,多注册中心配置。
33+
* 支持使用 [servicecomb-service-center](https://github.com/apache/servicecomb-service-center)
34+
* 支持使用 [CSE][CSE][服务中心][Service Registry]
35+
* 实现 DiscoveryClient, ReactiveDiscoveryClient
36+
* 实现 ServiceRegistry
37+
* 实现 ServerList, IPing, ServerListUpdater
4038

4139
* **spring-cloud-starter-huawei-config:**
42-
* 对接华为云微服务引擎,进行配置管理,支持多环境、动态配置、全局配置、优先级多维度配置下发。
43-
* 对接[ServiceComb-Kie](https://github.com/apache/servicecomb-kie),Kie是一个基于key-value的配置中心,支持历史版本、标签管理。
40+
* 支持使用 [servicecomb-kie](https://github.com/apache/servicecomb-kie)
41+
* 支持使用 [CSE][CSE][配置中心][Configuration Center]
42+
* 实现 PropertySource
43+
* 实现 @RefreshScope
4444

45-
* **spring-cloud-starter-huawei-dtm:**
46-
* 对接华为云分布式事务引擎DTM,解决分布式环境下事务一致性问题。
45+
* **spring-cloud-starter-huawei-governance:**
46+
* 支持使用 [CSE][CSE] [基于动态配置的流量特征治理][Request Marker-based Governance]
47+
* 实现 FeignClient and RestTemplate 的重试
48+
* 实现 Servlet Web MVC 的限流、熔断器和隔离仓
4749

4850
* **spring-cloud-starter-huawei-router:**
49-
* 路由管理模块,通过配置实现灰度发布、金丝雀发布、流量分配管理,支持匹配http header、比例分配流量。
51+
* 支持使用 [ServiceStage][ServiceStage] [灰度发布][Canary release features].
52+
53+
* **spring-cloud-starter-huawei-dtm:**
54+
* 支持使用 [ServiceStage][ServiceStage] [分布式事务][DTM]
5055

5156
* **spring-cloud-starter-huawei-swagger:**
52-
* 基于代码零配置自动生成swagger接口契约(基于[spring-fox](https://github.com/springfox/springfox)的能力),自动注册到Service-Center注册中心进行接口文档化管理。
53-
* 基于契约与微服务框架[ServiceComb-Java-Chassis](https://github.com/apache/servicecomb-java-chassis)组网。
54-
* 使用[Edge-Service](https://docs.servicecomb.io/java-chassis/zh_CN/edge/by-servicecomb-sdk/)网关,
55-
[表现](https://github.com/AngLi2/api-gateway-benchmark/blob/master/Spring%20Cloud%20Gateway%2C%20Zuul%2C%20Edge%20Service%20%E6%80%A7%E8%83%BD%E5%AF%B9%E6%AF%94.md)
56-
优于spring cloud gateway和netflix zuul,体验reactive带来的性能提升。
57-
58-
* **spring-cloud-starter-huawei-governance:**
59-
* 服务治理模块,提供基于动态配置的熔断、限流、隔离、重试功能特性,核心能力基于[resilience4j](https://github.com/resilience4j/resilience4j)
60-
* 流量粒度的治理管控,可以针对请求Path、请求Method、请求Header进行相应的算子匹配来进行流量标记,进行精确的流量治理。
61-
* 利用动态配置,做到零等待下发治理规则生效。无代码侵入,用户无需学习繁琐的sdk使用,只需下发配置。
62-
* [更多信息](https://support.huaweicloud.com/devg-servicestage/ss-devg-0021.html)
57+
* 自动契约生成和注册.
6358

6459
## 如何使用
65-
spring-cloud-huawei已发布在maven中央仓库。
66-
67-
使用dependencyManagement引入依赖。
6860

69-
<dependencyManagement>
70-
<dependencies>
71-
<dependency>
72-
<groupId>com.huaweicloud</groupId>
73-
<artifactId>spring-cloud-huawei-dependencies</artifactId>
74-
<version>${project.version}</version>
75-
<type>pom</type>
76-
<scope>import</scope>
77-
</dependency>
78-
</dependencies>
79-
</dependencyManagement>
80-
81-
引入相应starter。
61+
1. [开发指南](https://support.huaweicloud.com/devg-servicestage/ss-devg-0010.html)
62+
2. [例子和快速入门](https://github.com/huaweicloud/spring-cloud-huawei-samples)
8263

83-
<dependency>
84-
<groupId>com.huaweicloud</groupId>
85-
<artifactId>spring-cloud-starter-huawei-servicecomb-discovery</artifactId>
86-
</dependency>
87-
88-
[更多文档](https://support.huaweicloud.com/devg-servicestage/cse_java_0054.html)
64+
[ServiceStage]: https://support.huaweicloud.com/usermanual-servicestage/servicestage_user_0400.html
65+
[CSE]: https://support.huaweicloud.com/devg-servicestage/ss-devg-0002.html
66+
[DTM]: https://support.huaweicloud.com/devg-servicestage/dtm_devg_0002.html
67+
[Service Registry]: https://support.huaweicloud.com/devg-servicestage/ss-devg-0017.html
68+
[Configuration Center]: https://support.huaweicloud.com/devg-servicestage/ss-devg-0018.html
69+
[Request Marker-based Governance]: https://support.huaweicloud.com/devg-servicestage/ss-devg-0020.html
70+
[Canary release features]: https://support.huaweicloud.com/devg-servicestage/ss-devg-0023.html

0 commit comments

Comments
 (0)