Multi-level low-coupling communication system
A communication system and low-coupling technology, applied in the field of communication, can solve problems such as reducing system fault tolerance, extension and robustness, and achieve the effect of reducing coupling and reducing coupling
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] A multi-level low-coupling communication system, such as figure 1 , 2 shown, including:
[0051] Local business layer: loaded on an external computer, used to generate business request data; also used to send or receive WebSocket data;
[0052] Specifically, the external computer is used to interact with the user, and is a computer device used to obtain user needs and instructions, such as a computer, a smart phone, an intelligent chat robot, a mechanical arm, and the like. The system can realize the communication between the client and the remote server, and can also be extended to server 1-client-remote server, which is an indirect server-to-server communication mode. The local business layer is mainly responsible for specific business logic and handles serialization and deserialization of all business data. The local business layer also implements the sending and receiving of WebSocket data with the access layer.
[0053] Access layer: used to receive WebSocket d...
Embodiment 2
[0062] Embodiment 2 On the basis of Embodiment 1, the following content is added:
[0063] The access layer is specifically used for:
[0064] The access layer receives WebSocket data, and judges whether the WebSocket data received this time is the data that has been received;
[0065] If yes, discard the WebSocket data;
[0066] If not, when the delivery method of the local service layer is subscription, the access layer sends the WebSocket data to the local service layer by subscription.
[0067] Specifically, the local business layer can receive WebSocket data through subscription, and the access layer directly discards the data that the local business layer has received. For example, after the access layer sends WebSocket data to the local business layer for a period of time, it receives the same WebSocket data again, but the data is received repeatedly, so it directly discards the newly received WebSocket data.
[0068] Preferably, the abnormal service request data inc...
Embodiment 3
[0098] Embodiment 3 On the basis of other embodiments, the following content is added:
[0099] The protocol analysis layer is also used for:
[0100] When the business request data cannot be parsed, an error data packet is generated and sent to the WebSocket transport layer;
[0101] When the WebSocket transport layer receives the error data packet, it obtains the service request data that cannot be parsed in the error data packet, and prohibits sending the service request data to the local service layer.
[0102] Specifically, the data transmitted by the external computer or remote server of the system is always transmitted in the form of protocol packets. The service request data can be registered in the mapping table with the mapping relationship of path---object class, and the specific mapping relationship can be determined according to the specific system used by the external computer. If the protocol packet cannot be parsed, an error packet is sent directly to the Web...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

