Skip to content

spring-cloud-huawei is a framework that makes it easier to integrate spring cloud and Huawei frameworks.

License

Notifications You must be signed in to change notification settings

goodcode-best/spring-cloud-huawei

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

spring-cloud-huawei

查看中文文档

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.

Features

open source

  • 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.

Huawei Cloud

  • 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.

Components

  • 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.

Checking out and building

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

How to use

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>

more document

RoadMap

  • Integrated openapi-swagger2.0
  • Support WebFlux
  • Integrated serivicecomb-kie
  • Integrated edge-service

About

spring-cloud-huawei is a framework that makes it easier to integrate spring cloud and Huawei frameworks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.6%
  • Other 1.4%