ฉันใช้ Ribbon ร่วมกับยูเรก้า
แอปพลิเคชันของฉันสามารถเรียกใช้ บริการอื่น ได้ในการกำหนดค่าทั้งสองต่อไปนี้ ฉันใช้ NIWSServerListClassName
ในอันแรกและ listOfServers
ในวินาที
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
ฉันเห็นว่าทั้ง NIWSServerListClassName
และ listOfServers
ถูกใช้ในปัญหา GitHub ของ spring-cloud-netflix (และในบางแห่งในเอกสารด้วย) เพื่อรับรายชื่อเซิร์ฟเวอร์สำหรับ Ribbon
คุณสมบัติ Ribbon ทั้งสองนี้แตกต่างกันอย่างไร? พวกเขามีวัตถุประสงค์เดียวกันหรือไม่?