CN111786886B - Message processing method, device and system, electronic equipment and storage medium - Google Patents

Message processing method, device and system, electronic equipment and storage medium Download PDF

Info

Publication number
CN111786886B
CN111786886B CN202010618081.7A CN202010618081A CN111786886B CN 111786886 B CN111786886 B CN 111786886B CN 202010618081 A CN202010618081 A CN 202010618081A CN 111786886 B CN111786886 B CN 111786886B
Authority
CN
China
Prior art keywords
message
service
service message
processing object
determining
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
CN202010618081.7A
Other languages
Chinese (zh)
Other versions
CN111786886A (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.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding 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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202010618081.7A priority Critical patent/CN111786886B/en
Publication of CN111786886A publication Critical patent/CN111786886A/en
Application granted granted Critical
Publication of CN111786886B publication Critical patent/CN111786886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/14Routing performance; Theoretical aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • G06Q30/0637Approvals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Abstract

The application relates to a message service method, a message service device, an electronic device and a storage medium, wherein the method comprises the following steps: acquiring the message type of the monitored service message; determining a target processing object corresponding to the service message according to the message type; analyzing the parameter information in the service message to determine a routing strategy; and sending the service message to the target processing object according to the routing strategy. According to the technical scheme, the message type of the service message is judged, the target processing terminal is determined according to the message type, the routing strategy is determined, and the service message is sent to the target processing object through the routing strategy, so that the problems that in the prior art, the system bearing pressure is high and resource waste is easily caused due to the fact that all processing terminals monitor the service message are solved.

Description

Message processing method, device and system, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a method, an apparatus, a system, an electronic device, and a storage medium for processing a message.
Background
Currently, in an order system of an e-commerce platform, along with the change of the order status, the system sends different service messages, such as: the order system includes: and when the order state is in a certain node, the message queue corresponding to the node can send service messages to the service processing system. In implementing the present invention, the inventor finds that, in any message queue in the prior art, when a service message is generated, a processing terminal in a service processing system listens to the message. This method not only causes resource waste in the service processing process, but also causes excessive pressure on the service processing system.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the application provides a message processing method, a device, a system, an electronic device and a storage medium.
According to an aspect of an embodiment of the present application, there is provided a message processing method, including:
acquiring the monitored message type of the service message;
determining a target processing object corresponding to the service message according to the message type;
analyzing the parameter information in the service message to determine a routing strategy;
and sending the service message to the target processing object according to the routing strategy.
Further, the obtaining of the monitored message type of the service message includes:
acquiring field information of the service message;
and analyzing the field information according to a preset rule to determine the message type of the service message.
Further, the determining a target processing object corresponding to the service message according to the message type includes:
determining at least one processing object corresponding to the service message according to the message type;
and determining the processing object meeting the first preset condition as the target processing object.
Further, the method further comprises:
determining a target number of the target processing objects;
and loading the service message to a task list according to the target number.
Further, before parsing the parameter information in the service message to determine the routing policy, the method further includes:
reading message content carried by the service message based on the task list;
and analyzing the parameter type of the parameter information in the message content to obtain an analysis result.
Further, the analyzing the parameter information in the service message to determine the routing policy includes:
when the service message is determined to meet a second preset condition according to the analysis result, acquiring identification information in the message content;
and determining the routing strategy according to the identification information.
According to another aspect of the embodiments of the present application, there is also provided a message processing apparatus, including:
the analysis module is used for acquiring the message type of the monitored service message;
a determining module, configured to determine, according to the message type, a target processing object corresponding to the service message;
the analysis module is used for analyzing the parameter information in the service message to determine a routing strategy;
and the sending module is used for sending the service message to the target processing object according to the routing strategy.
According to another aspect of the embodiments of the present application, there is also provided a message processing system, including: the system comprises a monitoring device, a database and a distribution device;
the monitoring device is used for monitoring the service message sent by the sender and sending the service message to the database;
the distribution device is used for reading the service message from the database, analyzing the service message to obtain the message type of the service message, determining a target processing object corresponding to the service message according to the message type, analyzing parameter information in the service message to determine a routing strategy, and sending the service message to the target processing object according to the routing strategy.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the above method steps when executing the computer program.
According to another aspect of embodiments of the present application, there is also provided a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the above-mentioned method steps.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: by judging the message type of the service message, determining the target processing terminal according to the message type, determining the routing strategy and sending the service message to the target processing object through the routing strategy, the problems that the system bears large pressure and resources are easily wasted due to the fact that all processing terminals monitor the service message in the prior art are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
Fig. 1 is a schematic diagram of a message processing process in the prior art according to an embodiment of the present application;
fig. 2 is a flowchart of a message processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a mapping relationship between field information and service types according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of another mapping relationship between field information and service types provided in the embodiment of the present application;
fig. 5 is a block diagram of a message processing apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of a message processing system according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments, and the illustrative embodiments and descriptions thereof of the present application are used for explaining the present application and do not constitute a limitation to the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another similar entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
According to an aspect of embodiments of the present application, a method embodiment of a message processing method is provided. The message processing method provided by the embodiment has the following application scenarios: taking the order system as an example, the system includes a plurality of nodes, for example: the method comprises the following steps of ex-warehouse, order completion, appropriate delivery, order cancellation and the like, wherein each node corresponds to a message queue, and in the prior art, service messages generated by a certain message queue are monitored in a service processing system by a processing terminal. For example, fig. 1 is a schematic diagram of a message processing process in the prior art provided by an embodiment of the present application, and as shown in fig. 1, when a service message is sent from an ex-warehouse message queue, a processing terminal corresponding to each insurance service may listen, so that the system is under a higher pressure, and resources are easily wasted. It should be noted that, the processing terminal of the present application takes processing insurance services as an example, and may also be order tracking services, verification services, and the like in addition to the insurance services.
Therefore, the message processing method provided by the application determines the target processing terminal according to the message type and determines the routing strategy by judging the message type of the service message, thereby solving the problems that the system bearing pressure is high and resource waste is easily caused because all processing terminals monitor the service message in the prior art.
Fig. 2 is a flowchart of a message processing method according to an embodiment of the present application, and as shown in fig. 2, the method includes:
and step S11, acquiring the message type of the monitored service message.
The service message in this embodiment is sent by the sender, and it is understood that the sender may be various Message Queues (MQ), such as an ex-warehouse message queue, an order completion message queue, a put-to-fail message queue, and an order cancellation message queue.
An mq (message queue) message queue is a kind of data mechanism in the basic data structure, i.e. "first in first out". Refers to placing data (messages) to be transmitted in a queue, using a queue mechanism to effect message delivery-a producer generates and places messages in a queue, which are then processed by a consumer. The consumer can pull the message to the designated queue or subscribe to the corresponding queue, and the MQ server side pushes the message to the corresponding queue.
The message queue middleware is an important component in a distributed system, mainly solves the problems of application decoupling, asynchronous messages, traffic cutting and the like, and realizes a high-performance, high-availability, scalable and final consistency framework. Wherein (1) decoupling: one service needs to be realized by a plurality of modules together, or one message has a plurality of systems to be correspondingly processed, only one MQ is sent after the main service is completed, and the other modules consume the MQ message, so that the service can be realized, and the coupling between the modules is reduced. (2) Asynchronization: after the execution of the main service is finished, the subordinate service is asynchronously executed through the MQ, so that the response time of the service is shortened, and the user experience is improved. (3) Peak clipping: under the condition of high concurrency, the service is processed asynchronously, the service processing capacity in the peak period is provided, and the system paralysis is avoided.
In this step, analyzing the monitored service message sent by the sender, and obtaining the message type of the service message includes: acquiring field information of a service message; and analyzing the field information according to a preset rule to determine the message type of the service message.
As one example, for example, obtaining field information of the current service message includes: the preset rule of the send Pay field can be a mapping relation between locally stored field information and service types, a sender (message queue) corresponding to the send Pay field can be determined through the mapping relation, and when the service message can be determined to be sent by the order completion message queue, insurance services required to be consumed by the order completion message queue are determined. It should be noted that the field information carried by the service messages sent by different message queues is also different. The insurance services that need to be consumed by the different message queues are different.
It should be noted that, when the staff performs the mapping relationship between the preconfigured field information and the service type, the following two ways are included: fig. 3 is a schematic diagram of a mapping relationship between field information and a service type provided in an embodiment of the present application, and as shown in fig. 3, a mapping relationship between field information and a message queue is first established, and then a mapping relationship between the message queue and an insurance service is established, so that a message type of a service message is defined by a type of the insurance service, for example: determining that the service message comes from the order completion message queue through the field information, setting that insurance service corresponding to the order completion message queue has freight risk, material damage risk and quality insurance risk, wherein the message type comprises the following steps: type 1, type 2, type 3.
Fig. 4 is a schematic diagram of another mapping relationship between field information and a service type provided in an embodiment of the present application, and as shown in fig. 4, a message type is defined by an attribute of a message queue, for example, a mapping relationship between field information and an attribute of a message queue may be directly established, for example: the message type corresponding to the field information a is an order completion type (type X).
And step S12, determining the target processing object corresponding to the service message according to the message type.
In this embodiment, at least one processing object corresponding to a service message is first determined according to a message type, where each message type corresponds to one processing object, and the processing object is a processing terminal for processing a corresponding insurance service, and it can be understood that each insurance service corresponds to one processing terminal for processing the insurance type, for example: the message types include: when the freight insurance type, the object damage type and the quality insurance type are adopted, the corresponding processing objects comprise: the system comprises a freight risk processing terminal, an object damage risk processing terminal and a quality insurance processing terminal. Or, if the message type is an order completion type, at least one processing object associated with the message type may be determined, where the corresponding processing object includes: the system comprises a freight risk processing terminal, an object damage risk processing terminal and a quality insurance processing terminal.
It should be noted that some insurance services do not need to consume, so that the processing objects corresponding to the service messages need to be filtered, thereby ensuring that the pressure of the system for processing the messages is reduced, and simultaneously saving system resources. For this reason, in this embodiment, a preset condition is also set, and a processing object that satisfies the first preset condition is determined as a target processing object. The first preset condition may be configuration information of insurance service configured by a worker for each message queue in advance, where the configuration information includes: each message queue queues service messages sent at different stages, and the insurance services that the service messages need to consume at that stage.
As an example, the service message sent by the outbound message queue includes the message types: freight insurance type, screen breaking insurance type, and quality insurance type. Then the corresponding processing objects are: the system comprises a freight risk processing terminal, a screen breaking risk processing terminal and a quality insurance processing terminal, and the freight risk does not need to be consumed at the moment. Therefore, the processing terminals corresponding to the quality insurance and the screen breakage insurance are the target processing objects.
The message processing method provided in this embodiment further includes: determining a target number of target processing objects; and loading the service messages to the task list according to the target number. The task list in this embodiment may be a thread pool. The embodiment can ensure that the service message is processed quickly by adopting the thread pool mode, and reduces resource consumption caused by thread creation by repeatedly utilizing the created thread when the service message is simultaneously sent to a plurality of processing objects.
As an example, when a service message is received, an execution task is first created in a thread pool, and a target processing object corresponding to the service message is determined to include the execution task; the processing terminal for processing freight insurance, the processing terminal for processing screen breakage insurance and the processing terminal for processing quality insurance can determine that the number of target processing objects is three, and at the moment, the service message is added with two subtasks under the corresponding execution task in the thread pool.
It should be noted that the thread pool is a multi-thread processing form, and the tasks are added to the queue in the process and then automatically started after the threads are created. The thread pool threads are all background threads. Each thread uses a default stack size, runs at a default priority, and is in a multi-threaded unit. If a thread is idle in managed code (e.g., waiting for an event), the thread pool will insert another helper thread to keep all processors busy. If all thread pool threads remain busy all the time, but pending work is contained in the queue, the thread pool will create another helper thread after a period of time but the number of threads never exceeds the maximum.
And step S13, resolving the parameter information in the service message to determine the routing strategy.
And step S14, sending the service message to the target processing object according to the routing strategy.
Further, before parsing the parameter information in the service message to determine the routing policy, the method further includes: reading message content carried by the service message based on the task list; and analyzing the message content to obtain an analysis result.
In this embodiment, the analyzing the message content may be: and acquiring parameter information associated with the message type from the message content according to the message type, and determining an analysis result for the parameter type in the parameter information. For example: when a service message sent by a ordering message queue is analyzed, parameter information vender Id (merchant number) related to freight is obtained from message content according to the message type, and then whether the merchant signs the freight risk or not is judged according to the parameter type in the vender Id, when the parameter type is a first type, the analysis result is that the merchant signs the freight risk, and when the parameter type is a second type, the analysis result is that the merchant does not sign the freight risk, wherein the first type can be not empty, and the second type can be empty.
In this step, the analyzing the parameter information in the service message to determine the routing policy includes: when the service message is determined to meet the second preset condition according to the analysis result, acquiring identification information in the message content; and determining a routing strategy according to the identification information.
As an example, determining that the service message satisfies the second preset condition according to the analysis result is: when a merchant signs the freight insurance, the service message is determined to meet the sending condition, and it can be understood that the service message can be distributed to a processing terminal corresponding to the freight insurance only after signing, and the service message is directly ignored if not signing.
When the service message is determined to meet the sending condition, the identification information is obtained from the message content, and the identification information is used for indicating a mode (namely a routing strategy) for sending the service message to the target processing object. The identification information in this embodiment includes: MQ and JSF.
As an example, the execution logic of the parsing process is as follows:
the routes label is a root node, the routeConfig is an element under the root node, and a plurality of elements can be arranged under the root node, namely a plurality of routing configurations:
<routes>
<routeConfig>
RouteName ═ merchant insurance routing identification "
ListenerTopic ═ topic of ex-warehouse MQ "
RouteMethod=”JSF”
Based on the identifier carried by the RouteMethod being JSF, the service message is sent in the JSF manner. Similarly, if the identifier carried by the RouteMethod is MQ, the way of MQ is called to send the service message.
In the method embodiment provided by the application, the problems that the system bears large pressure and resources are easily wasted due to the fact that all processing terminals monitor the service messages in the prior art are solved by judging the message types of the service messages, determining the target processing terminal according to the message types, determining the routing strategy and sending the service messages to the target processing object through the routing strategy.
Fig. 5 is a block diagram of a message processing apparatus provided in an embodiment of the present application, which may be implemented as part of or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 5, the message processing apparatus includes:
an analysis module 51, configured to obtain a message type of the monitored service message;
a determining module 52, configured to determine a target processing object corresponding to the service message according to the message type;
the analysis module 53 is configured to analyze the parameter information in the service message to determine a routing policy;
and a sending module 54, configured to send the service message to the target processing object according to the routing policy.
The analysis module in this embodiment is specifically configured to obtain field information of the service message; and analyzing the field information according to a preset rule to determine the message type of the service message.
The determining module in this embodiment is specifically configured to determine, according to a message type, at least one processing object corresponding to a service message; and determining the processing object meeting the first preset condition as a target processing object.
Further, the apparatus of this embodiment further includes a loading module, configured to determine a target number of target processing objects; and loading the service messages to the task list according to the target number.
Further, the apparatus of this embodiment further includes an analysis module, configured to read, based on the task list, message content carried by the service message; and analyzing the message content to obtain an analysis result.
Further, the parsing module of this embodiment is specifically configured to, when it is determined that the service message satisfies the second preset condition according to the analysis result, obtain identification information in the message content; and determining a routing strategy according to the identification information.
According to another aspect of the embodiments of the present application, there is also provided a message processing system, and fig. 6 is a block diagram of a message processing system provided in the embodiments of the present application, as shown in fig. 6, including: the monitoring device 61, the database 62 and the distribution device 63;
a monitoring device 61, configured to monitor a service message sent by a sender, and send the service message to a database 62; the sending side in this embodiment is each message queue.
The distribution device 63 is configured to read the service message from the database 62, analyze the service message to obtain a message type of the service message, determine a target processing object corresponding to the service message according to the message type, analyze parameter information in the service message to determine a routing policy, and send the service message to the target processing object according to the routing policy.
It should be noted that, the target processing object is placed in the service system, and the routing policy includes: and adopting MQ mode to send down and adopting JSF mode to send down.
In this embodiment, the service message is read from the database, the distribution device performs distribution processing, the processing terminals with which insurance services are distributed are determined according to a preset rule, then a task capable of executing threads is created in the thread pool, meanwhile, subtasks are added according to the number of the processing terminals required to be sent, and the subtasks fall into the database again, and the task further determines the distribution processing of the message according to the routing configuration. After the processing, the distribution device calls JSF and MQ to distribute the service message, and the message processing system carries out fixed point pointing and targeted screening and filtering on the service message, so that the pressure of the service system for processing the service message can be relieved, and unnecessary processing logic is reduced.
An embodiment of the present application further provides an electronic device, as shown in fig. 7, the electronic device may include: the system comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 complete communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to implement the steps of the above embodiments when executing the computer program stored in the memory 1503.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components.
In yet another embodiment provided by the present application, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to perform the service message routing method as described in any of the above embodiments.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the service message routing method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
It should be noted that, for the above-mentioned apparatus, electronic device and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
It is further noted that, herein, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A message processing method, comprising:
acquiring the message type of the monitored service message;
determining a target processing object corresponding to the service message according to the message type; wherein, the determining the target processing object corresponding to the service message according to the message type includes:
determining at least one processing object corresponding to the service message according to the message type;
determining a processing object meeting a first preset condition as the target processing object; the first preset condition is configuration information of insurance service configured by staff for each message queue in advance, and the configuration information comprises the following steps: service messages sent by each message queue at different stages and insurance services consumed by the service messages at the stages;
analyzing the parameter information in the service message to determine a routing strategy;
sending the service message to the target processing object according to the routing strategy;
the method further comprises the following steps:
determining a target number of the target processing objects;
loading the service message to a task list according to the target number;
the method further comprises the following steps:
reading message content carried by the service message based on the task list before analyzing parameter information in the service message to determine a routing strategy;
and analyzing the parameter type of the parameter information in the message content to obtain an analysis result.
2. The method of claim 1, wherein obtaining the message type of the monitored service message comprises:
acquiring field information of the service message;
and analyzing the field information according to a preset rule to determine the message type of the service message.
3. The method of claim 1, wherein the parsing the parameter information in the service message to determine a routing policy comprises:
when the service message is determined to meet a second preset condition according to the analysis result, acquiring identification information in the message content;
and determining the routing strategy according to the identification information.
4. A message processing apparatus, comprising:
the analysis module is used for acquiring the message type of the monitored service message;
the determining module is used for determining a processing object corresponding to the service message according to the message type, wherein the determining module is also used for determining at least one processing object corresponding to the service message according to the message type; determining a processing object meeting a first preset condition as a target processing object, wherein the first preset condition is configuration information of insurance service configured by a worker for each message queue in advance, and the configuration information comprises the following steps: service messages sent by each message queue at different stages and insurance services consumed by the service messages at the stages;
the analysis module is used for analyzing the parameter information in the service message to determine a routing strategy;
a sending module, configured to send the service message to the processing object according to the routing policy;
the device also includes:
the loading module is used for determining the target number of the target processing objects; loading the service messages to a task list according to the target number;
the device also includes:
the analysis module is used for reading message content carried by the service message based on the task list; and analyzing the parameter type of the parameter information in the message content to obtain an analysis result.
5. A message processing system, comprising: the system comprises a monitoring device, a database and a distribution device;
the monitoring device is used for monitoring the service message sent by the sender and sending the service message to the database;
the distribution device is configured to read the service message from the database, analyze the service message to obtain a message type of the service message, and determine a target processing object corresponding to the service message according to the message type, where the determining the target processing object corresponding to the service message according to the message type includes: determining at least one processing object corresponding to the service message according to the message type; determining a processing object meeting a first preset condition as the target processing object; the first preset condition is that the configuration information of the insurance service configured by the staff for each message queue in advance comprises the following steps: service messages sent by each message queue at different stages and insurance services consumed by the service messages at the stages; analyzing parameter information in the service message to determine a routing strategy, and sending the service message to the target processing object according to the routing strategy;
the system further comprises means for: determining a target number of the target processing objects; loading the service message to a task list according to the target number;
the system further comprises further means for: reading message contents carried by the service message based on the task list before analyzing parameter information in the service message to determine a routing strategy; and analyzing the parameter type of the parameter information in the message content to obtain an analysis result.
6. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the computer program, implementing the method steps of any of claims 1-3.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 3.
CN202010618081.7A 2020-06-30 2020-06-30 Message processing method, device and system, electronic equipment and storage medium Active CN111786886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010618081.7A CN111786886B (en) 2020-06-30 2020-06-30 Message processing method, device and system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010618081.7A CN111786886B (en) 2020-06-30 2020-06-30 Message processing method, device and system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111786886A CN111786886A (en) 2020-10-16
CN111786886B true CN111786886B (en) 2022-09-06

Family

ID=72760399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010618081.7A Active CN111786886B (en) 2020-06-30 2020-06-30 Message processing method, device and system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111786886B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291325A (en) * 2020-10-23 2021-01-29 上海豹云网络信息服务有限公司 Message processing method and device and computer system
CN112488462A (en) * 2020-11-13 2021-03-12 山东中创软件商用中间件股份有限公司 Unified pushing method, device and medium for workflow data
CN115914346A (en) * 2021-08-09 2023-04-04 中移物联网有限公司 Internet of things message processing method and device, electronic equipment and storage medium
CN114338381A (en) * 2021-12-29 2022-04-12 中国邮政储蓄银行股份有限公司 Unitized processing method of message, message gateway and processing system of message
CN114978991B (en) * 2022-05-17 2024-03-12 平安科技(深圳)有限公司 Route distribution method, route distribution device, electronic equipment and computer readable storage medium
CN114780265A (en) * 2022-05-18 2022-07-22 壹沓科技(上海)有限公司 Cross-system service calling method, device and related equipment based on DSL
CN116599922A (en) * 2023-05-09 2023-08-15 广州市玄武无线科技股份有限公司 Routing method, system, device and medium for multi-type message

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193663A (en) * 2017-01-04 2017-09-22 新华三技术有限公司 A kind of service message processing method and device
CN107784552A (en) * 2017-07-24 2018-03-09 上海壹账通金融科技有限公司 Information push task executing method, device, computer equipment and storage medium
CN108965380A (en) * 2018-05-31 2018-12-07 平安医疗科技有限公司 Service request processing method, device, computer equipment and storage medium
US10579449B1 (en) * 2018-11-02 2020-03-03 Dell Products, L.P. Message queue architectures framework converter

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150301875A1 (en) * 2014-04-22 2015-10-22 Andreas Harnesk Persisting and managing application messages
US10382217B1 (en) * 2016-03-30 2019-08-13 Juniper Networks, Inc. Single actual-forwarder election in multicast VPNs
CN109547514A (en) * 2017-09-22 2019-03-29 北京金山云网络技术有限公司 A kind of task processing method, device, electronic equipment and storage medium
CN108196961B (en) * 2017-12-28 2020-05-12 蜂助手股份有限公司 Asynchronous message processing method, terminal, system and storage medium
CN108388479B (en) * 2018-02-10 2021-09-24 深圳壹账通智能科技有限公司 Delayed message pushing method and device, computer equipment and storage medium
CN109800096A (en) * 2019-01-08 2019-05-24 深圳市买买提信息科技有限公司 A kind of method and system that message block is retransmitted
CN110912807A (en) * 2019-11-22 2020-03-24 北京奇艺世纪科技有限公司 Information prompting method and device, electronic equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193663A (en) * 2017-01-04 2017-09-22 新华三技术有限公司 A kind of service message processing method and device
CN107784552A (en) * 2017-07-24 2018-03-09 上海壹账通金融科技有限公司 Information push task executing method, device, computer equipment and storage medium
CN108965380A (en) * 2018-05-31 2018-12-07 平安医疗科技有限公司 Service request processing method, device, computer equipment and storage medium
US10579449B1 (en) * 2018-11-02 2020-03-03 Dell Products, L.P. Message queue architectures framework converter

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"基于Comet的消息推送系统的研究与实现";王晓玉;《西安电子科技大学硕士学位论文》;20190215;全文 *
一种基于Netty的环保物联网实时双向通信模型研究;庄国强;《郑州师范教育》;20171125(第06期);全文 *

Also Published As

Publication number Publication date
CN111786886A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN111786886B (en) Message processing method, device and system, electronic equipment and storage medium
CN107729139B (en) Method and device for concurrently acquiring resources
CN109271265B (en) Request processing method, device, equipment and storage medium based on message queue
CN111950988B (en) Distributed workflow scheduling method and device, storage medium and electronic equipment
CN108897854B (en) Monitoring method and device for overtime task
US9535749B2 (en) Methods for managing work load bursts and devices thereof
CN111427694A (en) Task execution method, device, system and server
CN111858007A (en) Task scheduling method and device based on message middleware
US8250205B2 (en) Business process management system, method thereof, process management computer and program thereof
CN111767127A (en) Service data processing method and device
CN107729213A (en) A kind of background task monitoring method and device
CN114817050A (en) Task execution method and device, electronic equipment and computer readable storage medium
CN112052133A (en) Service system monitoring method and device based on Kubernetes
CN111491015B (en) Preheating task processing method and system, proxy server and service center
CN112307046A (en) Data acquisition method and device, computer readable storage medium and electronic equipment
CN113760522A (en) Task processing method and device
CN109271259B (en) Enterprise service bus system, data processing method, terminal and storage medium
CN116828035A (en) Data integration system based on cloud computing
CN113535439B (en) Service request processing method, device, equipment and storage medium
CN114090268B (en) Container management method and container management system
CN115580522A (en) Method and device for monitoring running state of container cloud platform
CN114928603A (en) Client software upgrading method and device, electronic equipment and medium
CN113743630A (en) Method and device for executing intelligent call reservation
CN112306791A (en) Method and device for monitoring performance
CN117217687A (en) Task allocation-based collaboration method and device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Digital Technology Holding Co.,Ltd.

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Digital Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: JINGDONG DIGITAL TECHNOLOGY HOLDINGS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant