geon001 / spring-cloud-huawei

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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

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.3 Hoxton 2.2.x
1.3.3-Greenwich Greenwich 2.1.x
1.2.0-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.

License:Apache License 2.0


Languages

Language:Java 97.9%Language:Shell 0.9%Language:Go 0.7%Language:Dockerfile 0.5%