Helios architecture (2) client architecture and cluster, helioscluster
The client architecture of helios is similar to that of the server. Only the partial classification is different (yellow). It is the client architecture.
It can be seen that only two instances of IConnection (TcpConnection and UdpConnection) are slightly different from those on the server. Because the client does not involve the callback problem, there is no Channel-related content.
Client Cluster
First, the Cluster of the client is displayed.
It can be divided into three parts based on the green line:
- Factory on the left
- Upper Cluster
- Method for establishing a connection on the lower side
The helios client maintains the server list (Cluster ). Use ClusterManagerFactory to create the corresponding ClusterManager. Maintain the borrow point list on the server through ClusterManager. (RoundRobinClusterManager is responsible for multiple server nodes. SingleNodeClusterManager indicates that the server side has only one node ).
NormalConnectionBuilder is only a factory mode. It creates an IConnection object.
Finally, PooledKeyedConnectionProvider maintains the IConnection object and ClusterManager. IConnection is used to determine whether the server node is unblocked, and ClusterManager is used to maintain
Status.