Skip to content

i_en_dataflow

huangjizhong edited this page Nov 17, 2022 · 2 revisions

Data Flow Diagram

image

  • In the figure, there are a master management server, several backend servers, several frontend servers (ie gateways), and several clients. (Note: There is a socket connection between every two server groups, not shown in the figure)
  • The client sends a message to the server: After , it reaches the frontend server, calls the protoDecode function, if the message is to this server, it calls msgDecode and executes the corresponding Message interface. If the message is to the backend server, copy sessionBuff and encode it together, and after , call msgDecode after reaching the corresponding backend server, and execute the corresponding message interface.
  • The frontend server sends a message to the client: After calling the protoEncode function for encoding, it passes through to reach the client.
  • The backend server sends a message to the client: After calling the protoEncode function encoding, adding the uid array information, after , the uid array information is parsed after reaching the frontend server corresponding to sid, and the message is sent to the corresponding client. That is, after , to the corresponding client.
  • Between servers, the developer rpc calls: .