CN106155775B - Message processing method, device and system - Google Patents

Message processing method, device and system Download PDF

Info

Publication number
CN106155775B
CN106155775B CN201510210561.9A CN201510210561A CN106155775B CN 106155775 B CN106155775 B CN 106155775B CN 201510210561 A CN201510210561 A CN 201510210561A CN 106155775 B CN106155775 B CN 106155775B
Authority
CN
China
Prior art keywords
message
identification information
processed
processing
transaction operation
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
CN201510210561.9A
Other languages
Chinese (zh)
Other versions
CN106155775A (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.)
Cainiao Smart Logistics Holding Ltd
Original Assignee
Cainiao Smart Logistics Holding 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 Cainiao Smart Logistics Holding Ltd filed Critical Cainiao Smart Logistics Holding Ltd
Priority to CN201510210561.9A priority Critical patent/CN106155775B/en
Publication of CN106155775A publication Critical patent/CN106155775A/en
Application granted granted Critical
Publication of CN106155775B publication Critical patent/CN106155775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a message processing method, device and system. According to the message processing method and the message processing equipment, identification information is set for the message during transaction operation, and the message and the identification information are transmitted to the message equipment from the application equipment. And executing the transaction operation at the same time, storing the identification information to a corresponding identification information database, and only when the transaction operation is finished, the identification information exists in the identification information database. Therefore, the consistency of the identification information of the message stored in the database and the completion of the transaction corresponding to the message is ensured, and the processing mode of the message corresponding to the transaction can be obtained only by inquiring whether the corresponding identification information exists in the identification information database of the application equipment. The message processing system comprises the application equipment and the message equipment, unifies the message and the transaction by adding a concept of identification information of the message, and perfectly solves the problem of final consistency of message sending.

Description

Message processing method, device and system
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, a device, and a system for processing a message.
Background
In large distributed applications, message middleware has become an indispensable ring in the entire distributed architecture as an asynchronous/decoupled solution. However, during message processing, there is an inevitable need to consider the consistency of the service operation and the sent message: namely, the message can not be sent without business operation; the business operation can not be carried out but no message is sent; the message is sent only when the business operation is partially disabled. Typically, business operations involve data changes that apply a local database, while messaging is a telecommunication applied to a message queue, both of which are completely independent.
Generally, in the process of sending a message, regarding the local database transaction and the communication of a message queue as a whole, and simultaneously, the problem of success and failure includes the following schemes:
(1) abstracting a database, a message queue and the like into resources, introducing a transaction manager to manage the resources, and finally coordinating transactions of a plurality of resources in the global transaction through a two-stage commit protocol so as to achieve message sending consistency.
(2) Real-time consistency is not emphasized on the problem of message sending consistency, assuming that services can randomly generate problems in the processing process and temporarily tolerate the temporary inconsistency caused by the problems, the messages which are missed to be processed are searched in a compensation and rechecking mode, and the processing results of the missed messages are judged by calling a service checking interface provided by an application system, so that the consistency of message processing and transaction operation is ensured.
The first scheme introduces distributed transactions, which brings some performance overhead and increases system complexity; meanwhile, the intrusion to a service system is large, and the complexity is too high under the condition that the real-time consistency of transaction processing and message sending is not needed. The second scheme can achieve final consistency through a message rechecking mechanism, but the rechecking is complex, and an application system is required to write codes for checking whether the business operation is successful. If the number of service nodes sending messages by the application system is very large, the amount of service codes needing to be compiled and written back to be checked rises straightly.
Disclosure of Invention
Based on this, it is necessary to provide a message processing method, device and system for the problem of consistency of message transmission.
In view of this, the present application provides a message processing method for an application device, including the following steps:
generating a corresponding message and identification information of the message according to the transaction operation;
sending the message and the identification information to corresponding message equipment;
and executing the transaction operation, and storing the identification information to a corresponding identification information database, wherein the identification information exists in the identification information database only when the transaction operation is completed.
Further, the message is in a pending state.
Further, the method further comprises:
and when the transaction operation is completed, sending a message processing instruction related to the message device.
Further, the operation of storing the identification information into the identification information database and the transaction operation belong to the same atomic operation.
Further, the saving the identification information to the corresponding identification information database includes:
and when the transaction operation is completed, storing the identification information to a corresponding identification information database.
Correspondingly, the application also provides a message processing method of the message device, wherein the method comprises the following steps:
receiving a message sent by corresponding application equipment and identification information of the message;
updating a corresponding message set to be processed according to the message;
inquiring in a corresponding identification information database according to the identification information of the messages to be processed in the message set to be processed;
and processing the message to be processed according to the corresponding query result.
Further, the updating the corresponding set of messages to be processed according to the message includes:
and setting the message to be in a to-be-processed state, and adding the message to a corresponding to-be-processed message set.
Further, the method further comprises:
receiving a message processing instruction sent by the application equipment;
processing the corresponding message according to the message processing instruction;
and updating the message set to be processed according to the processed corresponding message.
Further, the querying in the corresponding identification information database according to the identification information of the message to be processed in the message set to be processed includes:
and when the duration of the messages to be processed in the message set to be processed exceeds a preset processing duration threshold, inquiring in a corresponding identification information database according to the identification information of the messages to be processed.
Further, the method further comprises:
and determining the processing time length threshold according to the duration information of the message to be processed in the message set to be processed.
Further, the processing the message to be processed according to the corresponding query result includes:
if the corresponding query result is not null, submitting the message to be processed; if the query result is empty, deleting the message to be processed;
and updating the message set to be processed according to the corresponding processing result.
The present application further provides an application device for message processing, wherein the device includes:
the first device is used for generating a corresponding message and identification information of the message according to the transaction operation;
a third device, configured to send the message and the identification information to a corresponding message device;
and a fifth device, configured to execute the transaction operation and store the identification information in a corresponding identification information database, where the identification information exists in the identification information database only when the transaction operation is completed.
Further, the message is in a pending state.
Further, the apparatus further comprises:
seventh means for sending a message processing instruction for the message to the message device when the transaction operation is completed.
Further, the operation of storing the identification information into the identification information database and the transaction operation belong to the same atomic operation.
Further, the saving the identification information to the corresponding identification information database includes:
and when the transaction operation is completed, storing the identification information to a corresponding identification information database.
Correspondingly, the present application provides a message device for message processing, wherein the device comprises:
the second device is used for receiving the message sent by the corresponding application equipment and the identification information of the message;
a fourth device, configured to update a corresponding to-be-processed message set according to the message;
a sixth device, configured to query, according to the identification information of the to-be-processed message in the to-be-processed message set, a corresponding identification information database;
and the eighth device is used for processing the message to be processed according to the corresponding query result.
Further, the fourth device is configured to set the message to a to-be-processed state, and add the message to a corresponding to-be-processed message set.
Further, the apparatus further comprises:
tenth means for receiving a message processing instruction sent by the application device;
a twelfth means for processing the corresponding message according to the message processing instruction;
fourteenth means for updating the set of messages to be processed according to the processed corresponding message.
Further, the sixth device is configured to query, according to the identification information of the to-be-processed information, a corresponding identification information database when the duration of the to-be-processed information in the to-be-processed information set exceeds a predetermined processing duration threshold.
Further, the apparatus further comprises:
a sixteenth device, configured to determine the processing duration threshold according to the duration information of the to-be-processed message in the to-be-processed message set.
Further, the eighth means is for:
if the corresponding query result is not null, submitting the message to be processed; if the query result is empty, deleting the message to be processed;
and updating the message set to be processed according to the corresponding processing result.
The application also provides a message processing system, which comprises the application device and the message device.
Compared with the prior art, the message processing method and the message processing equipment set the identification information for the message during the transaction operation, and transmit the message and the identification information thereof from the application equipment to the message equipment. And executing the transaction operation at the same time, and storing the identification information to a corresponding identification information database, wherein the identification information exists in the identification information database only when the transaction operation is completed. Therefore, the identification information of the message only exists in the corresponding database of the transaction which is successfully executed, and when the message equipment rechecks the processing condition of the message which is not processed, the consistency of message sending and transaction processing can be ensured only by inquiring whether the corresponding identification information exists in the identification information database of the application equipment. The message processing system comprises the application equipment and the message equipment, unifies the message and the transaction by adding a concept of identification information of the message, and perfectly solves the problem of final consistency of message sending.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a schematic block diagram of an embodiment of an application device for message processing according to the present application;
FIG. 2 is a schematic block diagram of an embodiment of a messaging device for message processing according to the present application;
FIG. 3 is a functional block diagram of an embodiment of a message processing system of the present application;
FIG. 4 is a flowchart of an embodiment of a message processing method of an application device according to the present application;
FIG. 5 is a flowchart of an embodiment of a message processing method of a message device according to the present application;
FIG. 6 is a flowchart of another embodiment of a message processing method of a message device of the present application;
FIG. 7 is a flowchart of an embodiment of a message processing method of the present application;
fig. 8 is a flowchart of another embodiment of a message processing method according to the present application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
To further illustrate the technical means and effects adopted by the present application, the following description clearly and completely describes the technical solution of the present application with reference to the accompanying drawings and preferred embodiments.
The message processing system 1 of the application sends the message generated during the transaction operation and the identification information of the message to the message device 3 through the application device 2, and meanwhile, when the transaction operation of the application device 2 is completed, the identification information exists in the identification information database 4. The message device 3 receives the message sent by the application device 2 and the identification information of the message, places the message in the message set to be processed, inquires whether the identification information exists in the corresponding identification information database 4 according to the identification information of the message to be processed, and processes the message to be processed according to the inquiry result.
As shown in fig. 1, the present application provides an application device 2 for message processing, the device comprising:
the first device 21 is configured to generate a corresponding message and identification information of the message according to the transaction operation.
And a third device 22, configured to send the message and the identification information to the corresponding message device 3.
Fifth means 23 for performing the transaction operation and saving the identification information to the corresponding identification information database 4, wherein the identification information exists in the identification information database 4 only when the transaction operation is completed.
In this embodiment, the application device 2 generates a message corresponding to the transaction operation and identification information of the message through the first means 21, where the identification information of the message uniquely corresponds to the message. The generation time of the message and the message identifier may be at the beginning of the transaction, at the request of the transaction, or at other suitable times, and the specific time is not limited. The generation order of the message and the identification information of the message is not limited. When the third device 22 sends the message and the identification information to the corresponding message device 3, the identification information of the message may be set in the message entity of the message and sent to the message device 3 together with the message, so as to ensure the unique correspondence between the message and its identification information. The operation of the fifth means 23 for saving the identification information into the corresponding identification information database 4 may belong to the same atomic operation as the transaction operation, or may be an independent operation in a case where the completion of the transaction operation is ensured. As long as it is ensured that the identification information exists in the identification information database 4 when the transaction operation is successful. In addition, the identification information database 4 is used for storing identification information, and may be disposed inside the application device 2 or disposed outside the application device 2. The identification information database 4 may also be implemented by a table created by the application device 2 for storing identification information.
In one embodiment, the message is in a pending state.
In this embodiment, before the transaction operation is not finished, the message generated by the application device 2 for the transaction operation should be in a pending state. This state can be achieved by the action of the application device 2 and also by the action of the message device 3. The implementation manner of the application device generally includes: before sending the message to the message device 3, adding a mark that the message which can be identified by the message device 3 is in a pending state, and sending the message carrying the mark to the message device 3; after sending the message to the message device 3, an instruction that the message is in a pending state is sent to the message device 3, and the message device 3 sets the message to the pending state by the instruction. In the second implementation manner, the application device 2 may send the message, the identification information of the message, and the instruction that the message is in the brought-out state to the message device 3 at the same time, or may send the message and the identification information of the message separately, but it is necessary to ensure timeliness of sending, for example, to send the instruction that the message corresponding to the transaction operation should be in the pending state to the message device 3 before the transaction operation is not completed.
In one embodiment, the apparatus further comprises: seventh means 24 for sending a message processing instruction for the message to the message device 3 when the transaction operation is completed.
In this embodiment, when the transaction operation is finished, the seventh means 24 of the application device sends a message processing instruction corresponding to the transaction operation to the message device 3 according to the operation result of the transaction. If the transaction operation is successful, sending a message submitting instruction to the message equipment 3; if the transaction operation fails, a message delete (rollback) instruction is sent to the message device 3. Because the message device 3 may process messages of multiple transaction operations at the same time, in order to ensure that when the application device 2 sends a message processing instruction corresponding to a transaction operation result to the message device 3, the message processing instruction can accurately correspond to the message of the transaction operation, at this time, the message processing instruction can carry identification information of the message, the identification information not only uniquely corresponds to the message in the transaction operation, but also needs to carry transaction identification information that can be identified by the message device 3, that is, when the message device 3 receives the instruction of the transaction operation result, the message can be processed according to the identification information in the instruction, corresponding to a certain message of a certain transaction in the message device 3, and further according to the instruction content. In addition, in the present application, how the message instruction sent by the application device 2 accurately corresponds to the message in the message device 3 is not specifically limited, and the message device 3 may have a message management mechanism implemented in cooperation with the application device 2 as long as the correspondence is achieved.
In one embodiment, the operation of saving the identification information to the identification information database 4 is the same atomic operation as the transaction operation.
In this embodiment, the atomic operation has indivisible property, and is not interrupted by any other transaction or task until the execution is completed, and when all operations in the same atomic operation are successful, the atomic operation is successful; if only one of the operations fails, the atomic operation also fails. The operation of storing the identification information into the identification information database 4 and the transaction operation belong to the same atomic operation, so that the consistency between the success of the transaction operation and the existence of the identification information in the identification information database 4 is realized. Furthermore, whether the transaction operation corresponding to the message is completed or not can be judged by checking whether the identification information of the message exists in the identification information database 4 or not, and the consistency between the transaction operation and the message sending can be realized without calling a transaction operation check interface of the application equipment 2 to inquire one by one, so that the method is simpler and more convenient.
In one embodiment, saving the identification information to the corresponding identification information database 4 includes: when the transaction operation is completed, the identification information is stored in the corresponding identification information database 4.
In this embodiment, the identification information is saved to the corresponding identification information database 4, which is an independent action performed by the application device 2 after the transaction operation is completed. The method can be specifically realized by the following steps: when the application device 2 detects that the transaction operation is completed, the identification information of the message corresponding to the transaction is stored in the identification information database 4; and after the transaction operation is completed, sending a prompt of the completion of the transaction operation to the application device 2, and storing the identification information of the message corresponding to the transaction into the identification information database 4 by the application device 2 according to the prompt. So as to judge whether the transaction operation corresponding to the message is completed by checking whether the identification information of the message exists in the identification information database 4. The scheme can realize the consistency of the transaction operation and the message sending without calling the transaction operation check interface of the application equipment 2 to inquire one by one.
As shown in fig. 2, correspondingly, the present application provides a message device 3 for message processing, the device comprising:
the second device 31 is configured to receive the message and the identification information of the message sent by the corresponding application device 2.
And a fourth device 32, configured to update the corresponding to-be-processed message set according to the message.
A sixth means 33, configured to query the corresponding identification information database 4 according to the identification information of the to-be-processed message in the to-be-processed message set.
Eighth means 34, configured to process the message to be processed according to the corresponding query result.
In this embodiment, when the second device 31 receives the message and the identification information of the message sent by the corresponding application device 2, if the identification information of the message is not set in the message entity, the message device 3 should bind the message and the identification information of the message to make them correspond to each other one by one and distinguish them from other messages in the message device 3; if the identification information of the message is set in the message entity, the message device 3 distinguishes it from other messages after reception. For example, the message device 3 may implement mutual differentiation of messages within the message device 3 by two-level tagging of received messages with transaction differentiation tags and intra-transaction message differentiation tags. When the fourth device 32 updates the corresponding to-be-processed message set according to the message, it needs to put the received message into the to-be-processed message set according to its own management mechanism, and the message set here can also be understood as a message queue. The sixth device 33, according to the identification information of the message to be processed in the message set to be processed, needs to determine the identification information of the message to be queried in the message to be processed first when querying the corresponding identification information database 4, and then queries whether the identification information of the message to be queried exists in the identification information database 4. Specifically, the message to be queried may be determined by the message device 3 according to a preset condition corresponding to a specific situation of a different transaction, or by a management mechanism of the message device 3. When the eighth device 34 processes the message to be processed according to the corresponding query result, specifically, according to whether the identification information of the message to be queried is queried in the identification information database 4, the message is further submitted and deleted.
In one embodiment, the fourth means 32 is configured to set the message to a pending state and add the message to the corresponding set of pending messages.
In this embodiment, the specific implementation manner of the fourth device 32 of the message apparatus setting the message received by the second device 31 to be in the pending state is not limited, and may be implemented by a specific marker, and may also be implemented by being placed in a different queue set. For example, after receiving the message, the message device 3 marks the message as being in a half state, that is, in a pending (committed) state, and before the message device 3 does not receive the processing instruction of the message, the message is always in the half state. Or, the fourth device 32 directly places the messages received by the second device 31 in the pending message queue set by classifying the messages, placing the messages in different areas, and the default received messages are all pending messages. And adding the message to the corresponding message set to be processed to wait for subsequent processing.
As shown in fig. 2, in one embodiment, the message device 3 further includes:
tenth means 35 for receiving the message processing instruction sent by the application device 2.
And a twelfth means 36, configured to process the corresponding message according to the message processing instruction.
Fourteenth means 37, configured to update the set of messages to be processed according to the processed corresponding message.
In this embodiment, after the transaction operation is completed, the tenth device 35 of the message device receives a message processing instruction sent by the seventh device 24 of the application device, where the instruction needs to carry related information corresponding to a to-be-processed message in the message device 3, and specifically, the instruction can be implemented by using identification information, carried by the instruction, corresponding to the to-be-processed message. The identification information not only uniquely corresponds to the message in the transaction operation, but also carries transaction identification information recognizable by the message device 3, that is, when the message device 3 receives the instruction of the transaction operation result, the identification information in the instruction can correspond to a certain message to be processed of a certain transaction in the message device 3 according to the identification information in the instruction. Those skilled in the art will recognize that the implementation of corresponding message processing instructions to the message device 3 to be processed is not limited, and that any information interaction mechanism between the application device 2 and the message device 3 can be used. After the tenth device 35 receives the message processing instruction, the twelfth device 36 processes the message to be processed according to the relevant information, carried by the instruction, corresponding to the message to be processed in the message device 3. If the instruction content is a message submission, the twelfth device 36 submits the corresponding message; if the instruction content is message deletion (rollback), the twelfth means 36 deletes the corresponding message. At which time the identification information in the message is cleared as the message is submitted/deleted. The fourteenth means 37 updates the message set in which the processed message exists, and after the message is processed, the storage resource is released and the message set is updated.
In one embodiment, the sixth means 33 is configured to query the corresponding identification information database 4 according to the identification information of the to-be-processed information when the duration of the to-be-processed message in the to-be-processed message set exceeds the predetermined processing duration threshold.
In this embodiment, the management mechanism of the message device 3 may preset a time threshold in a pending state for a message corresponding to the transaction operation according to the attribute characteristics of different transactions. The precondition for the sixth means 33 to query the corresponding identification information database 4 is: first, there is a message to be processed that satisfies a condition; and secondly, acquiring the identification information of the message to be processed. The message to be processed meeting the condition is determined according to the time length of the message to be processed existing in the message set in the state to be processed, and if the time length exceeds a preset time threshold value, the message to be processed is listed as the object to be inquired. If the identification information of the message is bound with the message entity, the identification information can be directly read; otherwise, the identification information of the message needs to be called according to the message. The specific query sequence is not limited, and the query can be performed for the duration of the message to be processed in the state to be processed during the query, for example, the longest time for the message to be processed in the state is used, and the query is performed first; the processing may also be performed according to the position of the message to be processed satisfying the condition to be queried in the message set, for example, according to the sequence from top to bottom/from left to right in the message set. Those skilled in the art should recognize that the specific manner for setting the processing sequence is not limited, and the messages meeting the query condition may be processed in order.
In addition, the message device 3 may also place the messages to be processed in a classified manner, for example, when the message device 3 receives the message, the message is placed in the first message set to be processed, and when the message in the first message set to be processed meets the threshold condition, the message is automatically transferred to the second message set to be processed, and at this time, the sixth device 33 only needs to query the corresponding identification information database 4 according to the identification information of the message in the second message set to be processed.
In one embodiment, the message device 3 further comprises: sixteenth means 38, configured to determine the processing duration threshold according to the duration information of the message to be processed in the message set to be processed.
In this embodiment, when the sixteenth device 38 of the message device determines the processing duration threshold according to the duration information of the message to be processed in the message set to be processed, the sixteenth device may specifically preset a time threshold in the state to be processed for the message corresponding to the transaction operation according to the attribute characteristics of different transactions. For example, a larger time threshold may be set for transactions that operate longer; for transactions with shorter operation times, a smaller time threshold may be set. The size of the threshold is determined according to specific situations. Should not be too large to avoid too late a transaction operation in query initiation; it should not be too small to avoid the query starting premature transaction operation not yet finished; both of the foregoing situations are prone to eventual inconsistencies of transaction operations and message sending.
In one embodiment, the eighth means 34 performs the following processing on the corresponding message according to the query result of the sixth means 33: if the corresponding query result is not null, submitting the message to be processed; and if the query result is null, deleting the message to be processed. And updating the message set to be processed according to the corresponding processing result.
In this embodiment, since the identification information exists in the identification information database 4 only when the transaction operation is completed, when the eighth means 34 queries the identification information database 4 for the identification information identical to the identification information of the message to be processed, it indicates that the transaction operation is completed, and the message corresponding to the transaction is still in a state to be processed in the message device 3, and the transaction operation is inconsistent with the message transmission, and the eighth means 34 submits the message corresponding to the transaction operation, so that the final consistency between the transaction operation and the message transmission is achieved. Similarly, since the identification information exists in the identification information database 4 only when the transaction operation is completed, when the eighth means 34 does not inquire the identification information identical to the identification information of the message to be processed in the identification information database 4, it indicates that the transaction operation has failed, and the message corresponding to the transaction is still in a state to be processed in the message device 3, and the transaction operation is inconsistent with the message transmission, and when the eighth means 34 deletes (rolls back) the message corresponding to the transaction operation, the final consistency of the transaction operation and the message transmission is realized.
In addition, in this embodiment, after the message is processed, its storage resource is released, and the eighth device 34 updates the message set. The specific updating mode may be sequential filling for left and right/up and down messages to be processed, or filling for a new received message.
As shown in fig. 3, the present application also provides a message processing system 1, which includes an application device 2, a message device 3, and an identification information database 4. The identification information database 4 may be disposed in the application device 2 or the message device 3, or may be disposed independently.
In this embodiment, the message processing system 1 of the present application sends the message generated during the transaction operation and the identification information of the message to the message device 3 through the application device 2, and at the same time, when the transaction operation of the application device 2 is completed, the identification information exists in the identification information database 4. The message device 3 receives the message sent by the application device 2 and the identification information of the message, places the message in the message set to be processed, inquires whether the identification information exists in the corresponding identification information database 4 according to the identification information of the message to be processed, and processes the message to be processed according to the inquiry result.
Compared with the prior art, the message processing system 1 of the present application sets the identification information for the message during the transaction operation, and transmits the message and the identification information thereof from the application device 2 to the message device 3. And simultaneously executing the transaction operation and storing the identification information into the corresponding identification information database 4, wherein the identification information exists in the identification information database 4 only when the transaction operation is finished. Therefore, the identification information of the message only exists in the corresponding database of the transaction which is successfully executed, and when the message equipment 3 rechecks the processing condition of the message which is not processed, the consistency of message sending and transaction processing can be ensured only by inquiring whether the corresponding identification information exists in the identification information database 4 of the application equipment 2. The message processing system 1 of the application comprises the application device 2 and the message device 3, unifies messages and transactions by adding a concept of identification information of a message, and perfectly solves the problem of final consistency of message sending. Meanwhile, the operation of storing the identification information into the identification information database is defined as belonging to the same atomic operation with the corresponding transaction operation, so that the final consistency of the transaction operation and the message sending is ensured through the consistency of the transaction operation, and the consistency problem of the transaction operation and the message sending is more perfectly solved.
As shown in fig. 4, the present application further provides a message processing method for an application device, where the method includes the following steps:
and S21, generating corresponding message and identification information of the message according to the transaction operation.
And S22, sending the message and the identification information to the corresponding message device.
And S23, executing the transaction operation and saving the identification information to the corresponding identification information database, wherein the identification information exists in the identification information database only when the transaction operation is completed.
In this embodiment, a message corresponding to the transaction operation and identification information for the message are generated, where the identification information for the message uniquely corresponds to the message. The generation time of the message and the message identifier may be at the beginning of the transaction, at the request of the transaction, or at other suitable times, and the specific time is not limited. The generation order of the message and the identification information of the message is not limited. When the message and the identification information are sent to the corresponding message equipment, the identification information of the message can be set into the message entity of the message and sent to the message equipment together with the message, so that the unique correspondence between the message and the identification information of the message is ensured. The operation of storing the identification information into the corresponding identification information database may belong to the same atomic operation as the transaction operation, or may be an independent operation under the condition of ensuring the completion of the transaction operation. As long as it is ensured that the identification information exists in the identification information database when the transaction operation is successful. In addition, the identification information database is used for storing identification information, and may be disposed in the application device 2 or disposed outside the application device 2. The identification information database may also be implemented by a table created by the application device 2 for storing identification information.
In one embodiment, the message is in a pending state.
In this embodiment, before the transaction operation is not finished, the message generated by the application device 2 for the transaction operation should be in a pending state. This state can be realized by the action of the application device 2, but also by the action of the message device. The implementation manner of the application device generally includes: before sending the message to the message equipment, adding a mark that the message which can be identified by the message equipment is in a to-be-processed state, and sending the message carrying the mark to the message equipment; after sending the message to the message device, sending an instruction that the message is in a to-be-processed state to the message device, and setting the message to the to-be-processed state by the message device through the instruction. In the second implementation manner, the application device 2 may send the message, the identification information of the message, and the instruction that the message is in the brought-out state to the message device at the same time, or may send the message and the identification information of the message separately, but it is necessary to ensure timeliness of sending, for example, to send the instruction that the message corresponding to the transaction operation should be in the pending state to the message device before the transaction operation is not completed.
In one embodiment, the message processing method of the application device further includes: and when the transaction operation is completed, sending a message processing instruction related to the message device.
In this embodiment, when the transaction operation is completed, the application device 2 sends a message processing instruction corresponding to the transaction operation to the message device according to the operation result of the transaction. If the transaction operation is successful, sending a message submitting instruction to the message equipment; if the transaction operation fails, a message delete (rollback) instruction is sent to the message device. Because the message device may process messages of multiple transaction operations at the same time, in order to ensure that the application device 2 can accurately correspond to the messages of the transaction operations when sending the message processing instruction corresponding to the transaction operation result to the message device, at this time, the message processing instruction can carry identification information of the message, the identification information not only uniquely corresponds to the messages in the transaction operations, but also needs to carry transaction identification information recognizable by the message device, that is, when the message device receives the instruction of the transaction operation result, the message device can correspond to a certain message of a certain transaction in the message device according to the identification information in the instruction, and further processes the message according to the instruction content. In addition, in the present application, how the message instruction sent by the application device 2 accurately corresponds to the message in the message device is not specifically limited, and the message device may have a message management mechanism implemented in cooperation with the application device 2 as long as the correspondence is achieved.
In one embodiment, the operation of saving the identification information to the identification information database and the transaction operation belong to the same atomic operation.
In this embodiment, the atomic operation has indivisible property, and is not interrupted by any other transaction or task until the execution is completed, and when all operations in the same atomic operation are successful, the atomic operation is successful; if only one of the operations fails, the atomic operation also fails. The operation of storing the identification information into the identification information database and the transaction operation belong to the same atomic operation, so that the consistency of the success of the transaction operation and the existence of the identification information in the identification information database is realized. Furthermore, whether the transaction operation corresponding to the message is completed or not can be judged by checking whether the identification information of the message exists in the identification information database or not, and the consistency between the transaction operation and the message sending can be realized without calling a transaction operation check interface of the application equipment 2 to inquire one by one, so that the method is simpler and more convenient.
In one embodiment, saving the identification information to the corresponding identification information database comprises: and when the transaction operation is completed, storing the identification information into the corresponding identification information database.
In this embodiment, the identification information is saved to the corresponding identification information database, and is an independent action performed by the application device 2 after the transaction operation is completed. The method can be specifically realized by the following steps: when the application device 2 detects that the transaction operation is completed, the identification information of the message corresponding to the transaction is stored in an identification information database; and after the transaction operation is completed, sending a prompt of the completion of the transaction operation to the application device 2, and storing the identification information of the message corresponding to the transaction into an identification information database by the application device 2 according to the prompt. Whether the transaction operation corresponding to the message is finished or not is judged by checking whether the identification information of the message exists in the identification information database or not. The scheme can realize the consistency of the transaction operation and the message sending without calling the transaction operation check interface of the application equipment 2 to inquire one by one.
As shown in fig. 5, correspondingly, the present application further provides a message processing method of a message device, where the method includes:
s31, receiving the message and the identification information of the message sent by the corresponding application device 2.
And S32, updating the corresponding message set to be processed according to the message.
And S33, inquiring in the corresponding identification information database according to the identification information of the messages to be processed in the message set to be processed.
And S34, processing the message to be processed according to the corresponding query result.
In this embodiment, when the message device receives the message and the identification information of the message sent by the corresponding application device 2, if the identification information of the message is not set in the message entity, the message device should bind the message and the identification information of the message to make them correspond to each other one by one and distinguish them from other messages in the message device; if the identification information of the message is set in the message entity, the message device distinguishes it from other messages after receiving it. For example, the message devices can distinguish messages inside the message devices from each other by performing a transaction distinguishing mark on the received messages and performing a two-layer mark on the message distinguishing mark in the transaction. When the fourth device 32 updates the corresponding to-be-processed message set according to the message, it needs to put the received message into the to-be-processed message set according to its own management mechanism, and the message set here can also be understood as a message queue. When the message equipment queries the corresponding identification information database according to the identification information of the message to be processed in the message set to be processed, firstly, the identification information of the message to be queried in the message to be processed needs to be judged, and secondly, whether the identification information of the message to be queried exists in the identification information database is queried. Specifically, the message to be queried may be determined by the message device according to a preset condition corresponding to a specific situation of a different transaction, or by a management mechanism of the message device. When the eighth device 34 processes the message to be processed according to the corresponding query result, specifically, according to whether the identification information of the message to be queried is queried in the identification information database, the message is further submitted and deleted.
In one embodiment, updating the corresponding set of messages to be processed according to the message includes: and setting the message to be in a to-be-processed state, and adding the message to the corresponding to-be-processed message set.
In this embodiment, a specific implementation manner of the message device setting the received message to the pending state is not limited, and may be implemented by a specific marker, or may be implemented by being placed in a different queue set. For example, after receiving a message, the message device marks the message as being in a half state, that is, in a pending (committed) state, and before the message device does not receive a processing instruction of the message, the message is always in the half state. Or the messages are classified, placed in different areas and the like, the message equipment places the received messages in a to-be-processed message queue set, and the received messages are all to-be-processed messages by default. And adding the message to the corresponding message set to be processed to wait for subsequent processing.
As shown in fig. 6, in one embodiment, the message processing method of the message device further includes:
s35, the message processing instruction sent by the application device 2 is received.
And S36, processing the corresponding message according to the message processing instruction.
And S37, updating the message set to be processed according to the processed corresponding message.
In this embodiment, after the transaction operation is completed, the message device receives a message processing instruction sent by the application device 2, where the instruction needs to carry related information corresponding to a to-be-processed message in the message device, and specifically, the instruction can be implemented by using identification information, which is carried by the instruction and corresponds to the to-be-processed message. The identification information not only uniquely corresponds to the message in the transaction operation, but also carries transaction identification information recognizable by the message equipment, namely when the message equipment receives the instruction of the transaction operation result, the identification information in the instruction can correspond to a certain message to be processed of a certain transaction in the message equipment. Those skilled in the art will recognize that the implementation of corresponding message processing instructions to the message device to-be-processed messages is not limited, and any information interaction mechanism between the application device 2 and the message device that meets the requirements may be used. After the message equipment receives the message processing instruction, the message equipment processes the message to be processed according to the relevant information which is carried by the instruction and corresponds to the message to be processed in the message equipment. If the instruction content is message submission, submitting the corresponding message; and if the instruction content is message deletion (rollback), deleting the corresponding message. At which time the identification information in the message is cleared as the message is submitted/deleted. And updating the message set of the processed message, releasing the storage resource of the processed message after the message is processed, and updating the message set.
In one embodiment, querying in the corresponding identification information database according to the identification information of the message to be processed in the message set to be processed includes:
and when the duration of the messages to be processed in the message set to be processed exceeds a preset processing duration threshold, inquiring in a corresponding identification information database according to the identification information of the messages to be processed.
In this embodiment, the management mechanism of the message device may preset a time threshold in a pending state for a message corresponding to the transaction operation according to the attribute characteristics of different transactions. The precondition for querying the corresponding identification information database is as follows: first, there is a message to be processed that satisfies a condition; and secondly, acquiring the identification information of the message to be processed. The message to be processed meeting the condition is determined according to the time length of the message to be processed existing in the message set in the state to be processed, and if the time length exceeds a preset time threshold value, the message to be processed is listed as the object to be inquired. If the identification information of the message is bound with the message entity, the identification information can be directly read; otherwise, the identification information of the message needs to be called according to the message. The specific query sequence is not limited, and the query can be performed for the duration of the message to be processed in the state to be processed during the query, for example, the longest time for the message to be processed in the state is used, and the query is performed first; the processing may also be performed according to the position of the message to be processed satisfying the condition to be queried in the message set, for example, according to the sequence from top to bottom/from left to right in the message set. Those skilled in the art should recognize that the specific manner for setting the processing sequence is not limited, and the messages meeting the query condition may be processed in order.
In addition, the message device may also place the messages to be processed in a classified manner, for example, when the message device receives a message, the message device is placed in the first message set to be processed, and when the message in the first message set to be processed meets the threshold condition, the message is automatically transferred to the second message set to be processed, and at this time, the sixth device 33 only needs to query the corresponding identification information database according to the identification information of the message in the second message set to be processed.
In one embodiment, the message processing method of the message device further includes:
and determining a processing time length threshold according to the storage time length information of the message to be processed in the message set to be processed.
In this embodiment, when the message device determines the processing duration threshold according to the duration information of the message to be processed in the message set to be processed, the message corresponding to the transaction operation may be preset with the time threshold in the state to be processed according to the attribute characteristics of different transactions. For example, a larger time threshold may be set for transactions that operate longer; for transactions with shorter operation times, a smaller time threshold may be set. The size of the threshold is determined according to specific situations. Should not be too large to avoid too late a transaction operation in query initiation; it should not be too small to avoid the query starting premature transaction operation not yet finished; both of the foregoing situations are prone to eventual inconsistencies of transaction operations and message sending.
In one embodiment, processing the pending message according to the corresponding query result includes: if the corresponding query result is not null, submitting the message to be processed; and if the query result is null, deleting the message to be processed. And updating the message set to be processed according to the corresponding processing result.
In this embodiment, since the identification information exists in the identification information database only when the transaction operation is completed, when the identification information identical to the identification information of the message to be processed is queried in the identification information database, it indicates that the transaction operation is completed, and the message corresponding to the transaction is still in a state to be processed in the message device at this time, and the transaction operation and the message transmission are inconsistent, and the message corresponding to the transaction operation is submitted at this time, so that final consistency between the transaction operation and the message transmission is achieved. Similarly, since the identification information exists in the identification information database only when the transaction operation is completed, when the identification information which is the same as the identification information of the message to be processed is not inquired in the identification information database, the transaction operation is failed, the message corresponding to the transaction is still in a state to be processed in the message device, the transaction operation is inconsistent with the message sending, and the message corresponding to the transaction operation is deleted (rolled back), so that the final consistency of the transaction operation and the message sending is realized.
In addition, in this embodiment, after the message is processed, its storage resource is released, and the message set is updated. The specific updating mode may be sequential filling for left and right/up and down messages to be processed, or filling for a new received message.
Fig. 7 is a flowchart illustrating a message processing method according to an embodiment of the present application. The message processing method comprises the following steps:
s21, the application device 2 generates a corresponding message and identification information of the message according to the transaction operation.
S22, the application device 2 sends the message and the identification information to the corresponding message device.
S31, the message device receives the message and the identification information of the message sent by the corresponding application device 2.
And S32, the message device updates the corresponding message set to be processed according to the message.
S23, the application device 2 executes the transaction operation and stores the identification information in the corresponding identification information database, wherein the identification information exists in the identification information database only when the transaction operation is completed.
And S33, the message equipment inquires in a corresponding identification information database according to the identification information of the message to be processed in the message set to be processed.
And S34, the message equipment processes the message to be processed according to the corresponding query result.
For detailed description of the specific steps of the message processing method in this embodiment, please refer to the description of the corresponding reference steps. And will not be described in detail herein.
In this embodiment, after the transaction is completed, the message device completely depends on the information, and determines the transaction completion status according to the result of querying the identification information database according to the identification information of the message in the to-be-processed message set, and further processes the to-be-processed message. When the message to be processed meets the query condition, the message equipment can query the corresponding identification information database at any time so as to realize the final consistency of message sending and transaction operation.
In addition, the steps in this embodiment are not required to be completed in the above written order, and some of the steps are not limited by the way, and may even be synchronized, for example, the sequence of step S32 and step S23 is not fixed, and may also be synchronized.
Fig. 8 is a flowchart illustrating a message processing method according to another embodiment of the present application. The message processing method comprises the following steps:
and S21, the application equipment generates corresponding messages and identification information of the messages according to the transaction operation.
And S22, the application device sends the message and the identification information to the corresponding message device.
And S31, the message device receives the message and the identification information of the message sent by the corresponding application device.
And S32, the message device updates the corresponding message set to be processed according to the message.
And S23, the application device executes the transaction operation and stores the identification information to the corresponding identification information database, wherein the identification information exists in the identification information database only when the transaction operation is completed.
And S24, when the transaction operation is completed, sending a message processing instruction related to the message device.
And S35, receiving the message processing instruction sent by the application device.
And S36, processing the corresponding message according to the message processing instruction.
And S37, updating the message set to be processed according to the processed corresponding message.
And S33, the message equipment inquires in a corresponding identification information database according to the identification information of the message to be processed in the message set to be processed.
And S34, the message equipment processes the message to be processed according to the corresponding query result.
For detailed description of the specific steps of the message processing method in this embodiment, please refer to the description of the corresponding reference steps. And will not be described in detail herein.
In this embodiment, when a transaction is completed, the application device sends a message processing instruction corresponding to the transaction to the message device, and the message device receives the instruction and processes the corresponding message according to the instruction. After the message is processed, the message storage resource is released, and the message set to be processed is updated. The message equipment checks whether the message to be processed meeting the inquiry exists in the message set to be processed, inquires the corresponding identification information database according to the identification information of the message in the checked message set to be processed so as to judge whether the transaction operation corresponding to the message is finished or not, and further processes the message to be processed. When the message to be processed meets the query condition, the message equipment can query the corresponding identification information database at any time so as to realize the final consistency of message sending and transaction operation.
In addition, the steps in this embodiment are not required to be completed in the above written order, and some of the steps are not limited by the way, and may even be synchronized, for example, the sequence of step S32 and step S23 is not fixed, and may also be synchronized.
Compared with the prior art, the message processing method sets the identification information for the message during the transaction operation, and transmits the message and the identification information thereof from the application equipment to the message equipment. And simultaneously executing the transaction operation, and storing the identification information into a corresponding identification information database, wherein the identification information exists in the identification information database only when the transaction operation is completed. Therefore, the identification information of the message only exists in the corresponding database of the transaction which is successfully executed, and when the message equipment rechecks the processing condition of the message which is not processed, the consistency of message sending and transaction processing can be ensured only by inquiring whether the corresponding identification information exists in the identification information database of the application equipment. Meanwhile, the operation of storing the identification information into the identification information database is defined as belonging to the same atomic operation with the corresponding transaction operation, so that the final consistency of the transaction operation and the message sending is ensured through the consistency of the transaction operation, and the consistency problem of the transaction operation and the message sending is more perfectly solved.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (19)

1. A message processing method at an application device, wherein the method comprises:
generating a corresponding message and identification information of the message according to transaction operation, wherein the identification information is uniquely corresponding to the message, and the message is in a to-be-processed state;
sending the message and the identification information to corresponding message equipment;
and executing the transaction operation, and storing the identification information to a corresponding identification information database, wherein the identification information exists in the identification information database only when the transaction operation is completed.
2. The method of claim 1, wherein the method further comprises:
and when the transaction operation is completed, sending a message processing instruction related to the message device.
3. The method of claim 1 or 2, wherein the operation of saving the identification information to the identification information database belongs to the same atomic operation as the transaction operation.
4. The method of claim 3, wherein said saving the identification information to a corresponding identification information database comprises:
and when the transaction operation is completed, storing the identification information to a corresponding identification information database.
5. A message processing method at a message device, wherein the method comprises:
receiving a message sent by corresponding application equipment and identification information of the message, wherein the identification information is uniquely corresponding to the message;
setting the message to be in a to-be-processed state, and adding the message to a corresponding to-be-processed message set;
inquiring in a corresponding identification information database according to the identification information of the messages to be processed in the message set to be processed;
and processing the message to be processed according to the corresponding query result.
6. The method of claim 5, wherein the method further comprises:
receiving a message processing instruction sent by the application equipment;
processing the corresponding message according to the message processing instruction;
and updating the message set to be processed according to the processed corresponding message.
7. The method according to claim 5 or 6, wherein the querying in the corresponding identification information database according to the identification information of the message to be processed in the set of messages to be processed comprises:
and when the duration of the messages to be processed in the message set to be processed exceeds a preset processing duration threshold, inquiring in a corresponding identification information database according to the identification information of the messages to be processed.
8. The method of claim 7, wherein the method further comprises:
and determining the processing time length threshold according to the duration information of the message to be processed in the message set to be processed.
9. The method of claim 8, wherein the processing the message to be processed according to the corresponding query result comprises:
if the corresponding query result is not null, submitting the message to be processed; if the query result is empty, deleting the message to be processed;
and updating the message set to be processed according to the corresponding processing result.
10. An application apparatus for message processing, wherein the apparatus comprises:
the first device is used for generating a corresponding message and identification information of the message according to transaction operation, wherein the identification information is uniquely corresponding to the message, and the message is in a to-be-processed state;
a third device, configured to send the message and the identification information to a corresponding message device;
and a fifth device, configured to execute the transaction operation and store the identification information in a corresponding identification information database, where the identification information exists in the identification information database only when the transaction operation is completed.
11. The application device of claim 10, wherein the device further comprises:
seventh means for sending a message processing instruction for the message to the message device when the transaction operation is completed.
12. The application device according to claim 10 or 11, wherein the operation of saving the identification information to the identification information database belongs to the same atomic operation as the transaction operation.
13. The application device of claim 12, wherein said saving the identification information to a corresponding identification information database comprises:
and when the transaction operation is completed, storing the identification information to a corresponding identification information database.
14. A message device for message processing, wherein the device comprises:
the second device is used for receiving a message sent by corresponding application equipment and identification information of the message, wherein the identification information is uniquely corresponding to the message;
a fourth means for setting the message to a pending state and adding the message to a corresponding pending message set;
a sixth device, configured to query, according to the identification information of the to-be-processed message in the to-be-processed message set, a corresponding identification information database;
and the eighth device is used for processing the message to be processed according to the corresponding query result.
15. The messaging device of claim 14, wherein the device further comprises:
tenth means for receiving a message processing instruction sent by the application device;
a twelfth means for processing the corresponding message according to the message processing instruction;
fourteenth means for updating the set of messages to be processed according to the processed corresponding message.
16. The message device according to claim 14 or 15, wherein the sixth means is configured to query, according to the identification information of the to-be-processed information, the corresponding identification information database when a duration of the to-be-processed message in the to-be-processed message set exceeds a predetermined processing duration threshold.
17. The messaging device of claim 16, wherein the device further comprises:
a sixteenth device, configured to determine the processing duration threshold according to the duration information of the to-be-processed message in the to-be-processed message set.
18. The messaging device of claim 17, wherein said eighth means is for:
if the corresponding query result is not null, submitting the message to be processed; if the query result is empty, deleting the message to be processed;
and updating the message set to be processed according to the corresponding processing result.
19. A message processing system comprising an application device according to any one of claims 10 to 13 and a message device according to any one of claims 14 to 17.
CN201510210561.9A 2015-04-28 2015-04-28 Message processing method, device and system Active CN106155775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510210561.9A CN106155775B (en) 2015-04-28 2015-04-28 Message processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510210561.9A CN106155775B (en) 2015-04-28 2015-04-28 Message processing method, device and system

Publications (2)

Publication Number Publication Date
CN106155775A CN106155775A (en) 2016-11-23
CN106155775B true CN106155775B (en) 2020-02-21

Family

ID=57347926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510210561.9A Active CN106155775B (en) 2015-04-28 2015-04-28 Message processing method, device and system

Country Status (1)

Country Link
CN (1) CN106155775B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108092918A (en) * 2017-12-07 2018-05-29 长城计算机软件与系统有限公司 A kind of method for message transmission and system
CN108153598B (en) * 2017-12-25 2021-06-25 东软集团股份有限公司 Data consistency method and device based on micro-service architecture
CN110874232B (en) * 2018-09-04 2023-12-29 中兴通讯股份有限公司 Virtual machine component upgrading method, equipment and computer readable storage medium
CN109491766B (en) * 2018-10-10 2022-03-04 阿里巴巴集团控股有限公司 Method, device and system for delivering transaction message and message server
CN111225012A (en) * 2018-11-27 2020-06-02 阿里巴巴集团控股有限公司 Transaction processing method, device and equipment
CN109634978A (en) * 2018-12-18 2019-04-16 钛马信息网络技术有限公司 Reading data consistency system and method
CN110941622A (en) * 2019-10-31 2020-03-31 京东数字科技控股有限公司 Data processing method and device
CN111045839A (en) * 2019-12-04 2020-04-21 中国建设银行股份有限公司 Sequence calling method and device based on two-phase transaction message in distributed environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089857A (en) * 2007-07-24 2007-12-19 中兴通讯股份有限公司 Internal store data base transaction method and system
CN102306197A (en) * 2011-09-22 2012-01-04 用友软件股份有限公司 Device and method for guaranteeing consistency of data-source-crossing operation results
CN103209153A (en) * 2012-01-16 2013-07-17 阿里巴巴集团控股有限公司 Method, device and system for processing messages
CN103475520A (en) * 2013-09-10 2013-12-25 青岛海信传媒网络技术有限公司 Service processing control method and device in distribution network
CN105592117A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Method and device for processing transaction message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089857A (en) * 2007-07-24 2007-12-19 中兴通讯股份有限公司 Internal store data base transaction method and system
CN102306197A (en) * 2011-09-22 2012-01-04 用友软件股份有限公司 Device and method for guaranteeing consistency of data-source-crossing operation results
CN103209153A (en) * 2012-01-16 2013-07-17 阿里巴巴集团控股有限公司 Method, device and system for processing messages
CN103475520A (en) * 2013-09-10 2013-12-25 青岛海信传媒网络技术有限公司 Service processing control method and device in distribution network
CN105592117A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Method and device for processing transaction message

Also Published As

Publication number Publication date
CN106155775A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN106155775B (en) Message processing method, device and system
CN108280080B (en) Data synchronization method and device and electronic equipment
CN111225012A (en) Transaction processing method, device and equipment
CN111143093B (en) Asynchronous message distributed processing method, device, equipment and storage medium
CN106033439A (en) Method and system for processing distributed transaction
CN111225082B (en) Identity management method and device of Internet of things intelligent equipment and Internet of things platform
US11487707B2 (en) Efficient file path indexing for a content repository
CN106897345B (en) Data storage method and device
CN111399764A (en) Data storage method, data reading device, data storage equipment and data storage medium
CN112860953A (en) Data importing method, device, equipment and storage medium of graph database
CN114185991A (en) Method and related device for realizing data synchronization based on distributed database
CN112445986B (en) Cache information updating method, pushing method, device and medium
CN112860746B (en) Cache reduction-based method, equipment and system
CN113836212B (en) Method for automatically generating Json data by database data, readable medium and electronic equipment
CN115455121A (en) Real-time reliable data synchronous transmission method, equipment and medium
CN106557530B (en) Operation system, data recovery method and device
CN116542668A (en) Block chain-based data processing method, equipment and readable storage medium
CN114092211A (en) Processing method of accounting data, electronic device and readable storage medium
CN107844491B (en) Method and equipment for realizing strong consistency read operation in distributed system
EP4174645A1 (en) Mirror image distribution method, electronic device, and storage medium
CN116594848B (en) Task monitoring method, device, equipment, terminal equipment and storage medium
CN107729539B (en) Method and device for setting main named node
CN114268540B (en) Rule engine optimization method, device and equipment
CN101989280A (en) Method and system for managing configuration resources
CN111797062B (en) Data processing method, device and distributed database system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180507

Address after: Cayman Islands, Grand Cayman Island capital building, four level 847 box

Applicant after: CAINIAO SMART LOGISTICS HOLDING Ltd.

Address before: Cayman Islands Grand Cayman capital building a four storey No. 847 mailbox

Applicant before: ALIBABA GROUP HOLDING Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant