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.
- Host: GitHub
- URL: https://github.com/helpermethod/membrane-discovery-spring-boot-starter
- Owner: helpermethod
- License: apache-2.0
- Created: 2017-05-28T13:29:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-18T20:40:01.000Z (about 8 years ago)
- Last Synced: 2025-01-29T02:59:50.956Z (5 months ago)
- Topics: consul, eureka, java, java8, load-balancing, service-discovery, spring-boot, spring-boot-starter
- Language: Shell
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
}
}
```