spring-cloud-huawei is a framework that makes it easier to integrate spring cloud and Huawei frameworks. Including open source framework and commercial framework, open source such as Apache ServiceComb, commercial such as Huawei Cloud ServiceStage.
- Spring Cloud use ServiceComb-Service-Center to implement registration and discovery: No need to change the code, just modify the individual configuration files(application.yml) to complete the migration. Multiple Service-Centers can be launched and the client will select one of the healthy Service-Centers to make the call.
-
Spring Cloud use ServiceStage to implement registration and discovery: No need to change the code, just modify the individual configuration files(application.yml) to complete the migration.
-
Spring Cloud use ServiceStage to implement Distributed Transaction: (Distributed Transaction Management, DTM) is a product that addresses consistency issues in a distributed environment.
-
Spring Cloud uses ServiceStage distributed configuration service: Support for getting configuration from the server, and dynamic updates, following the way of Spring Cloud.
-
Spring Cloud uses ServiceStage gray release service: Support for gray release capabilities.
- Apache-ServiceComb-Service-Center is a Restful based service-registry that provides micro-services discovery and micro-service management. It is based on Open API format and provides features like service-discovery, fault-tolerance, dynamic routing, notify subscription and scalable by design.
Requirements:
- Spring Cloud :2.1.2.RELEASE
- JDK :1.8 +
do the following:
git clone https://github.com/huaweicloud/spring-cloud-huawei.git
cd spring-cloud-huawei
mvn package --settings .maven.settings.xml
Because spring-cloud-huawei has not been released to the public repository, if you want to use it, you need to download the code to build locally.
mvn clean install --settings .maven.settings.xml
dependencyManagement can be used in projects to manage dependencies.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud.huawei</groupId>
<artifactId>spring-cloud-huawei-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
- Integrated openapi-swagger2.0
- Support WebFlux
- Integrated serivicecomb-kie
- Integrated edge-service