CN115543610A - Method, device, equipment and storage medium for processing message - Google Patents

Method, device, equipment and storage medium for processing message Download PDF

Info

Publication number
CN115543610A
CN115543610A CN202211136524.4A CN202211136524A CN115543610A CN 115543610 A CN115543610 A CN 115543610A CN 202211136524 A CN202211136524 A CN 202211136524A CN 115543610 A CN115543610 A CN 115543610A
Authority
CN
China
Prior art keywords
message
processed
processing
report
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211136524.4A
Other languages
Chinese (zh)
Inventor
张席
詹仁冬
许蓉蓉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211136524.4A priority Critical patent/CN115543610A/en
Publication of CN115543610A publication Critical patent/CN115543610A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application relates to the field of data analysis, and in particular, to a method, an apparatus, a device, and a storage medium for processing a packet, which are used to solve the problem of low packet processing efficiency. The method comprises the following steps: performing message registration on an obtained first message to be processed, wherein the first message to be processed is a received message or a message to be sent; after the first message to be processed is determined to be successfully registered, issuing a report-making event aiming at the first message to be processed, wherein the report-making event is used for indicating to carry out report-making processing on the first message to be processed; after each pre-stored alternative processing thread is confirmed to monitor the group report event, a target processing thread is selected from each alternative processing thread, and a message identifier of the first message to be processed is added into a cache; and after the successful addition is determined, performing packet processing on the first message to be processed by adopting the target processing thread.

Description

Method, device, equipment and storage medium for processing message
Technical Field
The present application relates to the field of data analysis, and in particular, to a method, an apparatus, a device, and a storage medium for processing a packet.
Background
With the continuous development of science and technology, more and more devices can process messages, for example, an online server and a high-frequency server can register the messages, and the high-frequency server can group the messages.
In the related art, in the method for processing the message, after the message is registered, the message is stored in the message queue according to the order of receiving and sending the message, and when the high-frequency server reaches the group report processing time, all the messages in the message queue are processed in a unified manner in sequence.
However, since the group report processing time is a pre-specified time and the sending and receiving of the messages are performed at any time, before the group report processing time arrives, a large number of messages to be processed are stored in the message queue, so that the group report processing time arrives, the high-frequency server needs to perform group report processing on a large number of messages, and not only is a large amount of unnecessary processing time consumed during the waiting time for the arrival of the group report processing time, which causes a problem of low message processing efficiency, but also the high-frequency server needs to process a large number of messages at the same time, so that the computation resources of the high-frequency server suddenly occupy more, thereby further aggravating the problem of low message processing efficiency.
Therefore, in the related art, the message processing efficiency is low.
Disclosure of Invention
The embodiment of the application provides a method and a device for processing a message, computer equipment and a storage medium, which are used for solving the problem of low message processing efficiency.
In a first aspect, a method for processing a packet is provided, including:
performing message registration on an obtained first message to be processed, wherein the first message to be processed is a received message or a message to be sent;
after the first message to be processed is determined to be successfully registered, issuing a report event aiming at the first message to be processed, wherein the report event is used for indicating that the first message to be processed is subjected to report processing;
after each pre-stored alternative processing thread is confirmed to monitor the group report event, a target processing thread is selected from each alternative processing thread, and a message identifier of the first message to be processed is added into a cache;
and after the successful addition is determined, performing packet processing on the first message to be processed by adopting the target processing thread.
Optionally, after the addition is determined to be successful, performing packet processing on the first to-be-processed packet by using the target processing thread, where the processing includes:
after the successful addition is determined, setting an overtime length for the message identifier association of the first message to be processed in the cache by using the target processing thread, and starting timing, wherein the overtime length is used for limiting the longest time length of the message identifier stored in the cache;
selecting a target processing thread from all prestored alternative processing threads, and performing packet processing on the first message to be processed;
and when the time reaches the timeout duration, deleting the message identifier of the first message to be processed in the cache.
Optionally, after the group packet processing is performed on the first to-be-processed packet by using the target processing thread, the method further includes:
generating a group report processing result by adopting the target processing thread, wherein the group report processing result represents whether group report processing is successful or not;
after the report failure of the group report processing result representation group is determined, controlling an appointed server to add the message identifier of the first message to be processed in the cache;
after the successful addition is determined, controlling the specified server to determine whether the message identifier of the first message to be processed is associated with the set timeout duration or not in the cache;
and after determining that the message identifier of the first message to be processed is associated with the set timeout duration, controlling the designated server to perform packet processing on the first message to be processed.
Optionally, the adding, to the cache, the packet identifier of the first packet to be processed includes:
determining whether the message identifier of the first message to be processed exists in the cache;
and if the message identifier of the first message to be processed does not exist, adding the message identifier of the first message to be processed in the cache.
Optionally, when the first message to be processed is a message to be sent, the performing, by using the target processing thread, packet processing on the first message to be processed includes:
performing format conversion on the first message to be processed by adopting the target processing thread based on a preset data format;
when a message to be matched associated with the first message to be processed is received, message registration is carried out on the message to be matched;
after the message to be matched is determined to be successfully registered, format conversion is carried out on the message to be matched based on the preset data format by adopting the target processing thread;
and matching the first message to be processed after format conversion with the message to be matched after format conversion by adopting the target processing thread so as to finish the group report processing of the first message to be processed.
Optionally, a group report processing time is set in association with the designated server, and the group report processing time is used for indicating a time when the designated server performs group report processing;
before the performing packet processing on the first to-be-processed packet by using the target processing thread, the method further includes:
when a second message to be processed is obtained, message registration is carried out on the second message to be processed;
after the second message to be processed is determined to be registered successfully, when the time interval between the current time and the group report processing time associated with the designated server is determined to be within a preset time range, and the designated server is controlled to add the message identifier of the second message to be processed in the cache when the group report processing time arrives;
and after the successful addition is determined, controlling the designated server to perform packet processing on the second message to be processed.
In a second aspect, an apparatus for processing a packet is provided, including:
an acquisition module: the message registration is performed on the obtained first message to be processed, wherein the first message to be processed is a received message or a message to be sent;
a processing module: the message processing device is used for issuing a report-making event aiming at the first message to be processed after the first message to be processed is determined to be registered successfully, wherein the report-making event is used for indicating to carry out report-making processing on the first message to be processed;
the processing module is further configured to: after determining that each pre-stored alternative processing thread monitors the group report event, selecting a target processing thread from each alternative processing thread, and adding a message identifier of the first message to be processed in a cache;
the processing module is further configured to: and after the successful addition is determined, performing packet processing on the first message to be processed by adopting the target processing thread.
Optionally, the processing module is specifically configured to:
after the successful addition is determined, setting an overtime length for the message identifier association of the first message to be processed in the cache by using the target processing thread, and starting timing, wherein the overtime length is used for limiting the longest time length of the message identifier stored in the cache;
selecting a target processing thread from all prestored alternative processing threads, and performing packet processing on the first message to be processed;
and when the timing reaches the timeout duration, deleting the message identifier of the first message to be processed in the cache.
Optionally, the processing module is further configured to:
after the first to-be-processed message is subjected to packet processing by using the target processing thread, generating a packet processing result by using the target processing thread, wherein the packet processing result represents whether the packet processing is successful;
after the report failure of the group report processing result representation group is determined, controlling an appointed server to add the message identifier of the first message to be processed in the cache;
after the successful addition is determined, controlling the specified server to determine whether the message identifier of the first message to be processed is associated with the set timeout duration or not in the cache;
and after determining that the message identifier of the first message to be processed is associated with the set timeout duration, controlling the designated server to perform packet processing on the first message to be processed.
Optionally, the processing module is specifically configured to:
determining whether the message identifier of the first message to be processed exists in the cache;
and if the message identifier of the first message to be processed does not exist, adding the message identifier of the first message to be processed in the cache.
Optionally, when the first message to be processed is a message to be sent, the processing module is specifically configured to:
adopting the target processing thread to perform format conversion on the first message to be processed based on a preset data format;
when a message to be matched associated with the first message to be processed is received, message registration is carried out on the message to be matched;
after the message to be matched is determined to be successfully registered, format conversion is carried out on the message to be matched based on the preset data format by adopting the target processing thread;
and matching the first message to be processed after format conversion with the message to be matched after format conversion by adopting the target processing thread so as to finish the group report processing of the first message to be processed.
Optionally, a group report processing time is set in association with the designated server, and the group report processing time is used for indicating a time when the designated server performs group report processing; the processing module is further configured to:
before the target processing thread is adopted to perform packet processing on the first message to be processed, message registration is performed on a second message to be processed when the second message to be processed is obtained;
after the second message to be processed is determined to be registered successfully, when the time interval between the current time and the group report processing time associated with the designated server is determined to be within a preset time range, and the designated server is controlled to add the message identifier of the second message to be processed in the cache when the group report processing time arrives;
and after the successful addition is determined, controlling the designated server to perform packet processing on the second message to be processed.
In a third aspect, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the method according to the first aspect.
In a fourth aspect, there is provided a computer device comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the method according to the first aspect according to the obtained program instructions.
In a fifth aspect, there is provided a computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of the first aspect.
In the embodiment of the application, after the device successfully registers the first to-be-processed message, the device may issue a group report event, where the group report event is used to indicate that group report processing is performed on the first to-be-processed message, and by issuing the group report event, the device may use each pre-stored alternative processing thread to monitor the group report event, and after determining that each alternative processing thread monitors the group report event, it indicates that the device may perform group report processing on the first to-be-processed message, so as to select a target processing thread from each alternative processing thread, perform group report processing on the first to-be-processed message, and perform uniform group report processing on all to-be-processed messages obtained before a group report processing time without waiting for a high-frequency server to reach the group report processing time, thereby implementing real-time group report processing and improving the efficiency of processing messages. Meanwhile, the situation that the efficiency of processing the messages is reduced due to the fact that more computing resources of the equipment occupy more messages to be processed are processed at the same time is avoided.
Further, when the target processing thread is used for performing the packet processing on the first processing packet, the target processing thread may be used to add the packet identifier of the first processing packet in the cache, so as to represent that the packet processing on the first processing packet is currently performed, thereby avoiding a situation that the packet processing on the first processing packet is repeated due to the device abnormality, the thread abnormality, or the like, or when the packet processing time of the high-frequency server is reached, and ensuring the reliability of the packet processing.
Drawings
Fig. 1A is an application field interaction diagram of a method for processing a packet according to an embodiment of the present application;
fig. 1B is an application scenario of a method for processing a packet according to an embodiment of the present application;
fig. 2 is a first flowchart illustrating a method for processing a packet according to an embodiment of the present application;
fig. 3 is a first schematic diagram illustrating a principle of a method for processing a packet according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a principle of a method for processing a packet according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a third principle of a method for processing a packet according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating a principle of a method for processing a packet according to an embodiment of the present application;
fig. 7A is a schematic flowchart of a second method for processing a packet according to an embodiment of the present application;
fig. 7B is a schematic flowchart of a third flowchart of a method for processing a packet according to the embodiment of the present application;
fig. 8 is a first schematic structural diagram of an apparatus for processing a message according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a device for processing a packet according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
It should be noted that, in the embodiments of the present application, data related to the incoming and outgoing messages and the like are referred to, when the above embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and collection, use and processing of the related data need to comply with relevant laws and regulations and standards of relevant countries and regions.
The following briefly introduces an application field of the method for processing a packet provided in this embodiment.
With the continuous development of science and technology, more and more devices can process messages, for example, an online server and a high-frequency server can register the messages, and the high-frequency server can group the messages.
Taking a financial scenario as an example, please refer to fig. 1a, s101, where a bond buyer and a bond seller can respectively achieve bond transaction on a bond transaction platform through terminal devices. And S102, after the bond transaction is completed, the transaction platform can respectively send the bond transaction information to respective terminal devices of a bond purchaser and a bond seller in a message form. And S103, simultaneously, the trading platform can also send the bond trading information to the bond hosting platform in a message mode.
S104, after receiving the bond trading information sent by the trading platform, the bond hosting platform can provide a service for inquiring the bond trading information for a bond purchaser and a bond seller, so that the bond purchaser and the bond seller can obtain the bond trading information in a message form through respective terminal equipment; meanwhile, the bond escrow platform can directly send the bond transaction information to respective terminal devices of a bond purchaser and a bond seller in a message form after obtaining the bond transaction information.
And S105, after the terminal devices of the bond purchaser and the bond seller obtain the bond transaction information sent by the bond hosting platform, the terminal devices can be matched with the received bond transaction information sent by the transaction platform, and the correctness and the authenticity of the bond transaction information can be determined by matching the bond transaction information.
And S106, after the bond buyer and the bond seller determine the correctness and the authenticity of the bond transaction information through respective terminal equipment, a confirmation instruction can be fed back to the bond escrow platform in a message form.
And S107, after receiving confirmation instructions fed back by the bond buyer and the bond seller through respective terminal devices in the form of messages, the bond escrow platform can generate a bond trading contract, so that fund transfer, bond transfer and other processing can be performed according to the bond trading contract.
And S108, the bond escrow platform can also respectively send the bond trading contract to the respective terminal devices of the bond buyer and the bond seller in the form of messages.
Taking the respective terminal devices of the bond buyer and the bond seller as an example, please refer to fig. 1B, where the terminal devices include an online server cluster, a high-frequency server cluster and a database. The online server cluster comprises n online servers, each online server can be used for interacting with the front end to acquire messages needing message registration, the online servers can establish message registration tasks after acquiring the messages, and the message registration tasks are used for extracting information in the messages and storing the information in the database. The high-frequency server cluster comprises m high-frequency servers, each high-frequency server can be used for interacting with the online server, and after the online server creates a message registration task, the high-frequency servers can execute the message registration task, extract information in the message and store the information in the database.
In the related art, in the method for processing the messages, after the messages are registered, the messages are stored in a message queue according to the sequence of receiving and sending the messages, and when the high-frequency server reaches the group report processing time, all the messages in the message queue are processed in a unified manner in a group report mode.
However, since the group report processing time is a pre-specified time and the sending and receiving of the messages are performed at any time, before the group report processing time arrives, a large number of messages to be processed are stored in the message queue, so that the group report processing time arrives, the high-frequency server needs to perform group report processing on a large number of messages, and not only is a large amount of unnecessary processing time consumed during the waiting time for the arrival of the group report processing time, which causes a problem of low message processing efficiency, but also the high-frequency server needs to process a large number of messages at the same time, so that the computation resources of the high-frequency server suddenly occupy more, thereby further aggravating the problem of low message processing efficiency.
Therefore, in the related art, the message processing efficiency is low.
In order to solve the problem of low message processing efficiency, the application provides a method for processing a message. In the method, message registration is carried out on an obtained first message to be processed, wherein the first message to be processed is a received message or a message to be sent. After the first message to be processed is determined to be successfully registered, a group report event is issued for the first message to be processed, wherein the group report event is used for indicating that the first message to be processed is subjected to group report processing. And after determining that each pre-stored alternative processing thread monitors the group report event, selecting a target processing thread from each alternative processing thread, and adding the message identifier of the first message to be processed in the cache. And after the successful addition is determined, performing packet processing on the first message to be processed by adopting a target processing thread.
In the embodiment of the application, after the device successfully registers the first to-be-processed message, the device may issue a group report event, where the group report event is used to indicate that group report processing is performed on the first to-be-processed message, and by issuing the group report event, the device may use each pre-stored alternative processing thread to monitor the group report event, and after determining that each alternative processing thread monitors the group report event, it indicates that the device may perform group report processing on the first to-be-processed message, so as to select a target processing thread from each alternative processing thread, perform group report processing on the first to-be-processed message, and perform uniform group report processing on all to-be-processed messages obtained before a group report processing time without waiting for a high-frequency server to reach the group report processing time, thereby implementing real-time group report processing and improving the efficiency of processing messages. Meanwhile, the situation that the efficiency of processing the messages is reduced due to the fact that more computing resources of the equipment occupy more messages to be processed are processed at the same time is avoided.
Further, when the target processing thread is used for performing the packet processing on the first processing packet, the target processing thread may be used to add the packet identifier of the first processing packet in the cache, so as to represent that the packet processing on the first processing packet is currently performed, thereby avoiding a situation that the packet processing on the first processing packet is repeated due to the device abnormality, the thread abnormality, or the like, or when the packet processing time of the high-frequency server is reached, and ensuring the reliability of the packet processing.
An application scenario of the method for processing a packet provided by the present application is described below.
Fig. 1B is a schematic view of an application scenario of the method for processing a packet according to the present application. The application scenario includes a client 101 and a server 102. Communication is possible between the client 101 and the server 102. The communication mode may be a wired communication technology, for example, communication is performed through a connection network line or a serial port line; the communication may also be performed by using a wireless communication technology, for example, communication is performed by using technologies such as bluetooth or wireless fidelity (WIFI), and the like, which is not limited specifically.
The client 101 generally refers to a device that can send a message to the server 102 or receive a message sent by the server 102, for example, a terminal device, a third-party application that the terminal device can access, or a web page that the terminal device can access. The terminal device includes but is not limited to a mobile phone, a computer, an intelligent financial device, an intelligent household appliance, a vehicle-mounted terminal or an aircraft, etc. The server 102 generally refers to a device that can process a message, such as a terminal device or a server. Servers include, but are not limited to, cloud servers, local servers, or associated third party servers, etc. The client 101 and the server 102 can both adopt cloud computing to reduce the occupation of local computing resources; cloud storage can also be adopted to reduce the occupation of local storage resources.
As an embodiment, the client 101 and the server 102 may be the same device, and are not limited in particular. In the embodiment of the present application, the client 101 and the server 102 are respectively different devices for example.
Based on fig. 1B, the method for processing a message provided in the embodiment of the present application is specifically described below with the server 102 as a server and the server as a main body. Please refer to fig. 2, which is a flowchart illustrating a method for processing a packet according to an embodiment of the present application.
S201, registering the acquired first message to be processed.
The first message to be processed is a received message or a message to be sent. The server may receive messages sent by other devices, for example, receive bond transaction information sent by the transaction platform or the bond hosting platform in the form of messages, and the like. The server may also send a message to other devices, for example, feedback a confirmation instruction to the bond escrow voucher in the form of a message, and the like.
After obtaining the first message to be processed, the server may perform message registration on the first message to be processed, for example, extract key information of the message, and store the key information in the database.
Referring to fig. 3, the server may be a high frequency server in the high frequency server cluster, or may be an online server in the online server cluster. After the high-frequency server or the online server obtains the first message to be processed, the message registration can be performed on the first message to be processed through the high-frequency server or the online server. If the registration is successful, for example, the first message to be processed is successfully stored in the database, etc., then S202 is continuously executed; if the registration fails, for example, the first message to be processed is not successfully stored in the database, the high-frequency server or the online server may obtain a registration result for representing that the registration of the first message to be processed fails, so that the high-frequency server or the online server may register the first message to be processed again, and the message processing abnormality caused by directly discarding the first message to be processed is avoided.
S202, after the first message to be processed is determined to be registered successfully, a group report event is issued for the first message to be processed.
After determining that the first message to be processed is successfully registered, the server may issue a group report event for the first message to be processed, where the group report event is used to instruct to perform group report processing on the first message to be processed. By issuing the group report event, the alternative processing thread in the server can start to carry out group report processing on the first message to be processed when the group report event is monitored, the first message to be processed does not need to be cached, and the first message to be processed is subjected to group report processing when the designated server reaches the group report processing moment, so that the message processing efficiency is improved.
S203, after determining that each pre-stored alternative processing thread monitors the group report event, selecting a target processing thread from each alternative processing thread, and adding the message identifier of the first message to be processed in the cache.
Each alternative processing thread may be prestored in the server, and may be used to process the packet, may also be used to process other tasks in the server, and the like, and is not limited specifically. After monitoring the group report event, each alternative processing thread may select a target processing thread from the alternative processing threads to process the first to-be-processed packet. The number of the alternative processing threads prestored in the server can be greater than the number of the alternative processing threads which monitor the group report event, so that the target processing thread can be selected from the alternative processing threads which monitor the group report event.
The alternative processing threads with low occupancy rates can be selected as target processing threads based on the occupancy conditions of the current computing resources of the alternative processing threads; the alternative processing thread with the least number of tasks can be selected as the target processing thread based on the number of the tasks to be processed currently by each alternative processing thread; or based on the priority of each alternative processing thread, selecting the alternative processing thread with the highest priority as the target processing thread, and the like, which is not limited specifically.
When the first message to be processed is processed, the target processing thread may be adopted first, and the message identifier of the first message to be processed is added to the cache to represent that the first message to be processed is currently being processed, so as to avoid that other threads or other devices repeatedly process the first message to be processed. The cache may be a redis database, etc., and is not particularly limited.
As an embodiment, when the packet identifier of the first to-be-processed packet is added to the cache, it may be determined whether the packet identifier of the first to-be-processed packet exists in the cache. If the message identifier of the first message to be processed exists, which indicates that the first message to be processed is already processed and repeated processing is not needed, the adding of the message identifier of the first message to be processed fails. If the message identifier of the first message to be processed does not exist, it is indicated that the first message to be processed is not processed yet, and the first message to be processed can be processed currently, the message identifier of the first message to be processed is added into the cache, and the message identifier of the first message to be processed is added successfully.
After the adding is successful, S204 may be executed, and the target processing thread is adopted to perform packet processing on the first to-be-processed packet. Otherwise, ending the target processing thread and stopping the group report processing process aiming at the first message to be processed.
Referring to fig. 4, after the server is successfully registered, the server may control the designated server to perform the group report processing on the first to-be-processed packet while issuing the group report event, and then if each alternative processing thread monitors the group report event first, select the target processing thread from each alternative processing thread, and add the packet identifier of the first to-be-processed packet in the cache, the target processing thread performs the group report processing on the first to-be-processed packet; if the appointed server reaches the group report processing time, the appointed server adds the message identification of the first message to be processed in the cache, and then the appointed server performs group report processing on the first message to be processed. The two message processing modes are simultaneously carried out, so that the first message to be processed can be processed at the first time, and the message processing efficiency is improved. Meanwhile, the mode of adding the message identifier in the cache is equivalent to the realization of the function of mutual exclusion lock, so that even if the first message to be processed is processed in multiple modes, the repeated processing process can not be caused, and the reliability of processing the message is improved.
And S204, after the successful addition is determined, performing packet report processing on the first message to be processed by adopting a target processing thread.
After the message identifier of the first to-be-processed message is determined to be successfully added to the cache, the target processing thread may be adopted to perform packet processing on the first to-be-processed message.
As an embodiment, the message identifier stored in the cache may set an timeout duration for the message identifier, where the timeout duration is used to limit the longest duration of the message identifier stored in the cache, and then the message identifier may be automatically deleted after a period of time in the cache, so that the message identifier does not occupy the storage resource of the cache all the time, and the message corresponding to the message identifier cannot be processed again because the message identifier is stored in the cache all the time.
After the server determines that the adding is successful, a target processing thread can be adopted, timeout duration is set for the message identifier association of the first message to be processed in the cache, and timing is started. And selecting a target processing thread from the pre-stored alternative processing threads, and performing packet processing on the first message to be processed. And when the timing reaches the time-out duration, deleting the message identification of the first message to be processed in the cache.
As an embodiment, when the first message to be processed is a message to be sent, the target processing thread is adopted to perform the packet processing on the first message to be processed, or the target processing thread is adopted first, and based on a preset data format, the format of the first message to be processed is converted; when a message to be matched associated with the first message to be processed is received, message registration is carried out on the message to be matched, and after the message to be matched is successfully registered, format conversion is carried out on the message to be matched based on a preset data format by adopting a target processing thread; and matching the first message to be processed after format conversion with the message to be matched after format conversion by adopting the target processing thread so as to complete the group report processing of the first message to be processed.
Referring to fig. 5, the server may query the other device for the to-be-matched message associated with the first to-be-processed message, may also wait to receive the to-be-matched message associated with the first to-be-processed message sent by the other device, and the like, which is not limited specifically. After the message to be matched is obtained, the server can register the message to be matched, and after the message to be matched is successfully registered, a target processing thread can be adopted to convert the format of the message to be matched based on a preset data format, so that a record to be matched is obtained. Meanwhile, a target processing thread can be adopted to perform format conversion on the first message to be processed based on a preset data format, so as to obtain a first record to be processed.
And matching the first record to be processed with the record to be matched, wherein the matching result can be used as a processing result for performing packet processing on the first message to be processed. If the matching result represents that the matching is successful, the server can feed back a confirmation instruction and the like to other equipment, and the details are not limited; if the matching result represents that the matching fails, the server can obtain the message to be matched associated with the first message to be processed again, and perform packet processing and the like on the first message to be processed again.
As an embodiment, after performing packet processing on the first to-be-processed packet, a target processing thread may be used to generate a packet processing result, where the packet processing result represents whether the packet processing is successful. After the failure of the packet report processing result representation group report is determined, the server can control the designated server to add the packet identifier of the first to-be-processed packet in the cache, so that the designated server performs packet report processing on the first to-be-processed packet, and the situation of missing processing caused by the fact that the target processing thread cannot perform packet report processing on the first to-be-processed packet is avoided.
After the successful addition is determined, the designated server can be controlled to determine whether the message identifier of the first message to be processed is associated with the set timeout duration in the cache. And after determining that the message identifier of the first message to be processed is associated with the set timeout duration, controlling the designated server to perform packet processing on the first message to be processed.
As an embodiment, if a designated server is associated with a group report processing time, where the group report processing time is used to indicate a time when the designated server performs group report processing, when a target processing thread is processing a first to-be-processed message, the server receives a second to-be-processed message, and may continue to select one alternative processing thread from the alternative processing threads to process the second to-be-processed message; if there is no alternative processing thread available for processing the second packet to be processed in each alternative processing thread, or the time interval between the current time and the packet processing time associated with the designated server is within the preset time range, the designated server may also be controlled to process the second packet to be processed.
Taking the example of controlling the designated server to process the second message to be processed, when the second message to be processed is obtained, the message registration is performed on the second message to be processed. And after the second message to be processed is determined to be successfully registered, when the time interval between the current time and the group report processing time associated with the designated server is determined to be within a preset time range, and the designated server is controlled to add the message identifier of the second message to be processed in the cache when the group report processing time arrives. And after the successful addition is determined, controlling the designated server to perform packet processing on the second message to be processed.
The following describes an example of the method for processing a message provided in the embodiment of the present application, with a message received by a server as an incoming message and a message to be sent by the server as an outgoing message.
Referring to fig. 6, a schematic diagram of a designated server is shown, where the designated server may be a server cluster for processing a plurality of tasks, including a report processing task. For example, a server cluster of designated servers includes a first server, a second server, and a third server. The first server, the second server and the third server share a database. For each task, routing may be performed from among the first server, the second server, and the third server through cluster scheduling. For example, at a group report processing time, all group report processing tasks are routed to one of the first server, the second server, and the third server for processing, and then the one server is subjected to a large processing pressure in a short time, which not only causes a problem of low processing efficiency, but also easily causes abnormal processing such as omission, and thus causes low processing reliability.
The group report processing time can be multiple, for example, one group report processing time can be reached every specified time interval, and the specified time interval can be ten minutes, two hours, five days, one year, and the like.
Therefore, in order to improve the efficiency of processing the packet, the group report processing may be performed by combining the two modes of the group report event and the designated server, please refer to fig. 7A.
S701, when the high-frequency server or the online server needs to send messages to other equipment, the high-frequency server or the online server can obtain the messages first. The high-frequency server or the online server can create a message registration task after obtaining the forward report, so that the next node can perform message registration on the forward report by relying on the message registration task. Each step may be equivalent to a node, each node may independently process a task to generate a processing result, and each node may process a current processing task depending on a processing result of a previous node.
S702, after obtaining the incoming telegram, the high frequency server or the online server may register the incoming telegram with a message, for example, extract and store key elements from a received bond transaction message, and create a report task, which may be used to confirm the correctness of the bond transaction message.
If the registration is successful, S703 may be continuously performed; if the registration fails, S702 may be re-executed.
And S703, after the registration is successful, the high-frequency server or the online server can issue a group report event, so that the target processing thread can perform group report processing on the report based on the group report event, and thus, the server for registering the report can directly perform group report processing on the report. Meanwhile, the high-frequency server or the online server may control the designated server to perform the group report processing on the report, for example, the report is stored in the message middleware associated with the designated server, so that the designated server may sequentially perform the group report processing on each message stored in the message middleware when the group report processing time is reached.
S704, before the target processing thread performs the group report processing on the forward report, or before the designated server reaches the group report processing time and performs the group report processing on the forward report, adding a forward report message identifier in a cache, and if the forward report message identifier does not exist in the cache, adding the forward report message identifier in the cache to represent that the adding is successful; if the forward message identifier exists in the cache, the forward message identifier cannot be added in the cache any more, and the adding failure is represented.
When the adding is successful, the target processing thread or the designated server can carry out the packet report processing on the report, and if the adding of the target processing thread is successful, the target processing thread carries out the packet report processing on the report; if the specified server is successfully added, the specified server performs group report processing on the report.
S705, when the target processing thread is used to group report, format conversion may be performed on the report, for example, the report is bond transaction information, and then the field name of the key information in the bond transaction information may be converted into the field name corresponding to the preset matching element, so as to implement format conversion, and obtain a report matching record.
Meanwhile, the bond escrow platform inquires the coming newspaper and registers the coming newspaper with messages. And then, format conversion is performed on the incoming telegram, for example, the field name of the key information in the incoming telegram is converted into the field name corresponding to the matching element, and the data format conversion is performed to obtain the matching record of the incoming telegram.
When the appointed server is controlled to carry out the group report processing on the report, the report matching record and the report matching record can be directly obtained.
S706, matching the report matching record and the incoming report matching record, for example, taking out the numerical value corresponding to the field name of the matching element from the report matching record and the incoming report matching record according to the matching rule, and generating a report combining result. If the matching is successful, the group report result is used for representing the successful matching, and S707 is continuously executed; and if the matching fails, the report combining result is used for representing the matching failure, S704-S706 are executed again, and report combining processing is carried out on the report again.
And S707, if the group report result representation is successfully matched, returning a confirmation instruction, for example, sending a message to the bond escrow platform to represent that the bond transaction information is correct, so that the bond escrow platform can generate a bond transaction contract based on the bond transaction information.
S708, after the bond escrow platform generates the bond trading contract, the contract status of the generated bond trading contract may be queried.
In the embodiment of the application, the report registration is successful, the report group event is issued, and the report group processing is performed after the event is monitored, so that the report group processing can be immediately performed on the report by the server registering the message without waiting for a designated server, for example, the report group high-frequency server performs the report group processing at the report group processing time. By releasing the group report event, the time for processing the message can be shortened, and the number of messages needing to be processed by the group report at the group report processing time of the designated server is reduced.
Further, a problem of duplicate group reports may occur when a group report event is started and a designated server performs group report processing, so in the embodiment of the present application, by means of a cache, for example, verification of setnx operation idempotent in a redis database, the opportunity of performing group report processing is obtained when the addition is successful, and otherwise, the group report processing cannot be performed.
When adding a message identifier to the cache, setting an overtime duration for the association; meanwhile, when the group report fails, a compensation processing mode may be set to ensure the reliability of the processed packet, please refer to fig. 7B.
S71, adding the message identification of the report to the cache by adopting the target processing thread, and controlling the appointed server to add the message identification of the report to the cache at the time of group report processing.
S72, if the message identifier is successfully added in the cache by adopting the target processing thread, setting the timeout duration for the association of the message identifier. If the timeout duration is successfully set, timing is started; and if the setting of the overtime length fails, timing is started, and the target processing thread is not adopted to set the overtime length for the message identifier association. S703 is continuously executed regardless of whether the timeout period is set successfully.
And if the message identification is not successfully added into the cache by adopting the target processing thread, ending the target processing thread, and performing packet processing on the message to be sent without adopting the target processing thread.
If the specified server is controlled to successfully add the message identifier in the cache at the group report processing time, the timeout duration is set for the association of the message identifier. The control designates the server to start timing.
And if the specified server is controlled to unsuccessfully add the message identifier in the cache at the group report processing time, the specified server is controlled to determine whether the message identifier in the cache is associated with the set timeout duration or not. Therefore, when the message identifier is not associated with the target processing thread, the timeout duration is set for the message identifier association, so that the situation that the message identifier cannot be deleted in the cache due to the fact that the timeout duration is set for the message identifier association successfully by the target processing thread is avoided, and unnecessary occupation of storage resources is avoided. And if the message identifier is associated with the set timeout duration, ending the control of the specified server.
S73, if the message identification is successfully added in the cache by adopting the target processing thread, the target processing thread is adopted to carry out the group report processing on the report; and if the specified server is controlled to successfully add the message identifier in the cache at the group report processing time, the specified server is controlled to carry out group report processing on the sent report.
And S74, after the group report processing is successful, ending the target processing thread or ending the control of the designated server.
When the target processing thread is adopted for group report processing, and the group report processing fails or is abnormal, the message identification of the report can be deleted in the cache, and the designated server is controlled to carry out the group report processing again at the group report processing time; when the designated server is controlled to perform group report processing, and the group report processing fails or is abnormal, the message identifier reported to the designated server can be deleted in the cache, and the target processing thread is adopted to perform group report processing again, or the abnormal condition is recorded for abnormal analysis.
In the embodiment of the application, if the report information is the report information registered in the online server, the report can be completed in the current online server; if the information is the report information registered in the high-frequency server, the report can be completed in the current high-frequency server.
Furthermore, after the report is registered, the group report high-frequency server does not need to wait for group report processing at the group report processing time, and each group report task can be completed before the group report processing time is reached, so that the time for processing the whole message is shortened. Meanwhile, a plurality of servers can simultaneously and jointly complete the report task, so that the utilization rate of the servers is improved, and the processing time of the tasks is shortened.
Furthermore, the problem of idempotent verification when multiple instances are deployed is effectively solved, high-concurrency and large-data-volume business development can be supported, and a remedy solution is provided for the occurrence of failure data of group reporting.
Based on the same inventive concept, the embodiment of the present application provides a device for processing a packet, which can implement a function corresponding to the foregoing method for processing a packet. Referring to fig. 8, the apparatus includes an obtaining module 801 and a processing module 802, wherein:
the acquisition module 801: the message registration is carried out on the obtained first message to be processed, wherein the first message to be processed is a received message or a message to be sent;
the processing module 802: the message processing device is used for issuing a report event aiming at the first message to be processed after the first message to be processed is determined to be registered successfully, wherein the report event is used for indicating the report processing of the first message to be processed;
the processing module 802 is further configured to: after determining that each pre-stored alternative processing thread monitors a group report event, selecting a target processing thread from each alternative processing thread, and adding a message identifier of a first message to be processed in a cache;
the processing module 802 is further configured to: and after the successful addition is determined, performing packet report processing on the first message to be processed by adopting a target processing thread.
In a possible embodiment, the processing module 802 is specifically configured to:
after the successful addition is determined, a target processing thread is adopted, an overtime length is set for the message identifier association of the first message to be processed in the cache, and timing is started, wherein the overtime length is used for limiting the longest time length of the message identifier stored in the cache;
selecting a target processing thread from all prestored alternative processing threads, and performing packet processing on the first message to be processed;
and when the timing reaches the time-out duration, deleting the message identification of the first message to be processed in the cache.
In one possible embodiment, the processing module 802 is further configured to:
after the first message to be processed is subjected to packet processing by adopting a target processing thread, generating a packet processing result by adopting the target processing thread, wherein the packet processing result represents whether the packet processing is successful;
after determining that the group report processing result represents that the group report fails, controlling the specified server to add the message identifier of the first message to be processed in the cache;
after the successful addition is determined, controlling the appointed server to determine whether the message identifier of the first message to be processed is associated with the set timeout duration in the cache;
and after determining that the message identifier of the first message to be processed is associated with the set timeout duration, controlling the designated server to perform packet processing on the first message to be processed.
In a possible embodiment, the processing module 802 is specifically configured to:
determining whether a message identifier of a first message to be processed exists in a cache;
and if the message identification of the first message to be processed does not exist, adding the message identification of the first message to be processed in the cache.
In a possible embodiment, when the first message to be processed is a message to be sent, the processing module 802 is specifically configured to:
adopting a target processing thread, and carrying out format conversion on the first message to be processed based on a preset data format;
when a message to be matched associated with a first message to be processed is received, message registration is carried out on the message to be matched;
after the message to be matched is determined to be successfully registered, format conversion is carried out on the message to be matched based on a preset data format by adopting a target processing thread;
and matching the first message to be processed after format conversion with the message to be matched after format conversion by adopting a target processing thread so as to complete the group report processing of the first message to be processed.
In a possible embodiment, the designated server is provided with a group report processing time in a related manner, and the group report processing time is used for indicating the time of the designated server for group report processing; the processing module 802 is further configured to:
before the target processing thread is adopted to carry out the group report processing on the first message to be processed, when a second message to be processed is obtained, message registration is carried out on the second message to be processed;
after the second message to be processed is determined to be registered successfully, when the time interval between the current time and the group report processing time associated with the designated server is determined to be within a preset time range, and the designated server is controlled to add the message identifier of the second message to be processed in the cache when the group report processing time arrives;
and after the successful addition is determined, controlling the designated server to perform packet processing on the second message to be processed.
Referring to fig. 9, the apparatus for processing a message may be run on a computer device 900, and a current version and a historical version of a data storage program and application software corresponding to the data storage program may be installed on the computer device 900, where the computer device 900 includes a processor 980 and a memory 920. In some embodiments, the computer device 900 may include a display unit 940, the display unit 940 including a display panel 941 for displaying an interface interactively operated by a user, and the like.
In one possible embodiment, the Display panel 941 may be configured in the form of a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED) or the like.
The processor 980 is configured to read the computer program and then execute a method defined by the computer program, for example, the processor 980 reads a data storage program or a file, etc., so as to run the data storage program on the computer device 900 and display a corresponding interface on the display unit 940. The Processor 980 may include one or more general-purpose processors, and may further include one or more DSPs (Digital Signal processors) for performing relevant operations to implement the solutions provided by the embodiments of the present application.
Memory 920 typically includes both internal and external memory, which may be Random Access Memory (RAM), read Only Memory (ROM), and CACHE (CACHE). The external memory can be a hard disk, an optical disk, a USB disk, a floppy disk or a tape drive. The memory 920 is used for storing computer programs including application programs corresponding to the clients, and other data, which may include data generated after the operating system or the application programs are executed, including system data (e.g., configuration parameters of the operating system) and user data. Program instructions in the embodiments of the present application are stored in memory 920 and executed by processor 980 in memory 920 to implement any of the methods discussed in the previous figures.
The display unit 940 is used to receive input digital information, character information, or touch operation/non-touch gesture, and generate signal input related to user setting and function control of the computer apparatus 900, and the like. Specifically, in this embodiment, the display unit 940 may include a display panel 941. The display panel 941, for example, a touch screen, can collect touch operations by a user (for example, operations of the user on the display panel 941 or on the display panel 941 by using a finger, a stylus pen, or any other suitable object or attachment), and drive a corresponding connection device according to a preset program.
In one possible embodiment, the display panel 941 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a player, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 980, and can receive and execute commands sent by the processor 980.
The display panel 941 may be implemented by a plurality of types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the display unit 940, in some embodiments, the computer device 900 may also include an input unit 930, which input unit 930 may include an image input device 931 and other input devices 932, which may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
In addition to the above, the computer device 900 may also include a power supply 990 for powering the other modules, an audio circuit 960, a near field communication module 970, and an RF circuit 910. The computer device 900 may also include one or more sensors 950, such as acceleration sensors, light sensors, pressure sensors, and the like. The audio circuit 960 specifically includes a speaker 961 and a microphone 962, and the computer device 900 may collect the user's voice through the microphone 962, perform corresponding operations, and so on.
For one embodiment, the number of the processors 980 may be one or more, and the processors 980 and the memories 920 may be coupled or relatively independent.
As an example, the processor 980 in fig. 9 may be used to implement the functionality of the acquisition module 801 and the processing module 802 in fig. 8.
As an example, the processor 980 in fig. 9 may be configured to implement the corresponding functions of the server or the terminal device discussed above.
Those of ordinary skill in the art will understand that: all or part of the steps of implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer-readable storage medium, and when executed, executes the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on this understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, for example, a computer program product stored in a storage medium and including instructions for causing a computer device to perform all or part of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for processing a packet, comprising:
performing message registration on an obtained first message to be processed, wherein the first message to be processed is a received message or a message to be sent;
after the first message to be processed is determined to be successfully registered, issuing a report-making event aiming at the first message to be processed, wherein the report-making event is used for indicating to carry out report-making processing on the first message to be processed;
after each pre-stored alternative processing thread is confirmed to monitor the group report event, a target processing thread is selected from each alternative processing thread, and a message identifier of the first message to be processed is added into a cache;
and after the successful addition is determined, performing packet processing on the first message to be processed by adopting the target processing thread.
2. The method according to claim 1, wherein after the determination that the adding is successful, performing packet processing on the first to-be-processed packet by using the target processing thread comprises:
after the successful addition is determined, setting an overtime length for the message identifier association of the first message to be processed in the cache by using the target processing thread, and starting timing, wherein the overtime length is used for limiting the longest time length of the message identifier stored in the cache;
selecting a target processing thread from all prestored alternative processing threads, and performing packet processing on the first message to be processed;
and when the timing reaches the timeout duration, deleting the message identifier of the first message to be processed in the cache.
3. The method according to claim 1, wherein after said performing packet processing on the first to-be-processed packet by using the target processing thread, further comprising:
generating a group report processing result by adopting the target processing thread, wherein the group report processing result represents whether group report processing is successful or not;
after the report failure of the group report processing result representation group is determined, controlling an appointed server to add the message identifier of the first message to be processed in the cache;
after the successful addition is determined, controlling the specified server to determine whether the message identifier of the first message to be processed is associated with the set timeout duration or not in the cache;
and after determining that the message identifier of the first message to be processed is associated with the set timeout duration, controlling the designated server to perform packet processing on the first message to be processed.
4. The method according to any one of claims 1 to 3, wherein the adding the packet identifier of the first packet to be processed in the cache includes:
determining whether a message identifier of the first message to be processed exists in the cache;
and if the message identifier of the first message to be processed does not exist, adding the message identifier of the first message to be processed in the cache.
5. The method according to any one of claims 1 to 3, wherein when the first message to be processed is a message to be sent, the performing, by using the target processing thread, packet processing on the first message to be processed includes:
performing format conversion on the first message to be processed by adopting the target processing thread based on a preset data format;
when a message to be matched associated with the first message to be processed is received, message registration is carried out on the message to be matched;
after the message to be matched is determined to be successfully registered, format conversion is carried out on the message to be matched based on the preset data format by adopting the target processing thread;
and matching the first message to be processed after format conversion with the message to be matched after format conversion by adopting the target processing thread so as to finish the group report processing of the first message to be processed.
6. The method according to any one of claims 1 to 3, characterized in that a group report processing time is set in association with a designated server, and the group report processing time is used for indicating the time of group report processing performed by the designated server;
before the performing packet processing on the first to-be-processed packet by using the target processing thread, the method further includes:
when a second message to be processed is obtained, message registration is carried out on the second message to be processed;
after the second message to be processed is determined to be registered successfully, when the time interval between the current time and the group report processing time associated with the designated server is determined to be within a preset time range, and the designated server is controlled to add the message identifier of the second message to be processed in the cache when the group report processing time arrives;
and after the successful addition is determined, controlling the designated server to perform packet processing on the second message to be processed.
7. An apparatus for processing a message, comprising:
an acquisition module: the message registration is performed on the obtained first message to be processed, wherein the first message to be processed is a received message or a message to be sent;
a processing module: the message processing device is used for issuing a report-making event aiming at the first message to be processed after the first message to be processed is determined to be registered successfully, wherein the report-making event is used for indicating to carry out report-making processing on the first message to be processed;
the processing module is further configured to: after each pre-stored alternative processing thread is confirmed to monitor the group report event, a target processing thread is selected from each alternative processing thread, and a message identifier of the first message to be processed is added into a cache;
the processing module is further configured to: and after the successful addition is determined, performing packet processing on the first message to be processed by adopting the target processing thread.
8. A computer program product comprising a computer program, characterized in that the computer program realizes the method according to any one of claims 1 to 6 when executed by a processor.
9. A computer device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the method according to any one of claims 1 to 6 in accordance with the obtained program instructions.
10. A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 6.
CN202211136524.4A 2022-09-19 2022-09-19 Method, device, equipment and storage medium for processing message Pending CN115543610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211136524.4A CN115543610A (en) 2022-09-19 2022-09-19 Method, device, equipment and storage medium for processing message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211136524.4A CN115543610A (en) 2022-09-19 2022-09-19 Method, device, equipment and storage medium for processing message

Publications (1)

Publication Number Publication Date
CN115543610A true CN115543610A (en) 2022-12-30

Family

ID=84726653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211136524.4A Pending CN115543610A (en) 2022-09-19 2022-09-19 Method, device, equipment and storage medium for processing message

Country Status (1)

Country Link
CN (1) CN115543610A (en)

Similar Documents

Publication Publication Date Title
CN111831420B (en) Method for task scheduling, related device and computer program product
EP3489825A1 (en) Method, apparatus and computer readable storage medium for processing service
CN111340587B (en) Virtual commodity management method and related device
US20140235198A1 (en) Merchant server programmed for user acquisition within a repeat payment computer system
CN109542718B (en) Service call monitoring method and device, storage medium and server
CN113162848B (en) Method, device, gateway and medium for realizing block chain gateway
CN114461371B (en) Method, device, equipment and medium for optimizing interruption of server system
JP2019500678A (en) Fingerprint recognition method and electronic device
JP2003316458A5 (en)
CN109542928A (en) Mistake manages method, apparatus, storage medium and terminal device
CN111221662A (en) Task scheduling method, system and device
CN115543610A (en) Method, device, equipment and storage medium for processing message
CN107704734A (en) A kind of recognition methods of user account and its equipment
CN104735134B (en) A kind of method and apparatus serviced for providing calculating
CN115658745A (en) Data processing method, data processing device, computer equipment and computer readable storage medium
US20190037041A1 (en) Information processing system and control method
CN115333942A (en) Event retry method and device, storage medium and electronic equipment
CN111489212B (en) Order billing method, device, equipment and medium based on big data
CN110022296B (en) Real-time data processing method and device, storage medium and computer equipment
WO2020163976A1 (en) Data processing method, smart lock system, and storage medium
US9066222B2 (en) Mobile billing operator server programmed for user acquisition within a repeat payment computer system
CN113254523A (en) Data calling method and device, electronic equipment and storage medium
JP2015049745A (en) Server device, information processing method, and program
CN114022153B (en) Payment result determining method and device, computer storage medium and electronic equipment
CN116938927A (en) Distributed transaction processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination