CN112039896A - Data processing method, equipment, server and storage medium - Google Patents
Data processing method, equipment, server and storage medium Download PDFInfo
- Publication number
- CN112039896A CN112039896A CN202010900807.6A CN202010900807A CN112039896A CN 112039896 A CN112039896 A CN 112039896A CN 202010900807 A CN202010900807 A CN 202010900807A CN 112039896 A CN112039896 A CN 112039896A
- Authority
- CN
- China
- Prior art keywords
- data
- interface
- rule
- parameter
- docking
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/133—Protocols for remote procedure calls [RPC]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the invention discloses a data processing method, a device, a server and a storage medium, wherein the method comprises the following steps: receiving a data calling request sent by a user terminal through an aggregation interface of data processing equipment, wherein the data calling request carries an interface identifier and a data parameter, determining an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, the rule configuration information comprises a mapping relation between the interface identifier and a routing rule, determining a docking interface corresponding to the interface address, calling data corresponding to the data parameter from the docking equipment through the docking interface so as to aggregate the data, and sending the aggregated data obtained through aggregation processing to the user terminal through the aggregation interface. By the method, data can be acquired through the unified aggregation interface calling interface, flexible dynamic calling of the interface is realized, the coupling degree with a system is reduced, and the efficiency and the stability of data processing are improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, device, server, and storage medium.
Background
At present, a large amount of data interaction exists among application systems, the number of interfaces called externally is large, codes of the system are more and more bloated and repeated in the later period along with the continuous increase of the interfaces, the calling frequency of the interfaces is increased, and therefore not only is the stability of the system reduced and the performance of the system damaged, but also the whole system is possibly dragged down due to the strict point. Therefore, it is very important how to improve the efficiency and stability of the data processing process.
Disclosure of Invention
Embodiments of the present invention provide a data processing method, device, server, and storage medium, which can obtain data through a unified aggregation interface call interface, implement flexible dynamic call to the interface, reduce the coupling degree with a system, and improve the efficiency and stability of data processing.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
receiving a data calling request sent by a user terminal through an aggregation interface of data processing equipment, wherein the data calling request carries an interface identifier and data parameters;
determining an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, wherein the rule configuration information comprises a mapping relation between the interface identifier and a routing rule;
determining a docking interface corresponding to the interface address, and calling data corresponding to the data parameter from the docking equipment through the docking interface;
and performing aggregation processing on the data, and sending the aggregated data obtained by the aggregation processing to the user terminal through the aggregation interface.
Further, the determining, according to rule configuration information in a preset rule table, an interface address corresponding to the interface identifier includes:
determining a routing rule corresponding to the interface identifier carried in the data calling request according to a mapping relation between the interface identifier and the routing rule in a preset rule table;
and carrying out routing addressing according to the routing rule so as to determine an interface address corresponding to the interface identifier.
Further, before the invoking of the data corresponding to the data parameter from the docking device through the docking interface, the method further includes:
determining a parameter rule corresponding to the interface identifier according to rule configuration information in a preset rule table, wherein the rule configuration information comprises a mapping relation between the interface identifier and the parameter rule;
checking the data parameters according to the parameter rule corresponding to the interface identifier;
and when the verification is successful, executing the calling of the data corresponding to the data parameter from the docking equipment through the docking interface.
Further, the parameter rules include a parameter entry rule; the verifying the data parameter according to the parameter rule corresponding to the interface identifier includes:
acquiring a parameter entering field in the parameter entering rule, and judging whether the parameter entering field in the parameter entering rule is empty or not;
and if the judgment result is that the parameter entering field in the parameter entering rule is empty, determining that the data parameter is successfully verified.
Further, the verifying the data parameter according to the parameter rule corresponding to the interface identifier includes:
if the judgment result is that the parameter entering field in the parameter entering rule is not empty, acquiring field information in the parameter entering rule;
judging whether the field information is matched with preset field information or not, wherein the field information comprises a field type and/or a field length;
and if the judgment result is that the field information is matched with the preset field information, determining that the data parameter is successfully verified.
Further, the parameter rules include a parameter-out rule; after the data corresponding to the data parameter is called from the docking device through the docking interface and before the data is aggregated, the method further includes:
the data corresponding to the data parameters called from the slave docking equipment are verified according to the parameter-generating rule;
and when the verification is successful, executing the step of carrying out aggregation processing on the data.
Further, the parameter rule comprises an exception scheduling rule; the verifying the data called from the docking equipment and corresponding to the data parameter according to the parameter-generating rule includes:
detecting whether the data meets the abnormal scheduling rule;
and when the detection result shows that the data meets the abnormal scheduling rule, performing abnormal processing on the data.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including:
the data processing device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a data calling request sent by a user terminal through an aggregation interface of the data processing device, and the data calling request carries an interface identifier and a data parameter;
the determining unit is used for determining an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, wherein the rule configuration information comprises a mapping relation between the interface identifier and a routing rule;
the calling unit is used for determining a docking interface corresponding to the interface address and calling data corresponding to the data parameter from the docking equipment through the docking interface;
and the aggregation unit is used for performing aggregation processing on the data and sending the aggregated data obtained by the aggregation processing to the user terminal through the aggregation interface.
In a third aspect, an embodiment of the present invention provides a server, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports a data processing device to execute the method described above, and the computer program includes a program, and the processor is configured to call the program to execute the method described above in the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program is executed by a processor to implement the method of the first aspect.
In the embodiment of the present invention, a server may receive a data call request sent by a user terminal through an aggregation interface of a data processing device, where the data call request carries an interface identifier and a data parameter, determine an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, where the rule configuration information includes a mapping relationship between the interface identifier and a routing rule, determine a docking interface corresponding to the interface address, call data corresponding to the data parameter from the docking device through the docking interface, aggregate the data, and send aggregated data obtained by aggregation to the user terminal through the aggregation interface. By the method, data can be acquired through the unified aggregation interface calling interface, flexible dynamic calling of the interface is realized, the coupling degree with a system is reduced, and the efficiency and the stability of data processing are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a block diagram of a data processing system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data processing method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart diagram of a data processing method according to an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a data processing apparatus provided by an embodiment of the present invention;
fig. 5 is a schematic block diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The data processing method provided by the embodiment of the invention can be applied to a data processing system, and in some embodiments, the data processing system comprises a user terminal, a server and a docking device. In some embodiments, the server includes a data processing device therein, and the data processing device includes an interface console therein, wherein the interface console is a service platform for interface invocation. In some embodiments, the user terminal may establish a communication connection with a server. In some embodiments, the docking device may establish a communication connection with a server. In some embodiments, the manner of the Communication connection may include, but is not limited to, Wi-Fi, Bluetooth, Near Field Communication (NFC), and the like.
A data processing system provided by an embodiment of the present invention is schematically illustrated with reference to fig. 1.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a data processing system according to an embodiment of the present invention. The data processing system includes: a user terminal 11, a server 12 and a docking device 13. In some embodiments, the user terminal 11 and the server 12 may establish a communication connection through a wireless communication connection; in some scenarios, the user terminal 11 and the server 12 may also establish a communication connection through a wired communication connection. In some embodiments, the server 12 and the docking device 13 may establish a communication connection by way of a wireless communication connection; in some scenarios, the server 12 and the docking device 13 may also establish a communication connection through a wired communication connection. In some embodiments, the user terminal 11 and the docking device 13 may include, but are not limited to, smart terminal devices such as a smart phone, a tablet computer, a laptop computer, a desktop computer, an in-vehicle smart terminal, and a smart watch.
In this embodiment of the present invention, the user terminal 11 may call, through a browser of the user terminal, a third party platform, or another platform, an aggregation interface of a station in the interface in the server 12 by using a specified call mode, and send a data call request to the server 12 through the aggregation interface. The server 12 determines a parameter entry rule and a parameter exit rule corresponding to the interface identifier from a preset rule table according to the interface identifier carried in the data call request, and judges whether the parameter entry rule corresponding to the interface identifier meets a parameter entry condition; and if the judgment result is that the parameter entering rule meets the parameter entering condition, determining a docking interface corresponding to the interface identifier from the docking equipment 13, and responding to the data calling request to call the target data corresponding to the data identifier from the docking equipment 13 through the docking interface. And performing aggregation processing on the target data according to the parameter-removing rule, and sending aggregated data obtained through the aggregation processing to the user terminal 11 through the aggregation interface. In some embodiments, the specified invocation means includes, but is not limited to, restfull, http, and the like.
In an example, specifically, fig. 2 may be taken as an example, and fig. 2 is a flowchart of a data processing method provided in an embodiment of the present invention, as shown in fig. 2, where the specified invocation manner is http, and the user terminal may invoke, through a browser of the user terminal, a third party platform, or another platform, a data invocation request through an aggregation interface of a middle station of an interface in a web service invocation server by using http. The server may receive a data call request sent by a user terminal through an aggregation interface of a data processing device, where the data call request carries an interface identifier and a data parameter, determine an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, where the rule configuration information includes a mapping relationship between the interface identifier and a routing rule, determine a docking interface corresponding to the interface address, call data corresponding to the data parameter from the docking device through the docking interface, aggregate the data, and send aggregated data obtained by aggregation processing to the user terminal through the aggregation interface.
By the method, data can be acquired through the unified aggregation interface calling interface, flexible dynamic calling of the interface is realized, the coupling degree with a system is reduced, and the efficiency and the stability of data processing are improved.
The data processing method provided by the embodiment of the invention is schematically described below with reference to fig. 3.
Referring to fig. 3, fig. 3 is a schematic flowchart of a data processing method according to an embodiment of the present invention, and as shown in fig. 3, the method may be executed by a data processing device, where the data processing device is disposed in a server, and the server includes an interface console, and the specific explanation is as described above, and is not repeated here. Specifically, the method of the embodiment of the present invention includes the following steps.
S301: and receiving a data calling request sent by a user terminal through an aggregation interface of the data processing equipment, wherein the data calling request carries an interface identifier and data parameters.
In the embodiment of the invention, the data processing equipment can receive a data calling request sent by a user terminal through an aggregation interface of the data processing equipment, wherein the data calling request carries an interface identifier and a data parameter. In some embodiments, the data call request may carry one or more interface identifiers.
In one embodiment, the data call request may be sent to the data processing device through a browser of the user terminal, a third party platform, or another platform, in a specified call manner through a web service and an aggregation interface of stations in an interface in the data processing device. In some embodiments, the specified invocation means includes, but is not limited to, restfull, http, and the like.
S302: and determining an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, wherein the rule configuration information comprises a mapping relation between the interface identifier and a routing rule.
In the embodiment of the present invention, the data processing device may determine, according to rule configuration information in a preset rule table, an interface address corresponding to the interface identifier, where the rule configuration information includes a mapping relationship between the interface identifier and a routing rule.
In an embodiment, when determining the interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, the data processing device may determine, according to a mapping relationship between the interface identifier and a routing rule in the preset rule table, the routing rule corresponding to the interface identifier carried in the data call request, and perform routing addressing according to the routing rule to determine the interface address corresponding to the interface identifier.
In an embodiment, before the data corresponding to the data parameter is called from the docking device through the docking interface, the data processing device may determine a parameter rule corresponding to the interface identifier according to rule configuration information in a preset rule table, where the rule configuration information includes a mapping relationship between the interface identifier and the parameter rule, verify the data parameter according to the parameter rule corresponding to the interface identifier, and call the data corresponding to the data parameter from the docking device through the docking interface when verification is successful.
In one embodiment, the parameter rules include a parameter entry rule; when the data processing device checks the data parameter according to the parameter rule corresponding to the interface identifier, the data processing device may acquire a parameter entry field in the parameter entry rule, and determine whether the parameter entry field in the parameter entry rule is empty, and if the determination result is that the parameter entry field in the parameter entry rule is empty, it may be determined that the data parameter is checked successfully.
In an embodiment, when the data processing device performs verification processing on the data parameter according to the parameter rule corresponding to the interface identifier, if the determination result indicates that the entry field in the entry rule is not empty, field information in the entry rule may be obtained, and it is determined whether the field information matches preset field information, where the field information includes a field type and/or a field length, and if the determination result indicates that the field information matches the preset field information, it may be determined that the data parameter is successfully verified. In some embodiments, the field information includes a field type and/or a field length.
In one embodiment, the parameter rules include a parameter-out rule; after the image processing device calls the data corresponding to the data parameter from the docking device through the docking interface and before the data is aggregated, the image processing device may verify the data called from the docking device corresponding to the data parameter according to the parameter-issuing rule, and when the verification is successful, aggregate the data.
In one embodiment, the breakout rules include exception scheduling rules; when the image processing device verifies the data called from the docking device and corresponding to the data parameter according to the parameter-generating rule, the image processing device can detect whether the data meets the abnormal scheduling rule, and when the detection result indicates that the data meets the abnormal scheduling rule, the image processing device performs abnormal processing on the data. In some embodiments, the exception scheduling rules include, but are not limited to, fault-tolerant handling of timeout, exception, and the like issues.
In one embodiment, the parameter rules include data transformation rules; when the data corresponding to the data parameters called from the docking equipment is verified according to the parameter-generating rule, the data processing equipment can detect whether the data meets the data conversion rule, and if the detection result indicates that the data meets the data conversion rule, the data type of the data can be converted into a target data type corresponding to the data conversion rule, so as to obtain the aggregated data.
In some embodiments, different interface identifications correspond to different in-call rules and out-call rules. In some embodiments, the preset rule table is configured in advance in an interface console of the server, where the preset rule table includes a mapping relationship between an interface identifier and a routing rule and a mapping relationship between an interface identifier and a parameter rule, where the mapping relationship between the interface identifier and the parameter rule includes a mapping relationship between an interface identifier and an entry rule and a mapping relationship between an interface identifier and an exit rule.
In one embodiment, when determining an entry rule and an exit rule corresponding to an interface identifier from a preset rule table according to the interface identifier carried in the data call request, the data processing device may determine the entry rule and the exit rule corresponding to the interface identifier according to a mapping relationship between the interface identifier and the entry rule and a mapping relationship between the interface identifier and the exit rule in the preset rule table; the parameter-entering rules comprise one or more of parameter-entering basic rules, parameter-entering checking rules, request rules and request link rules, and the parameter-outputting rules comprise one or more of parameter-outputting basic rules, parameter-outputting checking rules, newly-added field rules, data conversion rules, data forwarding rules and exception scheduling rules.
In one example, the participation rule is as shown in table 1 below:
TABLE 1
Rule of reference | Description of the invention |
Basic rules of reference | Interface address routing rules |
Incorporation of rules of check | Robust check of parameter entry field |
Request rules | Request body, format definition |
Request link rules | Location of ginseng |
In one example, the parameter rules are as shown in table 2 below:
TABLE 2
Rule of occurrence | Description of the invention |
Basic rules of presence | Intercepting the response body rule, responding successfully or not, and processing the corresponding response code |
Leaching rules of school | Robust verification of presence field |
Newly added field rules | Logic for processing newly added fields |
Data transformation rules | Conversion of data types, data adaptation |
Data forwarding rules | Other logic functions, data forwarding calls made when data does not satisfy conditions |
Exception scheduling rules | Handling exceptions to network, timeout, etc |
S303: and determining a docking interface corresponding to the interface address, and calling data corresponding to the data parameter from the docking equipment through the docking interface.
In this embodiment of the present invention, the data processing device may determine the docking interface corresponding to the interface address, and call data corresponding to the data parameter from the docking device through the docking interface.
In one embodiment, when the data processing device calls the target data corresponding to the data parameter from the docking device through the docking interface, the data corresponding to the data parameter can be called from the docking interface corresponding to the docking interface address through the remote service. In certain embodiments, the data parameter includes, but is not limited to, a data identification.
S304: and performing aggregation processing on the data, and sending the aggregated data obtained by the aggregation processing to the user terminal through the aggregation interface.
In the embodiment of the present invention, the data processing device may perform aggregation processing on the data, and send aggregated data obtained through the aggregation processing to the user terminal through the aggregation interface.
In the embodiment of the present invention, a data processing device may receive a data call request sent by a user terminal through an aggregation interface of the data processing device, where the data call request carries an interface identifier and a data parameter, determine an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, where the rule configuration information includes a mapping relationship between the interface identifier and a routing rule, determine a docking interface corresponding to the interface address, call data corresponding to the data parameter from the docking device through the docking interface, aggregate the data, and send aggregated data obtained by aggregation to the user terminal through the aggregation interface. By the method, data can be acquired through the unified aggregation interface calling interface, flexible dynamic calling of the interface is realized, the coupling degree with a system is reduced, and the efficiency and the stability of data processing are improved.
The embodiment of the invention also provides a data processing device, which is used for executing the unit of the method in any one of the preceding claims. Specifically, referring to fig. 4, fig. 4 is a schematic block diagram of a data processing apparatus according to an embodiment of the present invention. The data processing apparatus of the present embodiment includes: receiving section 401, determining section 402, determining section 403, calling section 404, and processing section 405.
A receiving unit 401, configured to receive a data call request sent by a user terminal through an aggregation interface of a data processing device, where the data call request carries an interface identifier and a data parameter;
a determining unit 402, configured to determine, according to rule configuration information in a preset rule table, an interface address corresponding to the interface identifier, where the rule configuration information includes a mapping relationship between the interface identifier and a routing rule;
a calling unit 403, configured to determine a docking interface corresponding to the interface address, and call data corresponding to the data parameter from a docking device through the docking interface;
an aggregation unit 404, configured to perform aggregation processing on the data, and send aggregated data obtained through the aggregation processing to the user terminal through the aggregation interface.
Further, when the determining unit 402 determines the interface address corresponding to the interface identifier according to the rule configuration information in the preset rule table, the determining unit is specifically configured to:
determining a routing rule corresponding to the interface identifier carried in the data calling request according to a mapping relation between the interface identifier and the routing rule in a preset rule table;
and carrying out routing addressing according to the routing rule so as to determine an interface address corresponding to the interface identifier.
Further, before the determining unit 402 calls the data corresponding to the data parameter from the docking device through the docking interface, it is further configured to:
determining a parameter rule corresponding to the interface identifier according to rule configuration information in a preset rule table, wherein the rule configuration information comprises a mapping relation between the interface identifier and the parameter rule;
checking the data parameters according to the parameter rule corresponding to the interface identifier;
and when the verification is successful, executing the step of calling the data corresponding to the data parameters from the docking equipment through the docking interface.
Further, the parameter rules include a parameter entry rule; when the determining unit 402 performs verification processing on the data parameter according to the parameter rule corresponding to the interface identifier, specifically configured to:
acquiring a parameter entering field in the parameter entering rule, and judging whether the parameter entering field in the parameter entering rule is empty or not;
and if the judgment result is that the parameter entering field in the parameter entering rule is empty, determining that the data parameter is successfully verified.
Further, when the determining unit 402 performs verification processing on the data parameter according to the parameter rule corresponding to the interface identifier, specifically configured to:
if the judgment result is that the parameter entering field in the parameter entering rule is not empty, acquiring field information in the parameter entering rule;
judging whether the field information is matched with preset field information or not, wherein the field information comprises a field type and/or a field length;
and if the judgment result is that the field information is matched with the preset field information, determining that the data parameter is successfully verified.
Further, the parameter rules include a parameter-out rule; after the invoking unit 403 invokes the data corresponding to the data parameter from the docking device through the docking interface, before performing aggregation processing on the data, the invoking unit is further configured to:
the data corresponding to the data parameters called from the slave docking equipment are verified according to the parameter-generating rule;
and when the verification is successful, executing the step of carrying out aggregation processing on the data.
Further, the parameter rule comprises an exception scheduling rule; when the invoking unit 403 verifies, according to the parameter generating rule, that the data corresponding to the data parameter is invoked from the slave docking device, specifically, the invoking unit is configured to:
detecting whether the data meets the abnormal scheduling rule;
and when the detection result shows that the data meets the abnormal scheduling rule, performing abnormal processing on the data.
In the embodiment of the present invention, a data processing device may receive a data call request sent by a user terminal through an aggregation interface of the data processing device, where the data call request carries an interface identifier and a data parameter, determine an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, where the rule configuration information includes a mapping relationship between the interface identifier and a routing rule, determine a docking interface corresponding to the interface address, call data corresponding to the data parameter from the docking device through the docking interface, aggregate the data, and send aggregated data obtained by aggregation to the user terminal through the aggregation interface. By the method, data can be acquired through the unified aggregation interface calling interface, flexible dynamic calling of the interface is realized, the coupling degree with a system is reduced, and the efficiency and the stability of data processing are improved.
Referring to fig. 5, fig. 5 is a schematic block diagram of a server according to an embodiment of the present invention. The server in this embodiment as shown in the figure may include: one or more processors 501; one or more input devices 502, one or more output devices 503, and memory 504. The processor 501, the input device 502, the output device 503, and the memory 504 are connected by a bus 505. The memory 504 is used for storing computer programs, including programs, and the processor 501 is used for executing the programs stored in the memory 504. Wherein the processor 501 is configured to invoke the program to perform:
receiving a data calling request sent by a user terminal through an aggregation interface of data processing equipment, wherein the data calling request carries an interface identifier and data parameters;
determining an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, wherein the rule configuration information comprises a mapping relation between the interface identifier and a routing rule;
determining a docking interface corresponding to the interface address, and calling data corresponding to the data parameter from the docking equipment through the docking interface;
and performing aggregation processing on the data, and sending the aggregated data obtained by the aggregation processing to the user terminal through the aggregation interface.
Further, when the processor 501 determines the interface address corresponding to the interface identifier according to the rule configuration information in the preset rule table, the processor is specifically configured to:
determining a routing rule corresponding to the interface identifier carried in the data calling request according to a mapping relation between the interface identifier and the routing rule in a preset rule table;
and carrying out routing addressing according to the routing rule so as to determine an interface address corresponding to the interface identifier.
Further, before the processor 501 calls the data corresponding to the data parameter from the docking device through the docking interface, the processor is further configured to:
determining a parameter rule corresponding to the interface identifier according to rule configuration information in a preset rule table, wherein the rule configuration information comprises a mapping relation between the interface identifier and the parameter rule;
checking the data parameters according to the parameter rule corresponding to the interface identifier;
and when the verification is successful, executing the step of calling the data corresponding to the data parameters from the docking equipment through the docking interface.
Further, the parameter rules include a parameter entry rule; when the processor 501 performs verification processing on the data parameter according to the parameter rule corresponding to the interface identifier, the method is specifically configured to:
acquiring a parameter entering field in the parameter entering rule, and judging whether the parameter entering field in the parameter entering rule is empty or not;
and if the judgment result is that the parameter entering field in the parameter entering rule is empty, determining that the data parameter is successfully verified.
Further, when the processor 501 performs verification processing on the data parameter according to the parameter rule corresponding to the interface identifier, the processor is specifically configured to:
if the judgment result is that the parameter entering field in the parameter entering rule is not empty, acquiring field information in the parameter entering rule;
judging whether the field information is matched with preset field information or not, wherein the field information comprises a field type and/or a field length;
and if the judgment result is that the field information is matched with the preset field information, determining that the data parameter is successfully verified.
Further, the parameter rules include a parameter-out rule; after the processor 501 calls the data corresponding to the data parameter from the docking device through the docking interface, before performing aggregation processing on the data, the processor is further configured to:
the data corresponding to the data parameters called from the slave docking equipment are verified according to the parameter-generating rule;
and when the verification is successful, executing the step of carrying out aggregation processing on the data.
Further, the parameter rule comprises an exception scheduling rule; when the processor 501 checks the data called from the slave docking device and corresponding to the data parameter according to the parameter-generating rule, the processor is specifically configured to:
detecting whether the data meets the abnormal scheduling rule;
and when the detection result shows that the data meets the abnormal scheduling rule, performing abnormal processing on the data.
In the embodiment of the present invention, a server may receive a data call request sent by a user terminal through an aggregation interface of a data processing device, where the data call request carries an interface identifier and a data parameter, determine an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, where the rule configuration information includes a mapping relationship between the interface identifier and a routing rule, determine a docking interface corresponding to the interface address, call data corresponding to the data parameter from the docking device through the docking interface, so as to aggregate the data, and send aggregated data obtained by aggregation processing to the user terminal through the aggregation interface. By the method, data can be acquired through the unified aggregation interface calling interface, flexible dynamic calling of the interface is realized, the coupling degree with a system is reduced, and the efficiency and the stability of data processing are improved.
It should be understood that, in the embodiment of the present invention, the Processor 501 may be a Central Processing Unit (CPU), and may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 504 may include a read-only memory and a random access memory, and provides instructions and data to the processor 501. A portion of the memory 504 may also include non-volatile random access memory. For example, the memory 504 may also store device type information.
In a specific implementation, the processor 501, the input device 502, and the output device 503 described in this embodiment of the present invention may execute the implementation described in the method embodiment shown in fig. 3 provided in this embodiment of the present invention, and may also execute the implementation of the data processing device described in fig. 4 in this embodiment of the present invention, which is not described again here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the data processing method described in the embodiment corresponding to fig. 3 is implemented, and also the data processing device according to the embodiment corresponding to fig. 4 of the present invention may be implemented, which is not described herein again.
The computer readable storage medium may be an internal storage unit of the data processing device according to any of the foregoing embodiments, for example, a hard disk or a memory of the data processing device. The computer readable storage medium may also be an external storage device of the data processing apparatus, such as a plug-in hard disk provided on the data processing apparatus, a Smart Memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the data processing apparatus. The computer-readable storage medium is used for storing the computer program and other programs and data required by the data processing apparatus. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage media comprise: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a part of the embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.
Claims (10)
1. A data processing method, comprising:
receiving a data calling request sent by a user terminal through an aggregation interface of data processing equipment, wherein the data calling request carries an interface identifier and data parameters;
determining an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, wherein the rule configuration information comprises a mapping relation between the interface identifier and a routing rule;
determining a docking interface corresponding to the interface address, and calling data corresponding to the data parameter from the docking equipment through the docking interface;
and performing aggregation processing on the data, and sending the aggregated data obtained by the aggregation processing to the user terminal through the aggregation interface.
2. The method according to claim 1, wherein the determining an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table includes:
determining a routing rule corresponding to the interface identifier carried in the data calling request according to a mapping relation between the interface identifier and the routing rule in a preset rule table;
and carrying out routing addressing according to the routing rule so as to determine an interface address corresponding to the interface identifier.
3. The method of claim 2, wherein before the invoking of the data corresponding to the data parameter from the docking device via the docking interface, further comprises:
determining a parameter rule corresponding to the interface identifier according to rule configuration information in a preset rule table, wherein the rule configuration information comprises a mapping relation between the interface identifier and the parameter rule;
checking the data parameters according to the parameter rule corresponding to the interface identifier;
and when the verification is successful, executing the step of calling the data corresponding to the data parameters from the docking equipment through the docking interface.
4. The method of claim 3, wherein the parameter rules include an entry rule; the verifying the data parameter according to the parameter rule corresponding to the interface identifier includes:
acquiring a parameter entering field in the parameter entering rule, and judging whether the parameter entering field in the parameter entering rule is empty or not;
and if the judgment result is that the parameter entering field in the parameter entering rule is empty, determining that the data parameter is successfully verified.
5. The method according to claim 4, wherein the verifying the data parameter according to the parameter rule corresponding to the interface identifier comprises:
if the judgment result is that the parameter entering field in the parameter entering rule is not empty, acquiring field information in the parameter entering rule;
judging whether the field information is matched with preset field information or not, wherein the field information comprises a field type and/or a field length;
and if the judgment result is that the field information is matched with the preset field information, determining that the data parameter is successfully verified.
6. The method of claim 1, wherein the parameter rules comprise a parameter rule; after the data corresponding to the data parameter is called from the docking device through the docking interface and before the data is aggregated, the method further includes:
the data corresponding to the data parameters called from the slave docking equipment are verified according to the parameter-generating rule;
and when the verification is successful, executing the step of carrying out aggregation processing on the data.
7. The method of claim 6, wherein the breakout rules include exception scheduling rules; the verifying the data called from the docking equipment and corresponding to the data parameter according to the parameter-generating rule includes:
detecting whether the data meets the abnormal scheduling rule;
and when the detection result shows that the data meets the abnormal scheduling rule, performing abnormal processing on the data.
8. A data processing apparatus, characterized by comprising:
the data processing device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a data calling request sent by a user terminal through an aggregation interface of the data processing device, and the data calling request carries an interface identifier and a data parameter;
the determining unit is used for determining an interface address corresponding to the interface identifier according to rule configuration information in a preset rule table, wherein the rule configuration information comprises a mapping relation between the interface identifier and a routing rule;
the calling unit is used for determining a docking interface corresponding to the interface address and calling data corresponding to the data parameter from the docking equipment through the docking interface;
and the aggregation unit is used for performing aggregation processing on the data and sending the aggregated data obtained by the aggregation processing to the user terminal through the aggregation interface.
9. A server comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store a computer program, the computer program comprising a program, the processor being configured to invoke the program to perform the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010900807.6A CN112039896B (en) | 2020-08-29 | 2020-08-29 | Data processing method, equipment, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010900807.6A CN112039896B (en) | 2020-08-29 | 2020-08-29 | Data processing method, equipment, server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112039896A true CN112039896A (en) | 2020-12-04 |
CN112039896B CN112039896B (en) | 2022-07-08 |
Family
ID=73586660
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010900807.6A Active CN112039896B (en) | 2020-08-29 | 2020-08-29 | Data processing method, equipment, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112039896B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112800047A (en) * | 2021-03-03 | 2021-05-14 | 百果园技术(新加坡)有限公司 | User associated data processing method, device, equipment and storage medium |
CN112860308A (en) * | 2021-01-14 | 2021-05-28 | 网宿科技股份有限公司 | Configuration method of interface definition, service processing method, server and storage medium |
CN114615242A (en) * | 2022-03-10 | 2022-06-10 | 北京沃东天骏信息技术有限公司 | Data interaction method, server, terminal and computer readable storage medium |
CN116450465A (en) * | 2023-06-14 | 2023-07-18 | 建信金融科技有限责任公司 | Data processing method, device, equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105357275A (en) * | 2015-10-12 | 2016-02-24 | 江西掌中无限网络科技股份有限公司 | Intelligent aggregation interface method and system |
US20170048914A1 (en) * | 2014-04-29 | 2017-02-16 | Huawei Technologies Co., Ltd. | Data Transmission Method and Device |
CN110109982A (en) * | 2017-12-28 | 2019-08-09 | 南昌弘为企业管理有限公司 | The method and system of intelligence configuration Ploymerized Interface |
CN110401592A (en) * | 2019-07-30 | 2019-11-01 | 三体云智能科技有限公司 | The method and apparatus of stream compression in a kind of message channel |
CN111314459A (en) * | 2020-02-13 | 2020-06-19 | 北京奇艺世纪科技有限公司 | Service request method, device, electronic equipment and storage medium |
-
2020
- 2020-08-29 CN CN202010900807.6A patent/CN112039896B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170048914A1 (en) * | 2014-04-29 | 2017-02-16 | Huawei Technologies Co., Ltd. | Data Transmission Method and Device |
CN105357275A (en) * | 2015-10-12 | 2016-02-24 | 江西掌中无限网络科技股份有限公司 | Intelligent aggregation interface method and system |
CN110109982A (en) * | 2017-12-28 | 2019-08-09 | 南昌弘为企业管理有限公司 | The method and system of intelligence configuration Ploymerized Interface |
CN110401592A (en) * | 2019-07-30 | 2019-11-01 | 三体云智能科技有限公司 | The method and apparatus of stream compression in a kind of message channel |
CN111314459A (en) * | 2020-02-13 | 2020-06-19 | 北京奇艺世纪科技有限公司 | Service request method, device, electronic equipment and storage medium |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112860308A (en) * | 2021-01-14 | 2021-05-28 | 网宿科技股份有限公司 | Configuration method of interface definition, service processing method, server and storage medium |
CN112800047A (en) * | 2021-03-03 | 2021-05-14 | 百果园技术(新加坡)有限公司 | User associated data processing method, device, equipment and storage medium |
CN112800047B (en) * | 2021-03-03 | 2024-04-05 | 百果园技术(新加坡)有限公司 | User associated data processing method, device, equipment and storage medium |
CN114615242A (en) * | 2022-03-10 | 2022-06-10 | 北京沃东天骏信息技术有限公司 | Data interaction method, server, terminal and computer readable storage medium |
CN116450465A (en) * | 2023-06-14 | 2023-07-18 | 建信金融科技有限责任公司 | Data processing method, device, equipment and medium |
CN116450465B (en) * | 2023-06-14 | 2023-09-15 | 建信金融科技有限责任公司 | Data processing method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN112039896B (en) | 2022-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112039896B (en) | Data processing method, equipment, server and storage medium | |
CN108462760B (en) | Electronic device, automatic cluster access domain name generation method and storage medium | |
CN107911401B (en) | Application plug-in extension function method and application server | |
CN110247897B (en) | System login method, device, gateway and computer readable storage medium | |
CN110048879A (en) | Micro services register method, device, electronic equipment and computer readable storage medium | |
WO2020024343A1 (en) | Method invoke chain tracing method, electronic apparatus, and computer-readable storage medium | |
CN112948835A (en) | Applet risk detection method and device | |
CN107273226B (en) | Method and device for integrating components in android system and calling integrated components | |
CN113691618B (en) | Message notification method, device, message center and storage medium | |
CN104899730B (en) | Mobile terminal data processing method, terminal and system | |
CN109936586B (en) | Communication processing method and device | |
CN112272211A (en) | Service request processing method, device and system | |
CN108243180B (en) | Bank policy data docking method and policy data server | |
CN111523872A (en) | Transaction processing method and device, mobile terminal and computer readable storage medium | |
CN110544099A (en) | Payment method, payment processing system and payment acceptance terminal based on block chain | |
CN112749073B (en) | Service testing method and device, storage medium and electronic equipment | |
CN117294745B (en) | Network connection state information sending method, device, electronic equipment and medium | |
CN116340930B (en) | Method, device, equipment and medium for confirming system change | |
CN114942797B (en) | System configuration method, device, equipment and storage medium based on side car mode | |
CN112235255B (en) | Voice data processing method and device and server | |
CN113821248B (en) | Service method of vehicle-end software, vehicle-end software and related equipment thereof | |
CN112787989B (en) | Signature method and device | |
CN115309480A (en) | Interface change processing method, system, electronic equipment and storage medium | |
CN116886716A (en) | Contact information determining method and device, storage medium and electronic equipment | |
CN114329383A (en) | Login-free access method, device, equipment and medium of third-party application system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |