Can netty be clustered?

<div class="iteye-blog-content-contain" style="font-size: 14px"><p>A simpler way is to use zookeeper to implement service discovery. When the netty server starts, it registers with zk, and when the service shuts down, it automatically logs out. The client pulls the available netty service to zk through the process name, and subscribes to the events of the zk server, processing distributed logic on the client side. ………………………………………………………………… ……………netty is a high-performance network transmission framework, so the cluster solution depends on the user's own implementation. You can simply write process information to zookeeper when netty starts. When the client starts, pull the list of available nodes from zk, select one of the nodes, and establish a connection. Selecting a node can customize the strategy, hash, polling, weighted polling……. It belongs to the category of load balancing and service discovery. Using zk as a service found that the third-party jar has been implemented, just use it. </p>
<p>Author: Zheng Daxia<br />Link: http://www.zhihu. com/question/39921591/answer/89263259<br />Source: Zhihu<br />The copyright belongs to the author, please contact the author for authorization. </p></div>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326712606&siteId=291194637