CN114978991B - Route distribution method, route distribution device, electronic equipment and computer readable storage medium - Google Patents

Route distribution method, route distribution device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114978991B
CN114978991B CN202210540737.7A CN202210540737A CN114978991B CN 114978991 B CN114978991 B CN 114978991B CN 202210540737 A CN202210540737 A CN 202210540737A CN 114978991 B CN114978991 B CN 114978991B
Authority
CN
China
Prior art keywords
data
message
processed
preset
processing
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.)
Active
Application number
CN202210540737.7A
Other languages
Chinese (zh)
Other versions
CN114978991A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210540737.7A priority Critical patent/CN114978991B/en
Publication of CN114978991A publication Critical patent/CN114978991A/en
Application granted granted Critical
Publication of CN114978991B publication Critical patent/CN114978991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/30Routing of multiclass traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a route distribution technology, and discloses a route distribution method, which comprises the following steps: receiving a data processing message initiated by a user, and analyzing the data processing message to obtain data information to be processed; judging whether the data to be processed is routed by a preset local processing party or not according to the data information to be processed; if the data to be processed is routed by the local processing party, calling a preset local interface to route the data processing message; if the data to be processed is not routed by the local processing party, inquiring a target processing party corresponding to the data to be processed in a preset data and processing party relation mapping table, and constructing a corresponding data routing message; and calling a remote interface corresponding to the target processor to process the data routing message through a preset adapting component. The invention also provides a route distribution device, electronic equipment and a computer readable storage medium. The invention can improve the data route distribution efficiency.

Description

Route distribution method, route distribution device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of route distribution technologies, and in particular, to a route distribution method, a device, an electronic apparatus, and a computer readable storage medium.
Background
Marketing campaign prize delivery due to the variety of prize shapes and the presence of multiple participants in the campaign, multiple ways of prize delivery may occur. For example, various entity prizes such as mobile phones, computers and virtual currency prizes such as gold coins, gold beans, coupons and the like are issued to the ordinary users by a marketing activity sponsor such as a game company, a marketing activity operation platform such as an online shopping platform or a prize provider such as a bank, and any party or parties select corresponding prizes to issue to the ordinary users according to flexible prize issuing rules, so that various routing lines of the prizes + the issuing party + the ordinary users are formed.
For this multi-route concurrency scenario, conventional solutions often employ a multi-process concurrency management mode. The mode designs independent processes aiming at each prize issuing route, each independent process operates in a virtual address space of the independent process, and interacts with other processes through a safe kernel management mechanism, so that one process crashes without causing the process crashes, and the concurrent requirement of multiple processes is supported.
The mode is not affected by each process, but when the concurrent demand is larger, the problem of preempting public resources among a plurality of processes is generated, the burden of a server is increased, meanwhile, when one route line or the original route line is added and changed, codes are required to be added or modified, the development or maintenance workload of the codes is larger, and the current situation that the current marketing activity prize-winning product issuing rule is flexible and changeable cannot be efficiently met.
Disclosure of Invention
The invention provides a route distribution method, a route distribution device and a computer readable storage medium, and mainly aims to improve data route distribution efficiency.
In order to achieve the above object, the present invention provides a route distribution method, including:
receiving a data processing message initiated by a user, and analyzing the data processing message to obtain data information to be processed;
judging whether the data to be processed is routed by a preset local processing party or not according to the data information to be processed;
if the data to be processed is routed by the local processing party, calling a preset local interface to route the data processing message;
if the data to be processed is not routed by the local processing party, inquiring a target processing party corresponding to the data to be processed in a preset data and processing party relation mapping table, and constructing a corresponding data routing message;
and calling a remote interface corresponding to the target processor to process the data routing message through a preset adapting component.
Optionally, the determining, according to the information of the data to be processed, whether the data to be processed is routed by a preset local processing party includes:
identifying preset key terms in the data information to be processed;
inquiring whether the key entry exists in a preset local data processing information table;
if the key entry exists, the data to be processed is routed by the local processing party;
and if the key word entry does not exist, the data to be processed is not routed by the local processing party.
Optionally, the constructing the corresponding data routing message includes:
labeling the data processing message according to a preset operation and maintenance label to obtain a labeling field;
inquiring a routing auxiliary field corresponding to the data processing message in a preset routing auxiliary policy table according to the key entry of the data processing message;
and summarizing the labeling field and the routing auxiliary field according to a preset data processing interface to obtain the data routing message.
Optionally, the calling, through a preset adapting component, the remote interface corresponding to the target processor to process the data routing message includes:
identifying a remote interface corresponding to the data routing message by using a preset adapting component;
generating a message corresponding to the data routing message according to the remote interface;
and sending the message to a preset gateway, and routing the message to a server corresponding to the target processing party to process the data routing message.
Optionally, before the sending the message to a preset gateway, the method further includes:
starting a preset route monitoring function, and generating an operation log of any route node of the message in the preset gateway;
performing idempotent operation on the messages at each routing node;
and monitoring the retransmission times of the message in the same routing node, and generating alarm information when the retransmission times reach a preset fusing threshold value.
Optionally, after the parsing the data processing message to obtain the data information to be processed, the method further includes:
judging whether the data information to be processed has a missing value or not by using a preset missing function;
if the data information to be processed has a missing value, filling the missing value by using a preset filling algorithm;
and if the data information to be processed does not have the missing value or is filled with the missing value, carrying out standardized processing on the data information to be processed by using a preset standardized algorithm.
Optionally, the filling the missing value by using a preset filling algorithm includes:
and carrying out standardized processing on the data information to be processed by using the following filling algorithm:
wherein L (θ) represents a missing value of padding, x i Represents the ith missing value, θ represents the probability parameter corresponding to the filled missing value, n represents the number of service data after de-duplication, p (x) i I θ) represents the missing value probability of the padding.
In order to solve the above problems, the present invention also provides a route distribution device, including:
the data processing message receiving module is used for receiving a data processing message initiated by a user and analyzing the data processing message to obtain data information to be processed;
the local processing judging module is used for judging whether the data to be processed is routed by a preset local processing party or not according to the data information to be processed;
the local processing routing module is used for calling a preset local interface to route the data processing message if the data to be processed is routed by the local processing party;
the target processing party identification module is used for inquiring a target processing party corresponding to the data to be processed in a preset data and processing party relation mapping table and constructing a corresponding data routing message if the data to be processed is not routed by the local processing party;
and the remote processing routing module is used for calling a remote interface corresponding to the target processing party through a preset adapting component to process the data routing message.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
a memory storing at least one computer program; and
And a processor executing the program stored in the memory to implement the route distribution method described above.
In order to solve the above-described problems, the present invention also provides a computer-readable storage medium having stored therein at least one computer program that is executed by a processor in an electronic device to implement the above-described route distribution method.
The embodiment of the invention preferentially judges whether the data to be processed is routed locally, invokes the local interface to process the data processing routing request, and uses the same equipment as the generating equipment and the routing equipment of the data processing information, so that the operation of protocol conversion or information adaptation can be reduced, and the efficiency of data routing distribution is improved. When the data to be processed is not routed locally and a remote interface is required to be called to process a data processing route request, a target processing party of the data to be processed is read from a data and processing party relation mapping table, further, a remote interface corresponding to the target processing party is called through an adaptation component, the change of route information can be realized by modifying the data and processing party relation mapping table, a target sender only needs to maintain the remote interface and does not need to pay attention to route selection business logic, decoupling of the business logic and codes is realized, flexible and changeable data routing strategies can be supported, and therefore, the efficiency of data route distribution is improved.
Drawings
Fig. 1 is a flow chart of a route distribution method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a detailed implementation flow of one of the steps in the route distribution method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a detailed implementation flow of one of the steps in the route distribution method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a detailed implementation flow of one of the steps in the route distribution method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a detailed implementation flow of one of the steps in the route distribution method according to an embodiment of the present invention;
FIG. 6 is a functional block diagram of a route distribution device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device implementing the route distribution method according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a route distribution method. The execution body of the route distribution method includes, but is not limited to, at least one of a server, a terminal, and the like, which can be configured to execute the method provided by the embodiment of the application. In other words, the route distribution method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (ContentDelivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Referring to fig. 1, a flow chart of a route distribution method according to an embodiment of the present invention is shown. In this embodiment, the route distribution method includes S1 to S5:
s1, receiving a data processing message initiated by a user, and analyzing the data processing message to obtain data information to be processed;
in the embodiment of the invention, the large marketing activities attract users in a lottery participation mode, for example, a game company sets a certain participation rule, and the viscosity of the users is enhanced in a prize dispatching mode. And the online shopping platform distributes prizes to purchasers in a manner of purchasing rebates. After participating in the activity specified by the host of the marketing activity, the user can submit an application for obtaining the prize through the APP or the website where the marketing activity is located, namely, a data processing message is generated in the background of the marketing activity.
In the embodiment of the invention, the message types corresponding to the data processing message include, but are not limited to, HTTP message, HTML message, XML message and JSON message.
In the embodiment of the present invention, the data information to be processed includes, but is not limited to, a data processing message ID, a message creation time, user information, for example, a user ID, a mobile phone number, a ledger, etc., a marketing campaign ID, message reporting device information, a prize code, a prize type, a prize name, and a prize number.
It will be appreciated that the development languages used by different marketing campaign platforms may be different, and some are developed based on JAVA, and some are developed based on c++ or python, which may result in different data formats or data types corresponding to the same data information.
In detail, referring to fig. 2, the data normalization processing for the data information to be processed includes S11-S13:
s11, judging whether the data information to be processed has a missing value or not by using a preset missing function;
if the data information to be processed has a missing value, executing S12, and filling the missing value by using a preset filling algorithm;
and if the data information to be processed does not have the missing value or is filled with the missing value, executing S13, and carrying out standardization processing on the data information to be processed by utilizing a preset standardization algorithm.
In the embodiment of the invention, the default deletion function may detect whether the data information to be processed has a deletion value by adopting a missing map function.
Preferably, the embodiment of the present invention fills the missing values through a preset filling algorithm.
In detail, the preset filling algorithm includes:
wherein L (θ) represents a missing value of padding, x i Represents the ith missing value, θ represents the probability parameter corresponding to the filled missing value, n represents the number of service data after de-duplication, p (x) i I θ) represents the missing value probability of the padding.
In the embodiment of the invention, the standardized algorithm comprises, but is not limited to, an extremum method, a standard deviation method, a broken line method and a normal distribution method, and the corresponding standardized algorithm can be selected according to the characteristics of actual service data.
S2, judging whether the data to be processed is routed by a preset local processing party or not according to the data information to be processed;
in the embodiment of the invention, the preset local processing party refers to a direct planner of a user participating in a marketing activity to win prizes or a prize provider which can be directly perceived by the user. For example, after the user experiences a new game which is pushed out by a game company and completes a corresponding task of running a joint according to the new game experience rule, a prize is awarded in the field of the new game interactive interface prompt. It will be appreciated that the prizes planned by the gaming establishment may be processed directly by the gaming establishment, or may be processed instead by some sponsor, such as virtual currency redemption processed by a bank, physical prizes processed by a vendor, or processed by an online shopping platform, etc. At this time, the preset local processing party refers to a provider of a game operation platform corresponding to the new game, that is, a game company, and the other prize replacing parties do not belong to the preset local processing party.
In detail, referring to fig. 3, S2 includes S21-S24:
s21, identifying preset key terms in the data information to be processed;
s22, inquiring whether the key entry exists in a preset local data processing information table;
if the key entry exists, S23 is executed, and the data to be processed is returned to be routed by the local processing party;
and if the key entry does not exist, executing S24, and returning the data to be processed to be not routed by the local processing party.
In the embodiment of the present invention, the preset local data processing information table is used to record information such as a data type, a data name, and a data number that can be processed by the preset local processing party.
In an optional embodiment of the present invention, the preset key term may be a data code of the data to be processed, one or two codes of a data processing party may be reserved in the data code, and similarly, the codes of the preset local processing party are stored in the local data processing information table, and whether the data to be processed belongs to the processing range of the preset local processing party is determined by comparing whether the codes of the processing party in the data code and the codes of the preset local processing party are consistent.
In another optional embodiment of the present invention, the preset key entry may be a data type in the data to be processed, and similarly, a data type that can be processed by the local processor may be configured in the local data processing information table, and by comparing whether the data type in the data to be processed belongs to the data type that can be processed by the local processor, it may be determined whether the data to be processed is processed by the preset local processor.
If the data to be processed is routed by the local processing party, S3 is executed, and a preset local interface is called to route the data processing message;
in the embodiment of the present invention, in the local data processing information table, if the key entry exists, it indicates that the data to be processed is processed by the local processing party. And processing the data processing message through a preset local interface.
In the embodiment of the invention, the purpose of presetting the local processing party is to improve the use experience of the user, namely, the user can process the data where the user participates in the lottery. On the other hand, because the equipment and the routing equipment which are correspondingly generated by the data processing information are the same equipment, protocol conversion or information adaptation operation is not required to be carried out for processing the data processing information, and the processing efficiency of the data processing information is improved.
If the data to be processed is not routed by the local processing party, S4 is executed, a target processing party corresponding to the data to be processed is queried in a preset data and processing party relation mapping table, and a corresponding data routing message is constructed;
in the embodiment of the present invention, the preset data-to-processor relationship mapping table is used to store a comparison relationship between data and corresponding data processors, where one data corresponds to only one processor, or one data corresponds to multiple processors, and in this case, priority needs to be set between multiple processors that can process the same data.
In the embodiment of the invention, when the processing rule of the data changes, only the preset relation mapping table between the data and the processing party is required to be modified, and the code is not required to be modified, so that the decoupling between the business logic and the code realization is realized.
In the embodiment of the invention, the target processing party of the data to be processed is obtained by inquiring the processing party corresponding to the data to be processed in the preset relation mapping table of the data and the processing party.
In detail, referring to fig. 4, the step of constructing a corresponding data routing message in S4 includes steps S41 to S43:
s41, marking the data processing message according to a preset operation and maintenance label to obtain a marked field;
s42, inquiring a routing auxiliary field corresponding to the data processing message in a preset routing auxiliary policy table according to the key entry of the data processing message;
and S43, summarizing the labeling field and the routing auxiliary field according to a preset data processing interface to obtain the data routing message.
In the embodiment of the invention, the preset operation and maintenance label is a preset group of operation and maintenance dimensions for realizing unified management of marketing campaign data transmission. The preset operation and maintenance labels include, but are not limited to, labels of equipment ID, user ID, data code, data type, etc. for generating the data processing message. By marking the data processing information, maintenance personnel can conveniently and quickly acquire valuable data, further carry out statistical analysis on the data processing information, identify high-frequency routes and high-frequency data, and further optimize a data routing strategy.
In the embodiment of the present invention, the preset routing auxiliary policy table is a set of routing policies that are preset for improving the success rate of routing the data processing messages in the marketing campaign and for different characteristics of the data processing parties, for example, the maximum delivery times of the messages, the duration of the message delivery intervals, and so on.
In the embodiment of the invention, the data processing messages from different sources are converted into the data routing messages with the uniform format through the preset data processing interface, so that the routing distribution of the data routing messages by adopting the standard and uniform technical means is facilitated.
S5, calling a remote interface corresponding to the target processing party through a preset adapting component to process the data routing message.
In the embodiment of the present invention, the preset adapting component is configured to convert the data routing message into a message that can be identified by a remote interface corresponding to the target processing party. The preset adaptation component can realize the adaptation between interfaces by defining abstract classes.
In detail, referring to fig. 5, S5 includes S51-S53:
s51, identifying a remote interface corresponding to the data routing message by using a preset adapting component;
s52, generating a message corresponding to the data routing message according to the remote interface;
and S53, sending the message to a preset gateway, and routing the message to a server corresponding to the target processing party to process the data routing message.
In the embodiment of the invention, the interfaces corresponding to all the processing parties can be connected together through the responsibility chain mode to form an interface chain, and the data routing information is sequentially transmitted along the interface chain until the remote interface of the corresponding target processing party is found according to the target address carried by the data routing information.
It can be understood that in the process of processing the message, the server where the target processing party is located needs to be called, that is, the condition of accessing the external server occurs, in order to prevent the condition that the link involved in the process of processing the message by the external server is too long or the message is failed or lost due to too large flow, at this time, before the message is sent to a preset gateway, a safety mechanism of the message in the process of transmission needs to be considered.
In detail, the safety of the message in the transmission process can be ensured by the following method: starting a preset route monitoring function, and generating an operation log of any route node of the message in the preset gateway; performing idempotent operation on the messages at each routing node; and monitoring the retransmission times of the message in the same routing node, and generating alarm information when the retransmission times reach a preset fusing threshold value.
The embodiment of the invention preferentially judges whether the data to be processed is routed by the local route, calls the local interface to route the data processing route request, and uses the same equipment as the generating equipment and the routing equipment of the data processing information, so that the operation of protocol conversion or information adaptation can be reduced, and the efficiency of data route distribution is improved. When the data to be processed is not routed locally and a remote interface is required to be called to process a data processing route request, a target processing party of the data to be processed is read from a data and processing party relation mapping table, further, a remote interface corresponding to the target processing party is called through an adaptation component, the change of route information can be realized by modifying the data and processing party relation mapping table, a target sender only needs to maintain the remote interface and does not need to pay attention to route selection business logic, decoupling of the business logic and codes is realized, flexible and changeable data routing strategies can be supported, and therefore, the efficiency of data route distribution is improved.
Fig. 6 is a functional block diagram of a route distribution device according to an embodiment of the present invention.
The route distribution device 100 of the present invention may be installed in an electronic apparatus. Depending on the functions implemented, the route distribution device 100 may include a data processing message receiving module 101, a local processing determination module 102, a local processing route module 103, a target processor identification module 104, and a remote processing route module 105. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the data processing message receiving module 101 is configured to receive a data processing message initiated by a user, and parse the data processing message to obtain data information to be processed;
the local processing judging module 102 is configured to judge whether the data to be processed is routed by a preset local processing party according to the data information to be processed;
the local processing routing module 103 is configured to invoke a preset local interface to route the data processing message if the data to be processed is routed by the local processing party;
the target processor identification module 104 is configured to query a target processor corresponding to the data to be processed in a preset data-processor relationship mapping table, and construct a corresponding data routing message if the data to be processed is not routed by the local processor;
the remote processing routing module 105 is configured to invoke, through a preset adapting component, a remote interface corresponding to the target processor to process the data routing message.
In detail, each module in the route distribution device 100 in the embodiment of the present invention adopts the same technical means as the route distribution method described in fig. 1 to 5 and can produce the same technical effects when in use, and will not be described herein.
Fig. 7 is a schematic structural diagram of an electronic device for implementing a route distribution method according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as a route distribution program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as codes of a route distribution program, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects respective components of the entire electronic device using various interfaces and lines, executes or executes programs or modules (e.g., a route distribution program, etc.) stored in the memory 11, and invokes data stored in the memory 11 to perform various functions of the electronic device 1 and process data.
The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 7 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 7 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The route distribution program stored in the memory 11 in the electronic device 1 is a combination of a plurality of instructions, which when executed in the processor 10, can implement:
receiving a data processing message initiated by a user, and analyzing the data processing message to obtain data information to be processed;
judging whether the data to be processed is routed by a preset local processing party or not according to the data information to be processed;
if the data to be processed is routed by the local processing party, calling a preset local interface to route the data processing message;
if the data to be processed is not routed by the local processing party, inquiring a target processing party corresponding to the data to be processed in a preset data and processing party relation mapping table, and constructing a corresponding data routing message;
and calling a remote interface corresponding to the target processor to process the data routing message through a preset adapting component.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
receiving a data processing message initiated by a user, and analyzing the data processing message to obtain data information to be processed;
judging whether the data to be processed is routed by a preset local processing party or not according to the data information to be processed;
if the data to be processed is routed by the local processing party, calling a preset local interface to route the data processing message;
if the data to be processed is not routed by the local processing party, inquiring a target processing party corresponding to the data to be processed in a preset data and processing party relation mapping table, and constructing a corresponding data routing message;
and calling a remote interface corresponding to the target processor to process the data routing message through a preset adapting component.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (8)

1. A method of route distribution, the method comprising:
receiving a data processing message initiated by a user, and analyzing the data processing message to obtain data information to be processed, wherein the message type corresponding to the data processing message comprises HTTP message, and the data information to be processed comprises data processing message ID, message creation time and user information;
according to the data information to be processed, judging whether the data to be processed is routed by a preset local processing party or not, including: identifying a preset keyword in the data information to be processed, and inquiring whether the keyword exists in a preset local data processing information table, if so, indicating that the data to be processed is routed by the local processing party, and if not, indicating that the data to be processed is not routed by the local processing party, wherein the preset local data processing information table is used for recording the data type, the data name and the data quantity processed by the preset local processing party;
if the key entry exists in the local data processing information table, a preset local interface is called to route the data processing information;
if the data to be processed is not routed by the local processing party, inquiring a target processing party corresponding to the data to be processed in a preset data and processing party relation mapping table, and constructing a corresponding data routing message;
and calling a remote interface corresponding to the target processor to process the data routing message through a preset adapting component.
2. The route distribution method according to claim 1, wherein said constructing a corresponding data routing message comprises:
labeling the data processing message according to a preset operation and maintenance label to obtain a labeling field;
inquiring a routing auxiliary field corresponding to the data processing message in a preset routing auxiliary policy table according to the key entry of the data processing message;
and summarizing the labeling field and the routing auxiliary field according to a preset data processing interface to obtain the data routing message.
3. The route distribution method according to claim 1, wherein the calling, by a preset adapting component, the remote interface corresponding to the target processor to process the data routing message includes:
identifying a remote interface corresponding to the data routing message by using a preset adapting component;
generating a message corresponding to the data routing message according to the remote interface;
and sending the message to a preset gateway, and routing the message to a server corresponding to the target processing party to process the data routing message.
4. The route distribution method according to claim 3, wherein before the message is sent to a preset gateway, the method further comprises:
starting a preset route monitoring function, and generating an operation log of any route node of the message in the preset gateway;
performing idempotent operation on the messages at each routing node;
and monitoring the retransmission times of the message in the same routing node, and generating alarm information when the retransmission times reach a preset fusing threshold value.
5. The route distribution method according to claim 1, wherein after the parsing the data processing message to obtain the data information to be processed, the method further comprises:
judging whether the data information to be processed has a missing value or not by using a preset missing function;
if the data information to be processed has a missing value, filling the missing value by using a preset filling algorithm;
and if the data information to be processed does not have the missing value or is filled with the missing value, carrying out standardized processing on the data information to be processed by using a preset standardized algorithm.
6. A route distribution device, the device comprising:
the data processing message receiving module is used for receiving a data processing message initiated by a user, analyzing the data processing message to obtain data information to be processed, wherein the message type corresponding to the data processing message comprises HTTP message, and the data information to be processed comprises data processing message ID, message creation time and user information;
the local processing judging module is used for judging whether the data to be processed is routed by a preset local processing party or not according to the data information to be processed, and comprises the following steps: identifying a preset keyword in the data information to be processed, and inquiring whether the keyword exists in a preset local data processing information table, if so, indicating that the data to be processed is routed by the local processing party, and if not, indicating that the data to be processed is not routed by the local processing party, wherein the preset local data processing information table is used for recording the data type, the data name and the data quantity processed by the preset local processing party;
the local processing routing module is used for calling a preset local interface to route the data processing message if the key entry exists in the local data processing information table;
the target processing party identification module is used for inquiring a target processing party corresponding to the data to be processed in a preset data and processing party relation mapping table and constructing a corresponding data routing message if the data to be processed is not routed by the local processing party;
and the remote processing routing module is used for calling a remote interface corresponding to the target processing party through a preset adapting component to process the data routing message.
7. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the route distribution method according to any one of claims 1 to 5.
8. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the route distribution method according to any one of claims 1 to 5.
CN202210540737.7A 2022-05-17 2022-05-17 Route distribution method, route distribution device, electronic equipment and computer readable storage medium Active CN114978991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210540737.7A CN114978991B (en) 2022-05-17 2022-05-17 Route distribution method, route distribution device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210540737.7A CN114978991B (en) 2022-05-17 2022-05-17 Route distribution method, route distribution device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114978991A CN114978991A (en) 2022-08-30
CN114978991B true CN114978991B (en) 2024-03-12

Family

ID=82983915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210540737.7A Active CN114978991B (en) 2022-05-17 2022-05-17 Route distribution method, route distribution device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114978991B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880475A (en) * 2012-10-23 2013-01-16 上海普元信息技术股份有限公司 Real-time event handling system and method based on cloud computing in computer software system
CN111680313A (en) * 2020-06-08 2020-09-18 南京领行科技股份有限公司 Data processing method, device, equipment and storage medium
CN111786886A (en) * 2020-06-30 2020-10-16 京东数字科技控股有限公司 Message processing method, device and system, electronic equipment and storage medium
CN112559687A (en) * 2020-12-15 2021-03-26 中国平安人寿保险股份有限公司 Question identification and query method and device, electronic equipment and storage medium
WO2021189826A1 (en) * 2020-09-02 2021-09-30 平安科技(深圳)有限公司 Message generation method and apparatus, electronic device, and computer-readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285793B (en) * 2021-12-21 2024-06-18 中国农业银行股份有限公司 Distribution method, distribution device, distribution equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880475A (en) * 2012-10-23 2013-01-16 上海普元信息技术股份有限公司 Real-time event handling system and method based on cloud computing in computer software system
CN111680313A (en) * 2020-06-08 2020-09-18 南京领行科技股份有限公司 Data processing method, device, equipment and storage medium
CN111786886A (en) * 2020-06-30 2020-10-16 京东数字科技控股有限公司 Message processing method, device and system, electronic equipment and storage medium
WO2021189826A1 (en) * 2020-09-02 2021-09-30 平安科技(深圳)有限公司 Message generation method and apparatus, electronic device, and computer-readable storage medium
CN112559687A (en) * 2020-12-15 2021-03-26 中国平安人寿保险股份有限公司 Question identification and query method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114978991A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN115964307B (en) Automatic test method, device, equipment and medium for transaction data
CN114844792B (en) Dynamic monitoring method, device, equipment and storage medium based on LUA language
CN113688923A (en) Intelligent order abnormity detection method and device, electronic equipment and storage medium
CN112528307A (en) Service request checking method and device, electronic equipment and storage medium
CN114356530A (en) Task scheduling method and device, electronic equipment and storage medium
CN112085611A (en) Asynchronous data verification method and device, electronic equipment and storage medium
CN114978991B (en) Route distribution method, route distribution device, electronic equipment and computer readable storage medium
CN115731047B (en) Batch order processing method, equipment and medium
CN111428463A (en) Short message processing method and device, electronic equipment and storage medium
CN116823437A (en) Access method, device, equipment and medium based on configured wind control strategy
CN114124878B (en) Market data issuing method, device, system, equipment and medium
CN116823141A (en) Payment data processing method, device, equipment and medium
CN114942855A (en) Interface calling method and device, electronic equipment and storage medium
CN115033605A (en) Data query method and device, electronic equipment and storage medium
CN114820132A (en) Order distribution method and device, electronic equipment and storage medium
CN113360375B (en) Transaction testing method, device, electronic equipment and storage medium
CN116455997B (en) STEP market multipath forwarding method, STEP market multipath forwarding device, STEP market multipath forwarding equipment and STEP market multipath forwarding medium
CN118014696B (en) Transaction order preheating method, device, equipment and medium
CN116843454B (en) Channel information management method, device, equipment and medium
CN118037453B (en) Order processing method, device, equipment and medium of transaction system
CN116610465A (en) Event notification-based message sending method and device, electronic equipment and medium
CN114417195A (en) Data processing method, device, equipment and medium based on two-dimension code
CN115396376A (en) Load balancing method, device, equipment and storage medium
CN117294768A (en) Flow control method, device, equipment and medium based on application node grouping
CN113032168A (en) Data transmission rate dynamic adjustment method and device, electronic equipment and storage medium

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