takagi906 opened a new pull request, #493: URL: https://github.com/apache/rocketmq-client-cpp/pull/493
## What is the purpose of the change When connecting to a NameServer with multiple instances, implement load balancing to distribute connections across available instances. related Issue: https://github.com/apache/rocketmq-client-cpp/issues/492 ## Root Cause Analysis In TcpRemotingClient.cpp, the CreateNameServerTransport method currently hardcodes index 0 to select a NameServer address from m_namesrvAddrList. However, the m_namesrvAddrList is not randomized during address updates, leading to all clients defaulting to the first address in the list. This results in uneven load distribution. -- 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]
