Home > Software engineering >  Communication between the server problem
Communication between the server problem

Time:10-02

A server cluster, sometimes need to communicate between two servers (socket), between the two server is to establish a TCP connection is good or two TCP connections, two, one is used to send data, one for receiving data,

CodePudding user response:

I see some design are two connections, don't understand what benefits,

CodePudding user response:

To establish the communication reliability of the two is higher, and can do a two-way synchronous and concurrent validation,

CodePudding user response:

refer to the second floor kakabulusi response:
set up the communication reliability of the two is higher, and can do a two-way synchronous and concurrent validation,


Two-way synchronization, and concurrent validation is what mean? A great god

CodePudding user response:

The initiate, use two root; If a party initiate, the other party response, using a; This problem is not the problem, does not occupy a port number

CodePudding user response:

reference fengge8ylf reply: 3/f
Quote: refer to the second floor kakabulusi response:

To establish the communication reliability of the two is higher, and can do a two-way synchronous and concurrent validation,


Two-way synchronization, and concurrent validation is what mean? The great spirit


In general, the server is passive connection, the client is active connection, client does not submit a connection request, the server is not active connection on the client side,
And abnormal [one] in the network situation, be able to connect existing reconstruction connection, once appear without the network abnormal network interruption,

CodePudding user response:

TCP is bidirectional, an a is enough, the server is usually to use such as RPC framework for data synchronization

CodePudding user response:

RPC are realized using a connection or two ha ha

CodePudding user response:

Data synchronization can use third party open source libraries, such as redis, current version supports data synchronization and cache, but demand is kv data types
  • Related