Gucvii opened a new pull request, #2867:
URL: https://github.com/apache/dubbo-go/pull/2867

   Fix: fixed Nacos weight-based load balancing (issue #2864). Users can now 
use `WithServerWeight` to configure server weights and `WithClientLoadBalance` 
to specify the load balancing strategy.
   
   **Client Configuration:**
   ![Client 
Configuration](https://github.com/user-attachments/assets/13e11f72-9882-4c10-97f1-b6332c88a3bf)
   
   **Server 1 Configuration:**
   ![Server 1 
Configuration](https://github.com/user-attachments/assets/2357e506-ac04-4178-876f-79ebfc026cda)
   
   **Server 2 Configuration:**
   ![Server 2 
Configuration](https://github.com/user-attachments/assets/c9d23a97-e838-4367-afa4-6f87a034a37d)
   
   **Result**
   
   **Nacos Weight:**
   ![Nacos Weight 
Configuration](https://github.com/user-attachments/assets/23fc8a26-f91c-447f-b046-65e0adeb1bd8)
   
   **Random Load Balance Strategy:**
   ![Random Load 
Balancing](https://github.com/user-attachments/assets/f18030f6-e6fd-40df-bf7b-7476bef630bb)
   
   **Round Robin Load Balance Strategy:**
   ![Round Robin Load 
Balancing](https://github.com/user-attachments/assets/b14abd9a-c4f2-4e72-9087-3c6367122005)
   *(Every 5 requests hit server2, and 1 request hits server1)*
   
   **Exported URL Format:**
   ![Exported URL 
Format](https://github.com/user-attachments/assets/8e695941-b188-417a-b028-37aafaf9c204)
   
   **Comparison with Dubbo Java:**
   ![Dubbo Java Configuration 
1](https://github.com/user-attachments/assets/4c25cd61-cddd-4e47-9b0a-81b666d4738e)
   ![Dubbo Java Configuration 
2](https://github.com/user-attachments/assets/dbec2389-c353-44ee-a0b7-a79ca539d33b)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to