CN116708556A - Data forwarding method, device, equipment and storage medium - Google Patents

Data forwarding method, device, equipment and storage medium Download PDF

Info

Publication number
CN116708556A
CN116708556A CN202310518374.1A CN202310518374A CN116708556A CN 116708556 A CN116708556 A CN 116708556A CN 202310518374 A CN202310518374 A CN 202310518374A CN 116708556 A CN116708556 A CN 116708556A
Authority
CN
China
Prior art keywords
data
destination
target
processing rule
expression
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.)
Pending
Application number
CN202310518374.1A
Other languages
Chinese (zh)
Inventor
张扬扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202310518374.1A priority Critical patent/CN116708556A/en
Publication of CN116708556A publication Critical patent/CN116708556A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a data forwarding method, a device, equipment and a storage medium, relates to the technical field of computers, in particular to the technical field of data processing, data forwarding and data transmission, and can be applied to the scenes of data forwarding, data transmission and the like. The specific implementation scheme comprises the following steps: processing the source data according to a preset first data processing rule to obtain processed source data; inputting the processed source data into a preconfigured dynamic data destination expression, determining target data corresponding to a target destination through the dynamic data destination expression, wherein the dynamic data destination expression is generated according to the target destination, and the source data comprises target data; forwarding the target data to the target destination. The method and the device can reduce the number of configured rules, meet the requirements of different users, reduce the consumption of resources and lighten the traffic pressure of rule engine services.

Description

Data forwarding method, device, equipment and storage medium
Technical Field
The disclosure relates to the technical field of computers, in particular to the technical fields of data processing, data forwarding, data transmission and the like, and can be applied to the scenes of data forwarding, data transmission and the like, and particularly relates to a data forwarding method, a device, equipment and a storage medium.
Background
The data forwarding is to forward the data uploaded by the internet of things equipment to different data destinations after data processing so as to achieve different business targets.
Currently, data is forwarded to different data destinations mainly by configuring a plurality of rules.
However, the number of rules supported by the current rule engine service is limited, and the manner of configuring multiple rules consumes a lot of resources.
Disclosure of Invention
The present disclosure provides a data forwarding method, apparatus, device, and storage medium, which can reduce the number of configured rules, meet the requirements of different users, reduce the consumption of resources, and reduce the traffic pressure of the rule engine service.
According to a first aspect of the present disclosure, there is provided a data forwarding method, the method comprising: processing the source data according to a preset first data processing rule to obtain processed source data; inputting the processed source data into a preconfigured dynamic data destination expression, determining target data corresponding to a target destination through the dynamic data destination expression, wherein the dynamic data destination expression is generated according to the target destination, and the source data comprises target data; forwarding the target data to the target destination.
According to a second aspect of the present disclosure, there is provided a data forwarding apparatus, the apparatus comprising: the device comprises a processing unit, a determining unit and a forwarding unit.
The processing unit is used for processing the source data according to a preset first data processing rule to obtain processed source data; a determining unit, configured to input the processed source data into a preconfigured dynamic data destination expression, determine target data corresponding to a target destination through the dynamic data destination expression, where the dynamic data destination expression is generated according to the target destination, and the source data includes the target data; and the forwarding unit is used for forwarding the target data to the target destination.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method as in the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method according to the first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flow chart of a data forwarding method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart of an implementation of S103 in FIG. 1 according to an embodiment of the disclosure;
FIG. 3 is a schematic flow chart of an implementation of S201 in FIG. 2 according to an embodiment of the disclosure;
fig. 4 is a schematic diagram of a data forwarding method according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a composition of a data forwarding device according to an embodiment of the present disclosure;
fig. 6 is another schematic diagram of a data forwarding device according to an embodiment of the present disclosure;
fig. 7 is a schematic block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure provided by embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be appreciated that in embodiments of the present disclosure, the character "/" generally indicates that the context associated object is an "or" relationship. The terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
The data forwarding is to forward the data uploaded by the internet of things equipment to different data destinations after data processing so as to achieve different business targets.
Currently, data is forwarded to different data destinations mainly by configuring a plurality of rules.
However, the number of rules supported by the current rule engine service is limited, and the manner of configuring multiple rules consumes a lot of resources.
In an exemplary embodiment, when forwarding data, the data uploaded by the internet of things device is forwarded to different data destinations after being processed by configuring a plurality of rules, so as to achieve different business objectives. Typically, the machine resources used to deploy the rule engine service are limited, so the rule engine service is limited in data processing capacity, and the excessive traffic to the rule engine can present challenges to the operation and maintenance of the service.
For example, the number of rules supported by a rule engine service is generally limited, and each rule may involve other related resources, such as network bandwidth, etc., which are also limited and may reach the upper limit of these services, resulting in an inability to meet the needs of the user; assuming that the user needs to forward the data of the same data source to different data destinations in different data processing modes, 20 rules need to be configured to meet the requirement, and the number of rules supported by the rule engine service is 15, then the requirement is difficult to meet. If a plurality of rules are configured for the same data source, the flow reaching the rule engine is multiple times of the original flow, so that more resources are consumed, for example, higher network bandwidth is required for the upstream service to send data to the rule engine service, the flow is larger than the performance requirement for each service, certain challenges are brought to the operation and maintenance work of the service, and the method is not suitable for privately-allocated scenes with limited resources.
Under the background technology, the present disclosure provides a data forwarding method, which can reduce the number of configured rules, meet the requirements of different users, reduce the consumption of resources, and reduce the traffic pressure of rule engine services.
The execution body of the data forwarding method may be a computer or a server, or may be another device having data processing capability, for example. The subject of execution of the method is not limited herein.
In some embodiments, the server may be a single server, or may be a server cluster formed by a plurality of servers. In some implementations, the server cluster may also be a distributed cluster. The present disclosure is not limited to a specific implementation of the server.
Fig. 1 is a flow chart of a data forwarding method according to an embodiment of the present disclosure. As shown in fig. 1, the method may include S101-S103.
S101, processing the source data according to a preset first data processing rule to obtain processed source data.
For example, source data to be forwarded may be obtained from a data source according to a user's requirement, and the source data may be processed according to a preset first data processing rule, so as to obtain processed source data. The first data processing rule refers to data filtering and data processing statement configured by the rule engine, and the data processing statement can be a data screening statement, a format conversion statement and the like.
For example, it is assumed that the source data to be forwarded is data a, where data a includes data A1, data A2, and data A3, and the really needed data is data A2, and at this time, the data a may be processed according to a preset first data processing rule, and the data A1 and the data A3 may be filtered to obtain the needed data A2.
S102, inputting the processed source data into a preconfigured dynamic data destination expression, determining target data corresponding to a target destination through the dynamic data destination expression, wherein the dynamic data destination expression is generated according to the target destination, and the source data comprises the target data.
For example, the source data after processing may be input into a preconfigured dynamic data destination expression, which may determine target data corresponding to the target destination in combination with the source data after processing. Wherein the dynamic data destination expression is a specific sentence set according to the target destination and the grammar specification of the system, and one data destination may correspond to one dynamic data destination expression.
For example, assuming that the user needs to be a message of the same data source, according to different contents in the data, the message is finally sent to topic with different Kafka data destinations, corresponding dynamic data destination expressions may be respectively configured for the topic with different Kafka data destinations, and the dynamic data destination expressions determine target data corresponding to the topic with different Kafka data destinations in combination with the processed source data, so that the target data corresponding to the topic with different Kafka data destinations may be respectively written into the topic with corresponding Kafka data destination.
S103, forwarding the target data to a target destination.
For example, the target data corresponding to the target destination determined by the dynamic data destination expression may be forwarded to the target destination.
According to the method and the device, the corresponding dynamic data destination expression is preconfigured for each data destination, the target data corresponding to each data destination is determined by utilizing the dynamic data destination expression, the number of the configured rules can be reduced, the requirements of different users can be met, the consumption of resources can be reduced, and the traffic pressure of rule engine service can be reduced.
Fig. 2 is a schematic flowchart of an implementation of S103 in fig. 1 according to an embodiment of the disclosure. As shown in fig. 2, S103 shown in fig. 1 may include S201-S203.
S201, determining a target data processing rule corresponding to a target destination, wherein the target data processing rule is preconfigured according to a data requirement corresponding to the target destination.
For example, a target data processing rule corresponding to a target destination may be preconfigured according to a data requirement corresponding to the target destination. The target data processing rule may be data filtering, data format conversion, etc.
For example, assuming that a certain data destination needs to be written into the data A1 in the data a, according to the data requirement of the data destination, a target data processing rule corresponding to the data destination may be preconfigured to perform data filtering, so as to filter the data A1 in the data a.
S202, processing the target data according to the target data processing rule to obtain processed target data.
For example, the target data may be processed according to a pre-configured target data processing rule, so as to obtain processed target data.
For example, assuming that the target data processing rule is data format conversion, the target data is subjected to data format conversion, and the target data after the data format conversion can be obtained.
S203, forwarding the processed target data to a target destination.
For example, target data processed according to the target data processing rule may be forwarded to a target destination.
According to the method and the device, the target data is processed according to the target data processing rule after the target data processing rule corresponding to the target destination is determined, and the processed target data is forwarded to the target destination, so that the target data can be processed according to the requirements of users, the requirements of different users are met, and the consumption of resources is reduced.
Fig. 3 is a schematic flowchart of an implementation of S201 in fig. 2 provided in an embodiment of the disclosure. As shown in fig. 3, S201 shown in fig. 2 may include S301-S302.
S301, acquiring a configuration rule corresponding to source data, wherein the configuration rule comprises at least one second data processing rule corresponding to a destination, and the second data processing rule is preconfigured according to data requirements corresponding to the destination.
Illustratively, a configuration rule corresponding to the source data may be obtained, the configuration rule including a second data processing rule corresponding to the at least one destination. Wherein, the configuration rule refers to that a user can select to configure a plurality of data destinations for one rule; the second data processing rule is preconfigured according to the data requirements corresponding to the data destination.
For example, the user may choose to configure a plurality of data destinations, such as Kafka data destination, hypertext transfer protocol (hyper text transfer protocol, HTTP) data destination, time series database (time series database, TSDB) data destination, etc., to one rule, and then configure a corresponding second data processing rule to each data destination configured, respectively.
S302, determining a second data processing rule corresponding to the target destination from the configuration rules as a target data processing rule.
For example, a target destination may be determined from a plurality of data destinations configured by one rule, a second data processing rule corresponding to the target destination may be further determined, and the determined second data processing rule corresponding to the target destination may be used as the target data processing rule.
For example, assuming that a certain user configures three data destinations for one rule, namely, data destination 1, data destination 2 and data destination 3, and determines that the target destination is data destination 2, it is possible to further determine a second data processing rule corresponding to data destination 2, and take the second data processing rule corresponding to data destination 2 as the target data processing rule.
According to the embodiment, the configuration rule corresponding to the source data is obtained, the second data processing rule corresponding to the target destination is determined from the configuration rule corresponding to the source data, and the second data processing rule corresponding to the target destination is used as the target data processing rule, so that the requirements of different users can be further met.
In some embodiments, the method may further include: and updating the target data processing rule according to the data requirement corresponding to the target destination.
For example, different target data processing rules may be selected to process target data accordingly according to the data requirements corresponding to the target destination. The data requirement corresponding to the target destination comprises the data requirement of the user.
For example, assuming that the data requirement corresponding to the data destination 1 is to perform data filtering on the target data, the target data processing rule corresponding to the data destination 1 may be configured to perform data filtering, and the data requirement corresponding to the data destination 2 is to perform data format conversion on the target data, the target data processing rule corresponding to the data destination 2 may be configured to perform data format conversion.
According to the embodiment, the target data processing rule is updated according to the data requirement corresponding to the target destination, so that the requirements of different users can be met, and the flexibility of data processing and data forwarding is improved.
In some embodiments, processing the source data according to a preset first data processing rule to obtain processed source data may include: and processing the source data according to a preset first data processing rule by a target processing engine to obtain processed source data.
Inputting the processed source data into a preconfigured dynamic data destination expression, and determining target data corresponding to the target destination through the dynamic data destination expression can comprise: and inputting the processed source data into a preconfigured dynamic data destination expression through a target processing engine, and determining target data corresponding to a target destination through the dynamic data destination expression.
The method includes the steps of processing source data according to a preset first data processing rule, obtaining processed source data, inputting the processed source data into a preset dynamic data destination expression, and determining target data corresponding to a target destination through the dynamic data destination expression.
According to the embodiment, the same processing engine is utilized to process the source data according to the preset first data processing rule, the processed source data and the processed source data are input into the preset dynamic data destination expression, and the target data corresponding to the target destination is determined through the dynamic data destination expression, so that the consumption of resources can be reduced, and the data processing efficiency is improved.
In some embodiments, the target destination includes a first destination and a second destination; the dynamic data destination expressions corresponding to the first destination and the second destination are the same.
For example, the target destination may include a first destination and a second destination, where the dynamic data destination expressions corresponding to the first destination and the second destination are the same, and the second destination may be a plurality of data destinations. I.e., one dynamic data destination expression may correspond to multiple data destinations.
For example, the target destination may include data destination 1 and data destination 2, where the dynamic data destination expressions corresponding to data destination 1 and data destination 2 are the same, and where this dynamic data destination expression may determine the target data corresponding to data destination 1 and data destination 2, respectively.
According to the embodiment, different data destinations correspond to the same dynamic data destination expression, so that the number of dynamic data destination expressions can be reduced, and the efficiency of data processing and data forwarding is improved.
In some embodiments, the above method is applied to a rule engine service deployed in a privately owned data transmission system.
The rule engine service may process and forward data accessed by the internet of things device, and the rule engine service is deployed in the privately-owned data transmission system, which means that the rule engine service is deployed in an environment provided by a user and only provides services for the user, where the rule engine service needs to be deployed and operated separately.
According to the embodiment, the data forwarding method is applied to the rule engine service, and the rule engine service is deployed in the privately-owned data transmission system, so that the rule engine service can meet the service function requirements of different users, and larger data processing capacity is provided as much as possible when resources are limited.
Fig. 4 is a schematic diagram of a data forwarding method according to an embodiment of the present disclosure. As shown in fig. 4, in a specific example, in the internet of things scenario, a user may use a rule engine service to process and forward internet of things device data. The rule engine service of the internet of things mainly relates to data source, data processing, data forwarding and data destination services. Wherein the data source is the source from which the rule engine is to process forwarding data; the data processing is responsible for carrying out data filtering, data screening, data format conversion and the like on the data acquired from the data source; the data forwarding is to forward the data after the data is processed by the rule engine to a data destination for storage or processing; the data destination service includes a Kafka service, an HTTP service, a TSDB service, and the like.
The upstream service of the rule engine can be used as a data source service of the rule engine, the data in the Internet of things equipment is uploaded to a data source through the Internet of things equipment, then the data of the data source is sent to a rule engine data processing module, and the rule engine data processing module processes the source data according to a preset first data processing rule to obtain processed source data.
When the user's demand is simpler, need not carry out extra data processing to the source data after handling, only need send the data of different content to the different data destination resource of the same type, just input the source data after handling into the dynamic data destination expression of pre-configuration, confirm the target data that the target destination corresponds through dynamic data destination expression, then forward the target data to the target destination.
When the user's requirement is complex, for example, the user needs to perform additional data processing on the processed source data, and the data processing modes required to be sent to different destinations are different, determining the target data processing rule corresponding to the target destination, that is, determining the specific mode of data processing corresponding to the target destination in the data forwarding module, processing the target data according to the determined specific mode of data processing, obtaining processed target data, and forwarding the processed target data to the target destination.
The data processing and dynamic data destination expression processing in the data processing module and the data forwarding module both depend on the same expression processing engine, and the expression processing engine supports specific data processing sentences, so that the requirements of rule engine service data processing, dynamic destination calculation and the like can be met.
In an exemplary embodiment, the embodiment of the present disclosure further provides a data forwarding apparatus, which may be used to implement the data forwarding method as in the foregoing embodiment. Fig. 5 is a schematic diagram of a composition of a data forwarding device according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus may include: a processing unit 501, a determining unit 502, and a forwarding unit 503.
The processing unit 501 is configured to process the source data according to a preset first data processing rule, so as to obtain processed source data.
A determining unit 502, configured to input the processed source data into a preconfigured dynamic data destination expression, determine target data corresponding to the target destination by using the dynamic data destination expression, where the dynamic data destination expression is generated according to the target destination, and the source data includes the target data.
A forwarding unit 503, configured to forward the target data to a target destination.
Optionally, the forwarding unit 503 is specifically configured to: determining a target data processing rule corresponding to a target destination, wherein the target data processing rule is preconfigured according to a data requirement corresponding to the target destination; processing the target data according to the target data processing rule to obtain processed target data; and forwarding the processed target data to a target destination.
Optionally, the determining unit 502 is specifically configured to: acquiring a configuration rule corresponding to source data, wherein the configuration rule comprises at least one second data processing rule corresponding to a destination, and the second data processing rule is preconfigured according to a data requirement corresponding to the destination; and determining a second data processing rule corresponding to the target destination from the configuration rules as a target data processing rule.
Fig. 6 is another schematic diagram of a data forwarding device according to an embodiment of the present disclosure. Optionally, as shown in fig. 6, on the basis of fig. 5, the apparatus may further include: updating unit 504.
And the updating unit 504 is configured to update the target data processing rule according to the data requirement corresponding to the target destination.
Optionally, the processing unit 501 is specifically configured to: processing the source data according to a preset first data processing rule by a target processing engine to obtain processed source data; the determining unit 502 is specifically configured to: and inputting the processed source data into a preconfigured dynamic data destination expression through a target processing engine, and determining target data corresponding to a target destination through the dynamic data destination expression.
Optionally, the target destination includes a first destination and a second destination; the dynamic data destination expressions corresponding to the first destination and the second destination are the same.
Optionally, the method described above is applied to a rule engine service deployed in a privately owned data transmission system.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, a computer program product.
In an exemplary embodiment, an electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described in the above embodiments.
In an exemplary embodiment, the readable storage medium may be a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method according to the above embodiment.
In an exemplary embodiment, the computer program product comprises a computer program which, when executed by a processor, implements the method according to the above embodiments.
Fig. 7 illustrates a schematic block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the electronic device 700 includes a computing unit 701 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 may also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the electronic device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, etc.; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, an optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information/data with other devices through a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 701 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the respective methods and processes described above, such as a data forwarding method. For example, in some embodiments, the data forwarding method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 700 via the ROM 702 and/or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the data forwarding method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the data forwarding method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (17)

1. A method of data forwarding, the method comprising:
processing the source data according to a preset first data processing rule to obtain processed source data;
inputting the processed source data into a preconfigured dynamic data destination expression, determining target data corresponding to a target destination through the dynamic data destination expression, wherein the dynamic data destination expression is generated according to the target destination, and the source data comprises the target data;
forwarding the target data to the target destination.
2. The method of claim 1, the forwarding the target data to the target destination, comprising:
determining a target data processing rule corresponding to the target destination, wherein the target data processing rule is preconfigured according to the data requirement corresponding to the target destination;
processing the target data according to the target data processing rule to obtain processed target data;
forwarding the processed target data to the target destination.
3. The method of claim 2, the determining a target data processing rule corresponding to the target destination, comprising:
acquiring a configuration rule corresponding to the source data, wherein the configuration rule comprises at least one second data processing rule corresponding to a destination, and the second data processing rule is preconfigured according to the data requirement corresponding to the destination;
and determining a second data processing rule corresponding to the target destination from the configuration rules as the target data processing rule.
4. A method according to claim 2 or 3, the method further comprising:
and updating the target data processing rule according to the data requirement corresponding to the target destination.
5. The method according to any one of claims 1-4, wherein the processing the source data according to the preset first data processing rule to obtain the processed source data includes:
processing the source data according to a preset first data processing rule by a target processing engine to obtain processed source data;
the step of inputting the processed source data into a preconfigured dynamic data destination expression, and determining target data corresponding to a target destination through the dynamic data destination expression comprises the following steps:
and inputting the processed source data into a preconfigured dynamic data destination expression through the target processing engine, and determining target data corresponding to a target destination through the dynamic data destination expression.
6. The method of any of claims 1-5, the target destination comprising a first destination and a second destination;
the dynamic data destination expressions corresponding to the first destination and the second destination are the same.
7. The method of any of claims 1-6, applied to a rules engine service deployed in a privately-owned data transmission system.
8. A data forwarding apparatus, the apparatus comprising:
the processing unit is used for processing the source data according to a preset first data processing rule to obtain processed source data;
a determining unit, configured to input the processed source data into a preconfigured dynamic data destination expression, determine target data corresponding to a target destination according to the dynamic data destination expression, where the dynamic data destination expression is generated according to the target destination, and the source data includes the target data;
and the forwarding unit is used for forwarding the target data to the target destination.
9. The apparatus of claim 8, the forwarding unit being specifically configured to:
determining a target data processing rule corresponding to the target destination, wherein the target data processing rule is preconfigured according to the data requirement corresponding to the target destination;
processing the target data according to the target data processing rule to obtain processed target data;
forwarding the processed target data to the target destination.
10. The apparatus according to claim 9, the determining unit being specifically configured to:
acquiring a configuration rule corresponding to the source data, wherein the configuration rule comprises at least one second data processing rule corresponding to a destination, and the second data processing rule is preconfigured according to the data requirement corresponding to the destination;
and determining a second data processing rule corresponding to the target destination from the configuration rules as the target data processing rule.
11. The apparatus according to claim 9 or 10, further comprising:
and the updating unit is used for updating the target data processing rule according to the data requirement corresponding to the target destination.
12. The apparatus according to any of claims 8-11, the processing unit being specifically configured to:
processing the source data according to a preset first data processing rule by a target processing engine to obtain processed source data;
the determining unit is specifically configured to:
and inputting the processed source data into a preconfigured dynamic data destination expression through the target processing engine, and determining target data corresponding to a target destination through the dynamic data destination expression.
13. The apparatus of any of claims 8-12, the target destination comprising a first destination and a second destination;
the dynamic data destination expressions corresponding to the first destination and the second destination are the same.
14. The apparatus of any of claims 8-13, the method applied to a rules engine service deployed in a privately-owned data transmission system.
15. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
CN202310518374.1A 2023-05-09 2023-05-09 Data forwarding method, device, equipment and storage medium Pending CN116708556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310518374.1A CN116708556A (en) 2023-05-09 2023-05-09 Data forwarding method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310518374.1A CN116708556A (en) 2023-05-09 2023-05-09 Data forwarding method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116708556A true CN116708556A (en) 2023-09-05

Family

ID=87844189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310518374.1A Pending CN116708556A (en) 2023-05-09 2023-05-09 Data forwarding method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116708556A (en)

Similar Documents

Publication Publication Date Title
CN112988223B (en) Frame integration method, frame integration device, electronic equipment and storage medium
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN114448802B (en) Gateway configuration method, device, electronic equipment and storage medium
EP3951687A2 (en) Business content output method, apparatus, storage medium and program product
CN113656198B (en) Copying and pasting method and device from client to cloud mobile phone
CN113572833B (en) Cloud mobile phone maintenance method and device, electronic equipment and storage medium
CN115934076B (en) Cross-platform client micro-service providing device and method and electronic equipment
CN116932147A (en) Streaming job processing method and device, electronic equipment and medium
CN116708556A (en) Data forwarding method, device, equipment and storage medium
CN115865974A (en) Edge device, cloud device, edge computing system and method, and storage medium
CN112965836B (en) Service control method, device, electronic equipment and readable storage medium
CN114579311A (en) Method, apparatus, device and storage medium for executing distributed computing task
CN115016955A (en) Method and device for sharing information among multiple applications
CN113905040A (en) File transmission method, device, system, equipment and storage medium
CN113778645A (en) Task scheduling method, device and equipment based on edge calculation and storage medium
CN111193656A (en) Message pushing method and device
CN115589391B (en) Instant messaging processing method, device and equipment based on block chain and storage medium
CN117993363A (en) Rich text editing method and device, electronic equipment and storage medium
CN117411939A (en) Serialized data analysis method, device, equipment and storage medium
CN117270862A (en) Software pluggable method, device, equipment and medium based on dynamic compiling
CN117742875A (en) Container scheduling method, device, electronic equipment and computer readable medium
CN115776489A (en) Information acquisition method and device, electronic equipment and computer readable storage medium
CN118246721A (en) Task generation method, device, electronic equipment and computer readable storage medium
CN118410024A (en) Content sharing method and device, electronic equipment and storage medium
CN115801718A (en) Message processing method and device, electronic equipment and message processing 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