Several configuration settings of the Ribbon client may be overridden with Spring bean declarations. As with Feign, it should be declared in the client annotation field named configuration, for example,@RibbonClient(name = "account-service", configuration = RibbonConfiguration.class). The following features may be customized with this approach:
- IClientConfig: The default implementation of this is DefaultClientConfigImpl.
- IRule: This component is used to determine which service instance should be selected from a list. The ZoneAvoidanceRule implementation class is auto-configured.
- IPing: This is a component that runs in the background. It is responsible for ensuring that the instances of service are running.
- ServerList<Server>: This can be static or dynamic. If it is dynamic (as used by DynamicServerListLoadBalancer...