<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Load Balancing on Apache Dubbo</title><link>https://deploy-preview-3199--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/load-balance/</link><description>Recent content in Load Balancing on Apache Dubbo</description><generator>Hugo</generator><language>en</language><atom:link href="https://deploy-preview-3199--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/load-balance/index.xml" rel="self" type="application/rss+xml"/><item><title>Load Balancing Strategies and Configuration Details</title><link>https://deploy-preview-3199--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/load-balance/loadbalance/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://deploy-preview-3199--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/load-balance/loadbalance/</guid><description>&lt;p>Dubbo-go has a built-in client-based load balancing mechanism. Below are the currently supported load balancing algorithms. Combined with the automatic service discovery mechanism mentioned above, the consumer side will automatically use the &lt;code>Weighted Random LoadBalance&lt;/code> strategy for invocation.&lt;/p>
&lt;p>If you want to adjust the load balancing algorithm, here are the built-in load balancing strategies in the Dubbo framework:&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th style="text-align: left">Algorithm&lt;/th>
 &lt;th style="text-align: left">Features&lt;/th>
 &lt;th style="text-align: left">Remarks&lt;/th>
 &lt;th style="text-align: left">Configuration Value&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td style="text-align: left">Weighted Random LoadBalance&lt;/td>
 &lt;td style="text-align: left">Weighted Random&lt;/td>
 &lt;td style="text-align: left">Default algorithm, same default weight&lt;/td>
 &lt;td style="text-align: left">random (default)&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">RoundRobin LoadBalance&lt;/td>
 &lt;td style="text-align: left">Weighted Round Robin&lt;/td>
 &lt;td style="text-align: left">Inspired by Nginx&amp;rsquo;s smooth weighted round robin algorithm, same default weight&lt;/td>
 &lt;td style="text-align: left">roundrobin&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">LeastActive LoadBalance&lt;/td>
 &lt;td style="text-align: left">Least Active First + Weighted Random&lt;/td>
 &lt;td style="text-align: left">Based on the idea that those who can do more should work more&lt;/td>
 &lt;td style="text-align: left">leastactive&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">Consistent Hash LoadBalance&lt;/td>
 &lt;td style="text-align: left">Consistent Hash&lt;/td>
 &lt;td style="text-align: left">Deterministic input, deterministic providers, suitable for stateful requests&lt;/td>
 &lt;td style="text-align: left">consistenthashing&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">P2C LoadBalance&lt;/td>
 &lt;td style="text-align: left">Power of Two Choices&lt;/td>
 &lt;td style="text-align: left">Randomly selects two nodes and continues to select the one with fewer &amp;ldquo;connections.&amp;rdquo;&lt;/td>
 &lt;td style="text-align: left">p2c&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">Interleaved Weighted Round Robin&lt;/td>
 &lt;td style="text-align: left">A weighted round robin algorithm&lt;/td>
 &lt;td style="text-align: left">&lt;a href="https://en.wikipedia.org/wiki/Weighted_round_robin#Interleaved_WRR">https://en.wikipedia.org/wiki/Weighted_round_robin#Interleaved_WRR&lt;/a>&lt;/td>
 &lt;td style="text-align: left">interleavedweightedroundrobin&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td style="text-align: left">Alias Method Round Robin&lt;/td>
 &lt;td style="text-align: left">&lt;/td>
 &lt;td style="text-align: left">&lt;a href="https://en.wikipedia.org/wiki/Alias_method">https://en.wikipedia.org/wiki/Alias_method&lt;/a>&lt;/td>
 &lt;td style="text-align: left">aliasmethod&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h2 id="global-configuration">Global Configuration&lt;/h2>
&lt;p>The default strategy of the Dubbo framework is &lt;code>random&lt;/code> weighted random load balancing. To adjust the strategy, simply set the corresponding value for &lt;code>loadbalance&lt;/code>. Refer to the table at the top of the document for different load balancing strategy values.&lt;/p></description></item></channel></rss>