I'm using Ribbon along with Eureka.
My application is able to call the other-service in both the following configurations. I'm using NIWSServerListClassName
in first and listOfServers
in second.
other-service:
ribbon:
eureka:
enabled: true
NIWSServerListClassName: com.netflix.niws.loadbalancer.DiscoveryEnabledNIWSServerList
ServerListRefreshInterval: 1000
.
other-service:
ribbon:
eureka:
enabled: true
listOfServers: com.netflix.niws.loadbalancer.DiscoveryEnabledNIWSServerList
ServerListRefreshInterval: 1000
I've seen both NIWSServerListClassName
and listOfServers
being used in spring-cloud-netflix GitHub issues (and in some places in docs also) for getting server list for ribbon.
What is the difference between these two ribbon properties? Do they serve the same purpose?