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

GuoYL123/spring-cloud-huawei

 
 

Repository files navigation

Build Status Coverage Status License Maven Central

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.

Why use

  1. Gives Blue-green Deployments and Canary Releases ability to your spring cloud application.
  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.
  3. Combined with the ecosystem of Apache servicecomb:
    • Apply multilingual paradigm to your microservice system by using mesher, an implementation of service mesh, java or spring cloud is not the only choice anymore.
    • Developer is able to use edge-service, a high-performance gateway which benifits from reactive, outperforms than spring cloud gateway and Netflix zuul.
    • A go microservice framework can work with springcloud.
  4. Zero-code thinking, all features are based on configuration, transparent to users, no migration costs.

Modules

  • spring-cloud-starter-huawei-servicecomb-discovery:

    • Support for use HuaweiCloud CSE/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. Support multi-environment, multi-dimensional management and multi-registry configuration.
  • spring-cloud-starter-huawei-config:

    • Connect with HuaweiCloud CSE for configuration management. Support multi environment, dynamic configuration, global configuration and priority multi-dimensional configuration distribution.
    • Support ServiceComb-Kie, KIE is a key value based configuration center that supports historical version and label management.
  • spring-cloud-starter-huawei-dtm:

    • Support for use HuaweiCloud DTM(Distributed Transaction Management),it resolve consistency issues in a distributed environment.
  • spring-cloud-starter-huawei-router:

    • The routing management module , for gray release,canary release by config, it supports matching HTTP header and proportional traffic distribution.
  • spring-cloud-starter-huawei-swagger:

    • Automatically generate swagger document with zero-code (based on spring-fox), and register to the server-center for interface documentation management.
    • Networking with ServiceComb-Java-Chassis based swagger.
    • Using Edge-Service gateway, Better performance than spring cloud gateway and netflix zuul.
  • spring-cloud-starter-huawei-governance:

    • Based on the dynamic configuration, provide CircuitBreaker, Bulkhead, RateLimiter and Retry feature, based on resilience4j
    • 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.
    • By using dynamic configuration, zero waiting for governance rules to take effect. No code intrusion, only need distribution configuration.
    • more information

How to use

spring-cloud-huawei has been released in Maven's central repository.

Use dependencyManagement to manage dependencies.

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.huaweicloud</groupId>
      <artifactId>spring-cloud-huawei-dependencies</artifactId>
      <version>${project.version}</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>

introduce starter.

<dependency>
    <groupId>com.huaweicloud</groupId>
    <artifactId>spring-cloud-starter-huawei-servicecomb-discovery</artifactId>
</dependency>

more document

Compatibility instructions

spring cloud huawei spring cloud spring boot
1.3.8 Hoxton 2.2.x
1.3.8-Greenwich Greenwich 2.1.x
1.3.7-Finchley Finchley 2.0.x
1.2.0-Edgware Edgware 1.5.x

RoadMap

  • Support WebFlux

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.0%
  • Other 2.0%