-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use @FeignClient instead of ribbon-based restTemplate #7
Comments
I hava the same issue as manikandancvk, do I miss any configuration? |
@manikandancvk @webjustin try it over the url http://localhost:8765/ as there is zuul running |
@gabac , Thanks for the reply , let me check the it out . |
Yes we could use FeignClient as declarative REST client instead of using RestTemplate. However we still need to provide fallback behaviour so that circuit breaker kicks in. This is how I think you should be able to use FeignClient
You can find more details at http://www.baeldung.com/spring-cloud-netflix-hystrix |
Hey guys, first of all thanks so much for the repo, amazing examples.
Second, I'm opening this issue to improve the usage of netflix-oss usage in the examples provided. Take for example the CommentsService.java
Since it's just connecting to the comments-webservice could we just use the FeignClient?
And in this case should we use Hystrix or not?
The text was updated successfully, but these errors were encountered: