From aa00d471cedef79d55e93cd5539cad27016498b8 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Tue, 26 Mar 2019 20:32:24 +0000 Subject: [PATCH] Sync docs from 2.1.x to gh-pages --- 2.1.x/spring-cloud-consul.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/2.1.x/spring-cloud-consul.xml b/2.1.x/spring-cloud-consul.xml index 229c5b0b..523936ce 100644 --- a/2.1.x/spring-cloud-consul.xml +++ b/2.1.x/spring-cloud-consul.xml @@ -32,7 +32,7 @@ Intelligent Routing (Zuul) and Client Side Load Balancing (Ribbon), Circuit Brea Service Discovery is one of the key tenets of a microservice based architecture. Trying to hand configure each client or some form of convention can be very difficult to do and can be very brittle. Consul provides Service Discovery services via an HTTP API and DNS. Spring Cloud Consul leverages the HTTP API for service registration and discovery. This does not prevent non-Spring Cloud applications from leveraging the DNS interface. Consul Agents servers are run in a cluster that communicates via a gossip protocol and uses the Raft consensus protocol.
How to activate -To activate Consul Service Discovery use the starter with group org.springframework.cloud and artifact id spring-cloud-starter-consul-discovery. See the Spring Cloud Project page for details on setting up your build system with the current Spring Cloud Release Train. +To activate Consul Service Discovery use the starter with group org.springframework.cloud and artifact id spring-cloud-starter-consul-discovery. See the Spring Cloud Project page for details on setting up your build system with the current Spring Cloud Release Train.
Registering with Consul @@ -222,7 +222,7 @@ spring.cloud.consul.discovery.management-tags
Using Ribbon Spring Cloud has support for Feign (a REST client builder) and also Spring RestTemplate -for looking up services using the logical service names/ids instead of physical URLs. Both Feign and the discovery-aware RestTemplate utilize Ribbon for client-side load balancing. +for looking up services using the logical service names/ids instead of physical URLs. Both Feign and the discovery-aware RestTemplate utilize Ribbon for client-side load balancing. If you want to access service STORES using the RestTemplate simply declare: @LoadBalanced @Bean @@ -274,7 +274,7 @@ config/application/ Configuration is currently read on startup of the application. Sending a HTTP POST to /refresh will cause the configuration to be reloaded. will also automatically detect changes and reload the application context.
How to activate -To get started with Consul Configuration use the starter with group org.springframework.cloud and artifact id spring-cloud-starter-consul-config. See the Spring Cloud Project page for details on setting up your build system with the current Spring Cloud Release Train. +To get started with Consul Configuration use the starter with group org.springframework.cloud and artifact id spring-cloud-starter-consul-config. See the Spring Cloud Project page for details on setting up your build system with the current Spring Cloud Release Train. This will enable auto-configuration that will setup Spring Cloud Consul Config.
@@ -387,13 +387,13 @@ Retry has a RetryInterceptorBuilder that makes it easy to cre Spring Cloud Bus with Consul
How to activate -To get started with the Consul Bus use the starter with group org.springframework.cloud and artifact id spring-cloud-starter-consul-bus. See the Spring Cloud Project page for details on setting up your build system with the current Spring Cloud Release Train. +To get started with the Consul Bus use the starter with group org.springframework.cloud and artifact id spring-cloud-starter-consul-bus. See the Spring Cloud Project page for details on setting up your build system with the current Spring Cloud Release Train. See the Spring Cloud Bus documentation for the available actuator endpoints and howto send custom messages.
Circuit Breaker with Hystrix -Applications can use the Hystrix Circuit Breaker provided by the Spring Cloud Netflix project by including this starter in the projects pom.xml: spring-cloud-starter-hystrix. Hystrix doesn’t depend on the Netflix Discovery Client. The @EnableHystrix annotation should be placed on a configuration class (usually the main class). Then methods can be annotated with @HystrixCommand to be protected by a circuit breaker. See the documentation for more details. +Applications can use the Hystrix Circuit Breaker provided by the Spring Cloud Netflix project by including this starter in the projects pom.xml: spring-cloud-starter-hystrix. Hystrix doesn’t depend on the Netflix Discovery Client. The @EnableHystrix annotation should be placed on a configuration class (usually the main class). Then methods can be annotated with @HystrixCommand to be protected by a circuit breaker. See the documentation for more details. Hystrix metrics aggregation with Turbine and Consul