An open API service indexing awesome lists of open source software.

https://github.com/helpermethod/membrane-discovery-spring-boot-starter

Service discovery and client side load balancing for Membrane Spring Boot Starter.
https://github.com/helpermethod/membrane-discovery-spring-boot-starter

consul eureka java java8 load-balancing service-discovery spring-boot spring-boot-starter

Last synced: 3 months ago
JSON representation

Service discovery and client side load balancing for Membrane Spring Boot Starter.

Awesome Lists containing this project

README

        

# Membrane Discovery Spring Boot Starter

A Spring Boot Starter that adds service discovery and client-side load balancing to [Membrane Spring Boot Starter](https://github.com/membrane/membrane-spring-boot-starter).

## Usage

```java
@EnableMembrane
@EnableDiscoveryClient
@SpringBootApplication
public class MembraneEurekaApplication {
@Bean
public Proxies proxies() {
return p -> p
.serviceProxy(s -> s
.matches(m -> m
.method(GET)
.pathPrefix("/jokes/"))
.target(t -> t.url("discovery://chuck-norris")));
}

public static void main(String[] args) {
SpringApplication.run(MembraneEurekaApplication.class, args);
}
}
```