This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener). # Fixed URLs ## Fixed Success These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended. * [ ] http://cloud.spring.io/spring-cloud-static/spring-cloud.html with 1 occurrences migrated to: https://cloud.spring.io/spring-cloud-static/spring-cloud.html ([https](https://cloud.spring.io/spring-cloud-static/spring-cloud.html) result 200). * [ ] http://example.com with 1 occurrences migrated to: https://example.com ([https](https://example.com) result 200). # Ignored These URLs were intentionally ignored. * http://foo/bar with 1 occurrences * http://localhost with 18 occurrences * http://localhost:7777 with 1 occurrences * http://localhost:8000/src/main/resources/health.json with 1 occurrences * http://localhost:8080 with 1 occurrences * http://localhost:8080/hystrix.stream with 1 occurrences * http://localhost:8888 with 1 occurrences * http://nosuchservice with 1 occurrences * http://simple/ with 1 occurrences * http://user with 2 occurrences * http://user::password@localhost:8761/eureka/ with 1 occurrences
About
This project is a sample of using just the Hystrix Starter. For more information see the Hystrix documentation.
Usage
This simple app contains two endpoints both surrounded by Hystrix circuit breakers. See HystrixApplication.java for the endpoint definitions.
/ok
The /ok endpoint just returns the String 'OK' and should actually never trip the circuit breaker since there is no
way for it to "fail".
/fail
The /fail endpoint will throw a RuntimeException unless the header X-NO-FAIL is present. If you hit the
/fail endpoint fast enough, the circuit will open and Hystrix will return the response from the fallback method
defined in MyService.java.
Once the circuit is open you will see the /fail endpoint return the string from the fallback. The circuit will remain
open until a successful request is made to the fail endpoint. This is where the X-NO-FAIL header comes in handy. If
the header is present in the request made to /fail, the RuntimeException will not be thrown. If you do this enough
while the circuit is open than the circuit will eventually close.
Using The Hystrix Dashboard
You can use the Hystrix Dashboard sample to visualize
the state of the circuit breakers in this application. To do this, follow the instructions in the README for the
Hystrix Dashboard sample to start the dashboard and then point it at http://localhost:8080/hystrix.stream.