Message distribution method, device, electronic device and storage medium
By receiving and judging the message information sent by the external system and determining the distribution reference information, the accurate distribution of message information is achieved, the problem of messy messages in the ticket service is solved, and the processing efficiency is improved.
Patent Information
- Application Number
- CN202111569991.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2041-12-21
AI Technical Summary
In the ticket service, multiple systems are prone to messaging problems when monitoring message messages, and it is difficult for the existing technology to achieve accurate distribution of message information.
By receiving message information sent by external systems, we can determine whether the original message information is included, and determine the distribution reference information, including original message information, type information and organization information. Based on this information, the message information is distributed to the target receiving of the target internal system. queue.
It realizes the accurate distribution of message information, avoids messy messages, and improves the speed and efficiency of message information processing.
Smart Images

Figure CN114327939B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular to a message distribution method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of electronic invoice business, various innovative products based on electronic invoice business are constantly launched, and various business needs are also constantly being developed.
[0003] At present, various financial institutions exchange messages with the electronic commercial bill system of the bill exchange through message queues to handle electronic bill business. When multiple systems monitor message messages, the problem of message chaos will occur. Summary of the invention
[0004] The embodiments of the present invention provide a message distribution method, device, electronic device and storage medium to achieve accurate distribution of message information and avoid the occurrence of random message transmission.
[0005] In a first aspect, an embodiment of the present invention provides a message distribution method for distributing message information of an external system to one or more of a plurality of internal systems, the method comprising:
[0006] Receive message information sent by external systems;
[0007] Determining whether the message information includes original message information of the message information;
[0008] Determine distribution reference information of the message information according to the judgment result of the original message information, wherein the distribution reference information includes at least one of original message information, type information and organization information of the message information;
[0009] A target internal system corresponding to the message information is determined based on the distribution reference information, and the message information is distributed to a target receiving queue corresponding to the target internal system.
[0010] In a second aspect, a message distribution device is provided for distributing message information of an external system to one or more of a plurality of internal systems, the device comprising:
[0011] An information receiving module, used for receiving message information sent by an external system;
[0012] An information determination module, used for determining whether the message information includes original message information of the message information;
[0013] A reference information determination module, configured to determine distribution reference information of the message information according to a judgment result of the original message information, wherein the distribution reference information includes at least one of original message information, type information and organization information of the message information;
[0014] An information distribution module is used to determine a target internal system corresponding to the message information based on the distribution reference information, and distribute the message information to a target receiving queue corresponding to the target internal system.
[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0016] one or more processors;
[0017] a storage device for storing one or more programs,
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement any message distribution method described in any one of the embodiments of the present invention.
[0019] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute any of the message distribution methods described in the embodiments of the present invention.
[0020] The message method of the present invention can be used to distribute the message information of an external system to one or more of a plurality of internal systems. Specifically, by receiving the message information sent by the external system and judging whether the message information includes the original message information of the message information, the message information can be quickly classified to improve the processing speed of the message information; further, according to the judgment result of the original message information, the distribution reference information of the message information is determined, wherein the distribution reference information includes at least one of the original message information, type information and mechanism information of the message information, and the target internal system corresponding to the message information is determined based on the distribution reference information, and the message information is distributed to the target receiving queue corresponding to the target internal system, thereby realizing the accurate distribution of the message message and avoiding the occurrence of disorderly message messages in multiple internal systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 It is a flow chart of a message distribution method provided in the first embodiment of the present invention;
[0023] Figure 2 This is a diagram of the distribution architecture of electronic ticket message information provided by the first embodiment of the present invention:
[0024] Figure 3 It is a flow chart of a message distribution method provided by Embodiment 2 of the present invention;
[0025] Figure 4 This is a schematic diagram of a message information distribution rule provided by Embodiment 2 of the present invention;
[0026] Figure 5 It is a structural diagram of a message distribution device provided in Embodiment 3 of the present invention;
[0027] Figure 6 It is a structural schematic diagram of an electronic device provided by Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention.
[0029] It should also be noted that, for ease of description, only the part relevant to the present invention but not all content is shown in the accompanying drawings. It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processing or methods depicted as flow charts. Although the flow chart describes each operation (or step) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. When its operation is completed, the processing can be terminated, but it can also have additional steps not included in the accompanying drawings. The processing can correspond to methods, functions, procedures, subroutines, subprograms, etc.
[0030] Embodiment 1
[0031] Figure 1 This is a flowchart of a message distribution method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case where message information of an external system is distributed to one or more of multiple internal systems. The method can be executed by a message distribution device provided in an embodiment of the present invention. The device can be implemented by software and / or hardware. The device can be configured on an electronic computing device, such as a terminal and / or a server. Specifically, the following steps are included:
[0032] S110: Receive message information sent by an external system.
[0033] The external system may refer to a system in a single external test environment, which may interact with the internal system through message information, and the internal system may be a system used by various financial institutions. Exemplarily, the external system may include but is not limited to an electronic commercial bill system, etc. The electronic commercial bill system is developed by the People's Bank of China, and the bill systems within each commercial bank interact with it through data telegrams. Message information may refer to data block information, and the message information may contain complete data information to be sent. Exemplarily, the message information may be content in XML format transmitted through message middleware.
[0034] Specifically, the message information sent by the external system may be one, two or more, and the method for receiving the message information sent by the external system includes: in some embodiments, by monitoring the receiving queue of the external system, if the receiving queue contains the message information sent by the external system, then the message information sent by the external system is received; or, in another embodiment, by monitoring the receiving queue of the front-end application of the external connection area, if the receiving queue contains the message information sent by the external system, then the message information sent by the external system is received, wherein the front-end application of the external connection area is an application deployed in the external connection area when the internal system interacts with the external system, and in addition to providing basic message verification functions, it is mainly used for isolating internal and external systems, thereby improving the security of internal and external systems.
[0035] Based on the above embodiment, the receiving message information sent by the external system includes: monitoring a receiving queue, wherein the receiving queue is used to receive the message information sent by the external system; if it is monitored that the receiving queue contains the message information sent by the external system, then the message information sent by the external system is received.
[0036] Among them, the receiving queue can be a queue for storing messages, and can also send or receive message messages. The receiving queue includes but is not limited to the receiving queue corresponding to the external system or the receiving queue corresponding to the external area front-end application. The receiving queue corresponding to the external system is located between the external system and the external area front-end application, and is used to receive message information sent by the external system, and send the message information to the external area front-end application. The receiving queue corresponding to the external area front-end application is located between the external area front-end application and the internal system, and is used to receive message messages sent by the external area front-end application, and distribute the message information to one or more internal systems.
[0037] For example, Figure 2 This is a diagram of the distribution architecture of electronic invoice message information. Figure 2 There are two internal systems, including internal system A and internal system B. Figure 2 This is just an example and does not limit the number of internal systems. Figure 2In the figure, LAR represents the receiving queue between the internal system A and the message distribution system, LBR represents the receiving queue between the internal system B and the message distribution system, LS represents the sending queue between the internal system and the front-end application in the external area, RS represents the sending queue between the front-end application in the external area and the external system, RR represents the receiving queue between the external system and the front-end application in the external area, and LR represents the receiving queue between the message distribution system and the front-end application in the external area.
[0038] It should be noted that the internal system no longer directly monitors the receiving queue corresponding to the front-end application of the external area, but monitors the receiving queue (LR) through the message distribution system. The receiving queue (LR) may refer to the receiving queue corresponding to the front-end application of the external area. The message distribution system monitors the receiving queue (LR). If it is detected that there is message information sent by the external system in the receiving queue (LR), the message distribution system receives the message information sent by the external system.
[0039] S120: Determine whether the message information includes original message information of the message information.
[0040] Exemplarily, the message information is extracted through an information extraction function or a natural language processing method in a function library, and the extracted message content is judged. The function library can be a call function library corresponding to a programming language. In an embodiment of the present invention, the extracted message content may include the original message information, or may not include the original message information. It should be noted that the original message information is not necessarily the same as the message information sent by the internal system, but it is partially the same as the message information sent by the internal system.
[0041] S130. Determine distribution reference information of the message information according to the judgment result of the original message information, wherein the distribution reference information includes at least one of the original message information, type information and organization information of the message information.
[0042] Among them, the judgment result may be that the message information includes the original message information or the message information does not include the original message information. If the original message information exists in the message information, it indicates that the message information is a message message sent by an internal system and fed back to the internal system; if the original message information does not exist in the message information, it indicates that the message information is sent by an external system. The distribution reference information is reference information used to distribute the message information, and the distribution reference information may be information in the message information, that is, the message information includes the distribution reference information. Optionally, the message information includes multiple types of distribution reference information. The distribution reference information may include but is not limited to at least one of the original message information, type information, and organization information of the message information. It can be understood that in some embodiments, the distribution reference information includes the original message information, type information, and organization information of the message information, and in some embodiments, the distribution reference information includes type information and organization information. In some embodiments, the distribution reference information includes type information. This embodiment does not limit the number or type of the distribution reference information.
[0043] It should be noted that the original message information is not necessarily the same as the message information sent by the internal system, but there is some identical message information with the message information sent by the internal system. Type information refers to the type of message, and the type of message may include but is not limited to control type and business type, where control type message information can be used to send control commands, and business type message information can be used to send business information. Organization information may refer to information related to the organization, such as the name, address or number of the organization. For example, the organization may be a corporate organization or a financial institution.
[0044] S140. Determine a target internal system corresponding to the message information based on the distribution reference information, and distribute the message information to a target receiving queue corresponding to the target internal system.
[0045] The target internal system refers to the system that receives the message information. It should be noted that the external system does not have to send message information to all internal systems, but needs to send it to the corresponding internal system, that is, the target internal system. In the embodiment of the present invention, by analyzing and judging the distribution reference information, the target internal system corresponding to the message information is determined, and then the message information is sent to the target receiving queue corresponding to the target internal system, thereby achieving accurate distribution of the message information and avoiding the occurrence of random message transmission.
[0046] An embodiment of the present invention provides a message distribution method, which can be used to distribute message information of an external system to one or more of multiple internal systems. Specifically, by receiving message information sent by an external system and judging whether the message information includes the original message information of the message information, the message information can be quickly classified to improve the processing speed of the message information; further, according to the judgment result of the original message information, the distribution reference information of the message information is determined, wherein the distribution reference information includes at least one of the original message information, type information and mechanism information of the message information, and based on the distribution reference information, the target internal system corresponding to the message information is determined, and the message information is distributed to the target receiving queue corresponding to the target internal system, thereby realizing accurate distribution of message messages and avoiding the occurrence of message string disorder in multiple internal systems.
[0047] Embodiment 2
[0048] Figure 3 A flowchart diagram of a message distribution method provided in Embodiment 2 of the present invention further refines "determining the distribution reference information of the message information according to the judgment result of the original message information" on the basis of the above embodiment. The specific implementation method can refer to the detailed description of this technical solution. Among them, the technical terms that are the same as or corresponding to the above embodiment are not repeated here. Figure 3 As shown, the method of the embodiment of the present invention specifically includes the following steps:
[0049] S210: Receive message information sent by an external system.
[0050] S220: Determine whether the message information includes original message information of the message information.
[0051] S230: If the message information includes original message information of the message information, determine the original message information as distribution reference information of the message information.
[0052] Specifically, if the message information includes original message information, it indicates that the message information is a message sent by the internal system and fed back to the internal system. The original message information needs to be determined as the distribution reference information of the message information so that the message message can be distributed using the original message information in the message information.
[0053] Based on the above embodiment, determining the target internal system corresponding to the message information based on the distribution reference information includes: extracting the message identifier in the original message information; matching the message identifier in the database to obtain the target internal system corresponding to the message information.
[0054] The message identifier may be a number identifier of the message information, which is unique. The message identifier may be used to determine the original internal system to which the message information uniquely corresponds, that is, to determine the internal system to which the original message information of the message information belongs. The database may be a database associated with the internal system, and the database may include message-related information such as the original message information or related identifiers. In some embodiments, multiple internal systems are associated with one database. In another embodiment, each internal system corresponds to one database, that is, each internal system has a corresponding database, which can ensure information interaction while localizing data and making the data more secure.
[0055] Specifically, the message identifier in the original message information is extracted through the information extraction function in the function library or the natural language processing method, the extracted message identifier is matched in one or more databases, the internal system corresponding to the message identifier is obtained through matching, and the matched internal system is used as the target internal system.
[0056] Based on the above embodiment, the method of matching the message identifier in the database to obtain the target internal system corresponding to the message information includes: matching the message identifier in multiple databases respectively, and if the message identifier matches successfully, determining the target internal system corresponding to the message information based on the internal system corresponding to the database that matches successfully.
[0057] Specifically, each internal system has a corresponding database, that is, the message identifier needs to be matched in multiple databases. If the message identifier is successfully matched in multiple databases, a successfully matched database can be obtained. Since the database corresponds to the internal system one by one, the internal system can be determined through the database, and the internal system corresponding to the successfully matched database is determined as the target internal system corresponding to the message information.
[0058] S240: If the message information does not include original message information of the message information, determine at least one of the type information and the organization information as distribution reference information of the message information.
[0059] In an embodiment of the present invention, by judging whether the message information contains the original message information, the reference information can be divided into two categories, one is that the message information contains the original message information, and the other is that the message information does not contain the original message information, thereby realizing hierarchical judgment, which is beneficial to the distribution of subsequent message messages and improves the efficiency of message distribution.
[0060] On the basis of the above embodiment, the target internal system corresponding to the message information is determined based on the distribution reference information, including: if the type information of the message information is a control type, then each internal system is determined as a target internal system; if the type information of the message information is not a control type, then the target internal system corresponding to the message information is determined based on the organization information.
[0061] Specifically, if the type information of the message information is a control type, each internal system can be determined as a target internal system, that is, the control type message information can be sent to multiple or all internal systems, and further, the message information can be sent to the receiving queue corresponding to the target internal system, and the target internal system can monitor the message messages in the receiving queue in real time. If the type information of the message information is not a control type, it indicates that the message information is a business type, and further judgment is required. The target internal system corresponding to the message information can be determined based on the organization information.
[0062] On the basis of the above embodiment, determining the target internal system corresponding to the message information based on the organization information includes: using the internal system corresponding to the organization information as the target internal system corresponding to the message information.
[0063] Specifically, the internal system may include multiple organizations, that is, there is a corresponding relationship between the internal system and the organization information. In the embodiment of the present invention, the internal system corresponding to the message information can be determined according to the organization information, and the determined internal system can be determined as the target internal system.
[0064] S250. Determine a target internal system corresponding to the message information based on the distribution reference information, and distribute the message information to a target receiving queue corresponding to the target internal system.
[0065] For example, Figure 4 This is a schematic diagram of message information distribution rules. In this figure, only internal system A and internal system B are used as examples, and the number of internal systems is not limited. Message information sent by an external system is received, and it is determined whether the message information includes original message information. If the message information includes original message information, identification information in the original message information is obtained, and the source of the message information is determined according to the identification information, that is, it is determined whether the internal system corresponding to the message information is the internal system A or the internal system B. If the identification information corresponds to the internal system A, the message information is pushed to the receiving queue LAR, and if the identification information corresponds to the internal system B, the message information is pushed to the receiving queue LBR.
[0066] Further, if the message information does not include the original message information, the message type of the message information is judged, that is, the type information of the message information is judged, and if the message information is of a control type, the message information is sent to the receiving queue LAR and the receiving queue LBR.
[0067] Furthermore, if the message information is not of the control type, the internal system to which the message information belongs is determined according to the organization information. If the organization information belongs to the internal system of A, the message information is pushed to the receiving queue LAR; if the organization information belongs to the internal system of B, the message information is pushed to the receiving queue LBR.
[0068] An embodiment of the present invention provides a message distribution method, which can be used to distribute message information of an external system to one or more of multiple internal systems. Specifically, by receiving message information sent by an external system and judging whether the message information includes the original message information of the message information, the message information can be quickly classified to improve the processing speed of the message information; further, according to the judgment result of the original message information, the distribution reference information of the message information is determined, wherein the distribution reference information includes at least one of the original message information, type information and mechanism information of the message information, and based on the distribution reference information, the target internal system corresponding to the message information is determined, and the message information is distributed to the target receiving queue corresponding to the target internal system, thereby realizing accurate distribution of message messages and avoiding the occurrence of message string disorder in multiple internal systems.
[0069] Embodiment 3
[0070] Figure 5 This is a schematic diagram of the structure of a message distribution device provided in Embodiment 3 of the present invention. The message distribution device provided in this embodiment can be implemented by software and / or hardware, and can be configured in a terminal and / or a server to implement the message distribution method in the embodiment of the present invention. The device can specifically include: an information receiving module 310, an information judging module 320, a reference information determining module 330, and an information distribution module 340.
[0071] Among them, the information receiving module 310 is used to receive message information sent by an external system; the information judgment module 320 is used to judge whether the message information includes the original message information of the message information; the reference information determination module 330 is used to determine the distribution reference information of the message information according to the judgment result of the original message information, wherein the distribution reference information includes at least one of the original message information, type information and organization information of the message information; the information distribution module 340 is used to determine the target internal system corresponding to the message information based on the distribution reference information, and distribute the message information to the target receiving queue corresponding to the target internal system.
[0072] An embodiment of the present invention provides a message distribution device, which can be used to distribute message information of an external system to one or more of multiple internal systems. Specifically, by receiving message information sent by an external system and judging whether the message information includes the original message information of the message information, the message information can be quickly classified to improve the processing speed of the message information; further, based on the judgment result of the original message information, the distribution reference information of the message information is determined, wherein the distribution reference information includes at least one of the original message information, type information and mechanism information of the message information, and based on the distribution reference information, the target internal system corresponding to the message information is determined, and the message information is distributed to the target receiving queue corresponding to the target internal system, thereby realizing accurate distribution of message messages and avoiding the occurrence of message string disorder in multiple internal systems.
[0073] Based on any optional technical solution in the embodiment of the present invention, optionally, the information receiving module 310 may also be used for:
[0074] Monitoring a receiving queue, wherein the receiving queue is used to receive message information sent by the external system;
[0075] If it is monitored that the receiving queue contains the message information sent by the external system, the message information sent by the external system is received.
[0076] Based on any optional technical solution in the embodiments of the present invention, optionally, the reference information determination module 330 includes:
[0077] an original message processing unit, configured to determine the original message information as distribution reference information of the message information if the message information includes original message information of the message information;
[0078] A non-original message processing unit is used to determine at least one of the type information and the organization information as distribution reference information of the message information if the message information does not include the original message information of the message information.
[0079] Based on any optional technical solution in the embodiments of the present invention, optionally, the original message processing unit includes:
[0080] A message identifier extraction subunit, used to extract the message identifier in the original message information;
[0081] The message identifier matching subunit is used to match the message identifier in the database to obtain the target internal system corresponding to the message information.
[0082] On the basis of any optional technical solution in the embodiment of the present invention, optionally, the message identifier matching subunit may also be used for:
[0083] The message identifiers are matched in a plurality of databases respectively. If the message identifiers are matched successfully, a target internal system corresponding to the message information is determined based on the internal systems corresponding to the databases that are matched successfully.
[0084] Based on any optional technical solution in the embodiments of the present invention, optionally, the non-original message processing unit includes:
[0085] A control type processing subunit, configured to determine each internal system as a target internal system if the type information of the message information is a control type;
[0086] The non-control processing sub-unit is used to determine the target internal system corresponding to the message information based on the organization information if the type information of the message information is not a control type.
[0087] Based on any optional technical solution in the embodiments of the present invention, optionally, the non-control processing subunit may also be used for:
[0088] The internal system corresponding to the organization information is used as the target internal system corresponding to the message information.
[0089] The message distribution device provided in the embodiment of the present invention can execute the message distribution method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0090] Embodiment 4
[0091] Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Figure 6 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 6 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0092] like Figure 6 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0093] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0094] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0095] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0096] A program / utility 36 having a set (at least one) of program modules 26 may be stored, for example, in system memory 28, such program modules 26 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 26 generally perform the functions and / or methods of the embodiments described herein.
[0097] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and / or any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 20. Figure 6 As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0098] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, for example, implementing a message distribution method provided by an embodiment of the present invention.
[0099] Embodiment 5
[0100] Embodiment 5 of the present invention further provides a storage medium including computer executable instructions, wherein the computer executable instructions are used to execute a message distribution method when executed by a computer processor, for distributing message information of an external system to one or more of a plurality of internal systems, the method comprising:
[0101] Receive message information sent by external systems;
[0102] Determining whether the message information includes original message information of the message information;
[0103] Determine distribution reference information of the message information according to the judgment result of the original message information, wherein the distribution reference information includes at least one of original message information, type information and organization information of the message information;
[0104] A target internal system corresponding to the message information is determined based on the distribution reference information, and the message information is distributed to a target receiving queue corresponding to the target internal system.
[0105] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0106] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0107] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0108] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0109] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A message distribution method, characterized in that: For distributing message information of an external system to one or more of a plurality of internal systems, the method comprises: Receive message information sent by external systems; Determining whether the message information includes original message information of the message information; Determine distribution reference information of the message information according to the judgment result of the original message information, wherein the distribution reference information includes at least one of original message information, type information and organization information of the message information; Determine the target internal system corresponding to the message information based on the distribution reference information, and distribute the message information to the target receiving queue corresponding to the target internal system; The step of determining the distribution reference information of the message information according to the judgment result of the original message information includes: If the message information includes original message information of the message information, determining the original message information as distribution reference information of the message information; If the message information does not include original message information of the message information, determining at least one of the type information and the organization information as distribution reference information of the message information; The original message information is message information that is partially identical to the message information sent by the internal system; Wherein, determining the target internal system corresponding to the message information based on the distribution reference information includes: Extracting a message identifier from the original message information; The message identifier is matched in multiple databases respectively. If the message identifier is matched successfully, the target internal system corresponding to the message information is determined based on the internal system corresponding to the successfully matched database; wherein each internal system has a corresponding database.
2. The method according to claim 1, characterized in that The receiving of message information sent by the external system includes: Monitoring a receiving queue, wherein the receiving queue is used to receive message information sent by the external system; If it is monitored that the receiving queue contains the message information sent by the external system, the message information sent by the external system is received.
3. The method according to claim 1, characterized in that The determining, based on the distribution reference information, a target internal system corresponding to the message information includes: If the type information of the message information is a control type, each internal system is determined as a target internal system; If the type information of the message information is not a control type, a target internal system corresponding to the message information is determined based on the organization information.
4. The method according to claim 3, characterized in that The determining, based on the organization information, a target internal system corresponding to the message information includes: The internal system corresponding to the organization information is used as the target internal system corresponding to the message information.
5. A message distribution device, characterized in that: The device is used to distribute message information of an external system to one or more of a plurality of internal systems, the device comprising: An information receiving module, used for receiving message information sent by an external system; An information determination module, used for determining whether the message information includes original message information of the message information; A reference information determination module, configured to determine distribution reference information of the message information according to a judgment result of the original message information, wherein the distribution reference information includes at least one of original message information, type information and organization information of the message information; An information distribution module, used to determine a target internal system corresponding to the message information based on the distribution reference information, and distribute the message information to a target receiving queue corresponding to the target internal system; Wherein, the reference information determination module includes: an original message processing unit, configured to determine the original message information as distribution reference information of the message information if the message information includes original message information of the message information; a non-original message processing unit, configured to determine at least one of the type information and the organization information as distribution reference information of the message information if the message information does not include original message information of the message information; The original message information is message information that is partially identical to the message information sent by the internal system; Wherein, the original message processing unit includes: A message identifier extraction subunit, used to extract the message identifier in the original message information; The message identifier matching subunit is used to match the message identifier in multiple databases respectively. If the message identifier matches successfully, the target internal system corresponding to the message information is determined based on the internal system corresponding to the successfully matched database; wherein each internal system has a corresponding database.
6. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the message distribution method as described in any one of claims 1-4.
7. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the message distribution method as described in any one of claims 1 to 4 when executed by a computer processor.
Citation Information
Patent Citations
Message processing system and method supporting multi-system access
CN105868032A
Gateway protection method and device, computer equipment and storage medium
CN110995658A
Message processing method and proxy server
CN112261094A
Transaction distribution method and device based on TCP request message, and transaction distribution gateway
CN113794771A
