A data communication method and server among multi-level servers

A data communication and server technology, applied in the field of distributed systems, can solve problems such as poor performance, complex application framework, and does not support active server push, etc., to achieve good performance, prevent communication interruption, and simple framework

Active Publication Date: 2018-02-13
SUZHOU KEDA TECH
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] For this reason, the technical problem to be solved by the present invention is that the method for remote calling and pushing between multi-level servers in the prior art has complex application program framework, poor performance and does not support active push of servers, etc., thus proposing a multi-level server Inter-data communication method and server

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A data communication method and server among multi-level servers
  • A data communication method and server among multi-level servers
  • A data communication method and server among multi-level servers

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0082] This embodiment provides a method for data communication between multi-level servers. This embodiment is the first server-side processing method, such as figure 2 shown, including the following steps:

[0083] S1: the first server connects to the second server through the connection interface of MINA. The first server can be connected to one or more servers through the connection interface of MINA. In this embodiment, one server, that is, the second server, is used as an example.

[0084] S2: The first server sends an interface command, and encapsulates the command information to obtain information in a first format.

[0085] The interface command is a call command, that is, the first server calls the information of the second server. At this time, the first server is an upper-level server, and the second server is a lower-level server. For example, a province has three levels of platforms: provincial level, city level, and county level. The provinces and cities are ...

Embodiment 2

[0096] This embodiment provides a method for data communication between multi-level servers. This embodiment is the first server-side processing method, such as image 3 shown, including the following steps:

[0097] S1: the first server connects to the second server through the connection interface of MINA. The first server can be connected to one or more servers through the connection interface of MINA. In this embodiment, one server, that is, the second server, is used as an example.

[0098] S2: The first server sends an interface command, and encapsulates the command information to obtain information in a first format.

[0099] The interface command is a push command, that is, the first server pushes information to the second server. At this time, the first server is a lower-level server, and the second server is a higher-level server. For example, a province has three levels of platforms: provincial, municipal, and county. The provinces and cities are connected, and th...

Embodiment 3

[0108] This embodiment provides a method for data communication between multi-level servers. This embodiment is a second server-side processing method, such as Figure 4 shown, including the following steps:

[0109] T1: The second server connects to the first server through the connection interface of MINA, and saves the corresponding connection after the connection is successful.

[0110] T2: The second server receives the interface command and the second format information sent by the first server through the receiving interface of the MINA, where the interface command is a calling command.

[0111] T3: The second server deserializes the information in the second format into information in the third format. Deserializing the information in the second format into the information in the third format uses the Xstream technology, and the Xstream technology is as described in Embodiment 1. The information in the third format is information in JavaBean format.

[0112] T4: The...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention provides a data communication method among multi-level servers and a server. The first server connects to the second server through the connection interface of MINA. After the connection is successful, the interface command is sent to obtain the first format information, and the first format information object is serialized as After the XML format is sent to the second server through the sending interface of MINA, the second server deserializes the information after receiving the XML format information, and performs parsing to obtain the result. It realizes the remote call and active push function between multi-level servers, and the MINA-based application program framework is simple and has good performance. The underlying communication is communicated in XML format, which provides the possibility for future cross-language calls or pushes.

Description

technical field [0001] The invention relates to the technical field of a distributed system, in particular to a data communication method among multi-level servers and a server. Background technique [0002] At present, the construction of large-scale distributed systems usually uses the abstraction of "layer": "layer" may be a "layer" in a multi-layer architecture, or a component in a component system, or a Service-Oriented Architecture (Service-Oriented Architecture, SOA ), in which the system is divided into multiple "layers", and interfaces need to be defined between each layer for information exchange. In a distributed cascade system, a server is deployed at each level of the province, city, and county. The upper-level server can call the lower-level server, and at the same time, the lower-level server can actively push information to the upper level, such as figure 1 As shown, after the servers are connected, the top-level server can be connected as the first server o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/34H04L67/55
Inventor 曹易陈卫东
Owner SUZHOU KEDA TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products