Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

societe-generale/spring-cloud-ribbon-extensions

 
 

Repository files navigation

Spring Cloud Ribbon Extensions

Build StatuscodecovCodacy Badge

Requirements

  • spring cloud eureka.
  • spring cloud ribbon.
  • optional spring cloud zuul.
  • optional spring cloud hystrix

Features

Routing Rule

Favorite Zone Routing.

use @EnableRibbonFavoriteZone to enable routing to a favorite zone.

Strict Metadata Routing

use @EnableRibbonStrictMetadataMatcher to enable routing to servers that have the same context metadata.

Context Propagation

use @EnableRibbonContextPropagation to enable desired http headers flowing between all your micro-services.

Combine Favorite Zone Routing & Context Propagation

Eureka!

  • We are able to test our micro-service without running all the application services only by adding our zone to http request header.
  • We are able to deploy in multi region and let our clients (that have no knowledge of eureka, ribbon, zuul) choose the nearest zone.

Setup

maven

<dependency>
  <groupId>com.github.enadim</groupId>
  <artifactId>spring-cloud-ribbon-extensions</artifactId>
  <version>1.0.0</version>
</dependency>

gradle

dependencies {
    compile 'com.github.enadim:spring-cloud-ribbon-extensions:1.0.0'
}

License

Apache License 2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%