Config stickiness connection in dubbo
Sticky connections are used for stateful services, as much as possible so that clients always make calls to the same provider, unless the provider hangs up and connects to the other one.
Sticky connections will automatically open Lazy Connection to reduce the number of long connections.
<dubbo:reference id="xxxService" interface="com.xxx.XxxService" sticky="true" />
Dubbo supports method-level sticky connection, and if you want more granular control, you can also configure as follows.
<dubbo:reference id="xxxService" interface="com.xxx.XxxService"> <dubbo:method name="sayHello" sticky="true" /> </dubbo:reference>
Last modified January 7, 2022: fix mistake word (#1025) (508fe9a5e0)