How to provide separate ribbon configuration for separate rest template? I know in Feign client we can have separate configuration ,but how we will have separate configuration for separate rest template. For example :There are 2 services (A) and (B) ,I want to use service A with Roundrobin IRule and B with AvailabilityFilteringRule. Is there any way to configured for rest template?
Asked
Active
Viewed 359 times
0
-
http://cloud.spring.io/spring-cloud-static/Edgware.SR2/multi/multi_spring-cloud-ribbon.html#_customizing_the_ribbon_client – spencergibb Mar 17 '18 at 04:59
-
How to use @Ribbon client for different rest template – Ankush Nakaskar Mar 17 '18 at 05:37
-
You dont use `@RibbonClient` for different `RestTemplates` you use it to configure separate services. The `name` attribute can be used to specify the name of the service that the configuration applies to. – Ryan Baxter Mar 17 '18 at 14:27
-
Ohh,I got it now,I did not find those kind of explanation in spring doc of ribbon.Is there any documentation – Ankush Nakaskar Mar 17 '18 at 18:42