CN110245026B - Information processing method and system - Google Patents

Information processing method and system Download PDF

Info

Publication number
CN110245026B
CN110245026B CN201810190114.5A CN201810190114A CN110245026B CN 110245026 B CN110245026 B CN 110245026B CN 201810190114 A CN201810190114 A CN 201810190114A CN 110245026 B CN110245026 B CN 110245026B
Authority
CN
China
Prior art keywords
message sequence
message
information
sequence segment
position point
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
CN201810190114.5A
Other languages
Chinese (zh)
Other versions
CN110245026A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810190114.5A priority Critical patent/CN110245026B/en
Publication of CN110245026A publication Critical patent/CN110245026A/en
Application granted granted Critical
Publication of CN110245026B publication Critical patent/CN110245026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides an information processing method, including: obtaining a message sequence formed by sequencing the site information according to a preset sequencing logic, wherein the messages corresponding to the site information in the message sequence comprise messages processed through different threads, the message sequence comprises at least one message sequence segment, and the site information in each message sequence segment is continuously arranged according to the preset sequencing logic; selecting a target message sequence segment meeting the continuity requirement in the position of the submitted message sequence segment from at least one message sequence segment contained in the message sequence; submitting the target message sequence segments. The present disclosure also provides an information processing system, a computer system, and a computer-readable storage medium.

Description

Information processing method and system
Technical Field
The present disclosure relates to the field of computer technology, and more particularly, to an information processing method and system, a computer system, and a computer-readable storage medium.
Background
Message queues are one of important message middleware in application programs, most of them are realized based on Java message service (Java MESSAGE SERVICE, simply called JMS) specifications, for example, APACHE ACTIVEMQ message queues are a message combination body, can provide cross-platform, high-availability and high-throughput data services, and are widely applied in a plurality of industries at present.
For example, messages are typically buffered in a message queue during processing as a form of data. For the messages temporarily stored in the message queue, some related technologies provide a single-threaded message processing mode, and the single-threaded message processing mode easily causes data backlog when facing an application scene of huge data volume or data flood peak period. To overcome the data backlog defect, other related art provides a multi-threaded message processing method.
However, in implementing the concepts of the present disclosure, the inventors found that there are at least the following problems in the related art: the existing multithreading message processing mode cannot feed back the position information corresponding to the processed message according to the position sequence.
Disclosure of Invention
In view of this, the present disclosure provides an information processing method and system for solving the defect that the existing multithreading message processing method cannot feed back the location information corresponding to the processed message in the order of location by submitting the target message sequence segment satisfying the continuity requirement in the location with the previously submitted message sequence segment.
One aspect of the present disclosure provides an information processing method including: obtaining a message sequence formed by sequencing site information according to preset sequencing logic, wherein messages corresponding to the site information in the message sequence comprise messages processed through different threads, the message sequence comprises at least one message sequence segment, and the site information in each message sequence segment is continuously arranged according to the preset sequencing logic; selecting a target message sequence segment from the at least one message sequence segment contained in the message sequence, wherein the target message sequence segment meets the continuity requirement in a site with a message sequence segment submitted before; and submitting the target message sequence segments.
According to an embodiment of the present disclosure, selecting a target message sequence segment that satisfies a continuity requirement in a site with a previously submitted message sequence segment from the at least one message sequence segment included in the message sequence includes: determining the first position information in each message sequence segment aiming at the at least one message sequence segment; determining a first position point represented by the first position point information in each message sequence segment based on the determined position point information; selecting the first position point with the forefront ranking from all the determined first position points; and taking the message sequence segment in which the position information corresponding to the first position point with the forefront position is positioned as the target message sequence segment.
According to an embodiment of the present disclosure, the above information processing method further includes: before a message sequence segment in which position information corresponding to the first position point with the forefront position is located is taken as the target message sequence segment, position information in the last position in the previously submitted message sequence segment is determined; determining the last position point represented by the last position point information; judging whether the last position point and the first position point which is arranged at the forefront are continuous positions or not; and if so, taking the message sequence segment in which the position information corresponding to the first position point with the forefront position is positioned as the target message sequence segment.
According to an embodiment of the present disclosure, the above information processing method further includes: and selecting a target message sequence segment meeting the continuity requirement in the site with the submitted message sequence segment from the at least one message sequence segment contained in the message sequence according to a preset clock period or when the number of the site information in the message sequence reaches a preset value, and submitting the target message sequence segment.
According to an embodiment of the present disclosure, each piece of location information corresponds to one message, and the information processing method further includes: receiving information corresponding to each bit point information; classifying the information corresponding to each bit point information; and distributing the messages of different categories to different threads for message processing according to the classification processing result.
According to an embodiment of the present disclosure, the above information processing method further includes: and in the process of processing the messages of the corresponding categories by each thread, if the message processing is successful, storing the corresponding position information into the message sequence according to the preset ordering logic.
According to an embodiment of the present disclosure, the above information processing method further includes: in the process that each thread processes the message of the corresponding category, if the message processing fails, a message reacquiring request is sent to request a message provider to provide each message corresponding to each position point after the last position point represented by the position point information at the last position in the message sequence segment submitted before, and all the position point information stored in the message sequence is cleared.
Another aspect of the present disclosure provides an information processing system including: the information processing module is used for processing the information of the position information in the information sequence according to the preset ordering logic, wherein the information of the position information in the information sequence comprises information processed by different threads, the information sequence comprises at least one information sequence segment, and the position information in each information sequence segment is continuously arranged according to the preset ordering logic; a selecting module, configured to select a target message sequence segment that satisfies a continuity requirement in a location with a message sequence segment submitted before from the at least one message sequence segment included in the message sequence; and a submitting module, configured to submit the target message sequence segment.
According to an embodiment of the present disclosure, the selection module includes: a first determining unit configured to determine, for the at least one message sequence segment, position information in which each message sequence segment is at a first position; a second determining unit, configured to determine, based on the determined location information, a first location indicated by the location information located at the first location in each of the message sequence segments; the selection unit is used for selecting the head position point with the forefront ranking from all the determined head position points; and a processing unit, configured to use, as the target message sequence segment, a message sequence segment in which position information corresponding to the first position point with the forefront ranking is located.
According to an embodiment of the present disclosure, the above information processing system further includes: a first determining module, configured to determine, before using, as the target message sequence segment, a message sequence segment in which position information corresponding to the first position point with the highest ranking position is located, position information in the last position in the previously submitted message sequence segment; the second determining module is used for determining the last position point represented by the last position point information; the judging module is used for judging whether the last position point and the first position point which is arranged at the forefront are continuous positions or not; and the first processing module is used for taking a message sequence segment corresponding to the position information of the first position at the forefront position as the target message sequence segment under the condition that the last position is judged to be a continuous position with the first position at the forefront position.
According to an embodiment of the present disclosure, the above information processing system further includes: and the second processing module is used for selecting a target message sequence segment meeting the continuity requirement in the site with the submitted message sequence segment from the at least one message sequence segment contained in the message sequence according to a preset clock period or when the number of the site information in the message sequence reaches a preset value, and submitting the target message sequence segment.
According to an embodiment of the present disclosure, each location information corresponds to a message, and the information processing system further includes: the receiving module is used for receiving the information corresponding to each bit point information; the classification module is used for classifying the messages corresponding to the position information; and the third processing module is used for distributing the messages of different categories to different threads for message processing according to the classification processing result.
According to an embodiment of the present disclosure, the above information processing system further includes: and the fourth processing module is used for storing the corresponding site information into the message sequence according to the preset ordering logic if the message processing is successful in the process of processing the message of the corresponding class by each thread.
According to an embodiment of the present disclosure, the above information processing system further includes: and a fifth processing module, configured to send a message reacquiring request to request the message provider to provide each message corresponding to each position point located after the last position point indicated by the position point information located at the last position in the previously submitted message sequence segment, and clear all the position point information stored in the message sequence, when the message processing fails during the message processing of the corresponding type of message by each thread.
Another aspect of the present disclosure provides a computer system comprising: one or more processors; a computer readable storage medium storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the information processing method of any of the above.
Another aspect of the present disclosure provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement the information processing method according to any of the above.
According to the embodiment of the disclosure, the technical problem that the existing multithreading message processing mode cannot feed back the location information corresponding to the processed message in the location order can be at least partially solved because the technical means of submitting the target message sequence segment meeting the continuity requirement in the location by the message sequence segment submitted before is adopted, and therefore the technical effect of sequential submitting the location information can be achieved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1 schematically illustrates a system architecture to which information processing methods and systems may be applied, according to embodiments of the present disclosure;
FIG. 2 schematically illustrates a flow chart of an information processing method according to an embodiment of the present disclosure;
FIG. 3A schematically illustrates a flow diagram for selecting a target message sequence segment according to an embodiment of the disclosure;
FIG. 3B schematically illustrates a flow chart of an information processing method according to another embodiment of the present disclosure;
FIG. 3C schematically illustrates a flow chart of an information processing method according to another embodiment of the present disclosure;
FIG. 3D schematically illustrates a schematic diagram of an information processing method according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of an information handling system according to an embodiment of the present disclosure;
FIG. 5A schematically illustrates a block diagram of a selection module according to an embodiment of the disclosure;
FIG. 5B schematically illustrates a block diagram of an information handling system according to another embodiment of the present disclosure;
FIG. 5C schematically illustrates a block diagram of an information handling system according to another embodiment of the present disclosure;
FIG. 5D schematically illustrates a block diagram of an information handling system according to another embodiment of the present disclosure;
FIG. 5E schematically illustrates a block diagram of an information handling system according to another embodiment of the present disclosure;
FIG. 5F schematically illustrates a block diagram of an information handling system according to another embodiment of the present disclosure; and
Fig. 6 schematically illustrates a block diagram of a computer system suitable for implementing an information processing method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). It should also be appreciated by those skilled in the art that virtually any disjunctive word and/or phrase presenting two or more alternative items, whether in the description, claims, or drawings, should be understood to contemplate the possibilities of including one of the items, either of the items, or both. For example, the phrase "a or B" should be understood to include the possibility of "a" or "B", or "a and B".
The embodiment of the disclosure provides an information processing method, which comprises the following steps: obtaining a message sequence formed by sequencing the site information according to a preset sequencing logic, wherein the messages corresponding to the site information in the message sequence comprise messages processed through different threads, the message sequence comprises at least one message sequence segment, and the site information in each message sequence segment is continuously arranged according to the preset sequencing logic; selecting a target message sequence segment meeting the continuity requirement in the position of the submitted message sequence segment from at least one message sequence segment contained in the message sequence; submitting the target message sequence segments.
Fig. 1 schematically illustrates a system architecture to which information processing methods and systems may be applied according to embodiments of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the information processing method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the information processing system provided by the embodiments of the present disclosure may be generally provided in the server 105. The information processing method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the information processing system provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically shows a flowchart of an information processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the information processing method may include operations S201 to S203, wherein:
In operation S201, a message sequence formed by ordering the location information according to a preset ordering logic is obtained, where the messages corresponding to the location information in the message sequence include messages processed by different threads, and the message sequence includes at least one message sequence segment, and the location information in each message sequence segment is continuously arranged according to the preset ordering logic.
In operation S202, a target message sequence segment that satisfies the continuity requirement in the site with the message sequence segment that has been previously submitted is selected from at least one message sequence segment included in the message sequence.
In operation S203, the target message sequence part is submitted.
The information processing method provided by the disclosure can be applied to electronic equipment, and the electronic equipment can include, but is not limited to, mobile phones, servers, notebook computers, tablet computers and the like, and can communicate with other electronic equipment, such as receiving messages sent by other electronic equipment. Before other electronic devices send the message, the message carries location information used by other electronic devices to count the sending sequence of the message, where the location information may be incremental, for example, the other electronic devices send the message to the electronic device in the sequence of message 1, message 2, and message 3 …, where the location information carried by message 1 is location information a, the location information carried by message 2 is location information B, and the location information carried by message 3 is location information C …, where location information a may indicate that the first sent message 1, location information B may indicate that the second sent message 2, and location information C may indicate that the third sent message 3, …, and so on.
According to the embodiment of the disclosure, the messages can be temporarily stored in the original message queue according to the sequence of sending the messages to the electronic device by other electronic devices, and the electronic device distributes the messages in the original message queue to the corresponding threads for processing one by one according to the preset rule, namely the embodiment of the disclosure can be applied to a scene of processing the messages in a multithreading way.
In an embodiment of the disclosure, the electronic device may store location information corresponding to a message processed through different threads in a message sequence, where the location information in the message sequence may include location information corresponding to a message successfully processed through different threads. And, because the complexity of each message may be different, the processing time of each message may be different by the thread, so that the messages with the later sequence may be processed in advance, and at this time, the sequence of the site information in the message sequence may not be completely continuous.
Therefore, the location information in the message sequence can be ordered according to a preset ordering logic, wherein the preset ordering logic can be a rule set by other electronic equipment for the location information to represent the sending sequence of the message. For example, in connection with the above example, the preset ordering logic may be that the site information a indicates that the transmission order of the message 1 is the first bit, the site information B indicates that the transmission order of the message 2 is the second bit, and the site information C indicates that the transmission order of the message 3 is the third bit.
In view of this, at least one message sequence segment may be obtained, and the location information in each message sequence segment is arranged consecutively according to a preset ordering logic.
For example, the site information in the message sequence includes site information a, site information B, site information C, site information E, and site information F, and after these site information are sequentially ordered according to a preset ordering logic, a message sequence segment 1 and a message sequence segment 2 can be obtained, where the message sequence segment 1 includes site information a, site information B, and site information C, and the message sequence segment 2 includes site information E and site information F.
According to the embodiment of the disclosure, in order to ensure continuity of submitted site information, a target message sequence segment meeting a continuity requirement in site of the previously submitted message sequence segment can be selected from the message sequence based on the previously submitted message sequence segment, and then the target message sequence segment can be submitted, for example, the target message sequence segment can be returned to other electronic devices, so that other electronic devices can know the message processing progress, and messages corresponding to other message sequence segments (which can include a plurality of site information and also can include single site information) with continuity in site of the target message sequence segment can be sent based on the returned target message sequence segment.
It should be noted that, because different other electronic devices may have different preset ordering logics for the arrangement sequence of the position information, the target message sequence segment is completely determined by the preset ordering logics set by the other electronic devices, which may require the electronic devices to frequently adapt to the other electronic devices, so that the operation of the electronic devices is complicated. Therefore, the electronic device can have a set of message sequence numbers set based on the preset sequencing logic of the electronic device to mark the sequence of the messages, the message sequence numbers can also be increased, the message sequence numbers and the site information have corresponding relations, and when the target message sequence segment is determined, the determination can be performed based on the corresponding relations between the message sequence numbers and the site information, so that the electronic device is not required to be frequently adapted to other electronic devices, and unnecessary operations are reduced.
Specifically, the location information may include a message sequence number used by the electronic device to count a message processing sequence, for example, when the electronic device distributes the messages in the original message queue to corresponding threads for processing according to a preset rule one by one, the message sequence number may also be created for the messages, where the sequence of the messages represented by the message sequence number is consistent with the sequence of the messages represented by the location information, in other words, there is a correspondence between the message sequence number and the location information.
For example, in combination with the above example, the message sequence number of the message 1 is the message sequence number 1, the message sequence number of the message 2 is the message sequence number 2, and the message sequence number of the message 3 is the message sequence number 3, wherein the message sequence number 1 indicates that the order in which the electronic device receives the message 1 is the first bit, the message sequence number 2 indicates that the order in which the electronic device receives the message 2 is the second bit, and the message sequence number 3 indicates that the order in which the electronic device receives the message 3 is the third bit.
Further, the electronic device may store a message sequence number corresponding to a message processed via a different thread in the message sequence. Similar to the description of the location information above, the ordering of message sequence numbers in a message sequence may not be completely contiguous. At this time, the message sequence numbers in the message sequence may be ordered according to the preset ordering logic of the electronic device, where the preset ordering logic of the electronic device may be a rule set by the electronic device for the message sequence numbers to indicate the ordering sequence of the messages.
In view of this, at least one message sequence-number-sequence-segment is also available, and the message sequence numbers in each message sequence-number-sequence-segment are arranged consecutively according to the preset ordering logic of the electronic device itself. When determining the target message sequence segment to be submitted, as the message sequence number and the site information have a corresponding relation, the corresponding message sequence number segment and the message sequence segment also have a corresponding relation, and further, the target message sequence segment meeting the continuity requirement on the site of the message sequence segment corresponding to the message sequence number segment submitted before can be selected from the message sequence based on the corresponding relation between the message sequence number sequence segment submitted before and the message sequence segment, and further, the target message sequence segment can be submitted.
According to the embodiment of the disclosure, the target message sequence segment meeting the continuity requirement in the site with the previously submitted message sequence segment is selected from at least one message sequence segment contained in the message sequence, and the target message sequence segment is submitted, so that the defect that the existing multithreading message processing mode cannot feed back the site information corresponding to the processed message according to the site order can be overcome, and the purpose of site information sequential submission is achieved.
The method illustrated in fig. 2 is further described below with reference to fig. 3A-3D in conjunction with specific embodiments.
Fig. 3A schematically illustrates a flow diagram for selecting a target message sequence segment according to an embodiment of the disclosure.
As shown in fig. 3A, selecting a target message sequence segment that satisfies the continuity requirement in the site with a previously submitted message sequence segment from at least one message sequence segment included in the message sequence may include operations S301 to S304, wherein:
in operation S301, for at least one message sequence segment, location information in which each message sequence segment is at the top is determined.
In operation S302, a first position point indicated by the position point information at the first position in each message sequence segment is determined based on the determined position point information.
In operation S303, the top most front ranking top position point is selected from all the determined top position points.
In operation S304, the message sequence segment in which the position information corresponding to the first position point with the highest ranking position is located is taken as the target message sequence segment.
In an embodiment of the present disclosure, to further ensure accuracy of sequential submission of the location information, the location information at the first position may be determined from each of at least one message sequence segment included in the message sequence, for the at least one message sequence segment. In other words, the at least one message sequence segment may include at least one first-located position information therein.
And determining the first position point represented by each first position point information based on the determined at least one first position point information, wherein the first position point can be used for representing the ordering order of the messages corresponding to the first position point information in the original message queue. Further, it should be understood that the determined first position point in the embodiments of the present disclosure may also include at least one.
Further, a first position point with the forefront position point can be selected from the at least one first position point, and because the position information corresponding to the first position point with the forefront position point is not necessarily submitted, a message sequence segment where the position information corresponding to the first position point with the forefront position point is located can be used as a target message sequence segment, and the target message sequence segment can be submitted.
According to the embodiment of the invention, the message sequence segment in which the position information corresponding to the first position point with the forefront position is positioned is used as the target message sequence segment, so that the defect that the processed position information corresponding to the processed message cannot be fed back according to the position sequence in the existing multithreading message processing mode can be overcome, and the accuracy of the sequential submission of the position information can be further improved.
Fig. 3B schematically illustrates a flowchart of an information processing method according to another embodiment of the present disclosure.
As shown in fig. 3B, the information processing method may further include operations S401 to S404, wherein:
in operation S401, before a message sequence segment in which position information corresponding to a top position point, which is most forward ranked, is set as a target message sequence segment, position information at the last position in a message sequence segment that has been submitted before is determined.
In operation S402, the last position point indicated by the position point information at the last position is determined.
In operation S403, it is determined whether the last position point and the first position point, which is the foremost position point, are consecutive positions.
If yes, the message sequence segment where the location information corresponding to the first location point with the highest ranking is located is taken as the target message sequence segment in operation S404.
According to the embodiment of the disclosure, in order to further improve the accuracy of sequential submission of the site information, the embodiment of the disclosure may further determine last site information in a previously submitted message sequence segment, and determine a last site represented by the last site information, where the last site may be used to represent an ordering order of a message corresponding to the last site information in an original message queue.
Judging whether the last position point and the first position point which is the forefront position point are continuous positions, if so, indicating that the message sequence segment corresponding to the first position point which is the forefront position point and the message sequence segment submitted before meet the requirement of continuity in position, and further, taking the message sequence segment as a target message sequence segment and submitting the target message sequence segment.
According to the embodiment of the disclosure, the message sequence segment corresponding to the first position point with the last position point being the first position point with the continuous position point, where the position information is located, is used as the target sequence segment, so that the defect that the processed message corresponding to the processed message cannot be fed back according to the position order in the existing multithreading message processing mode can be overcome, and the accuracy of sequential submitting of the position information can be further improved.
As an alternative embodiment, the information processing method may further include: and selecting a target message sequence segment meeting the continuity requirement in the site with the previously submitted message sequence segment from at least one message sequence segment contained in the message sequence according to a preset clock period or when the number of the site information in the message sequence reaches a preset value, and submitting the target message sequence segment.
It should be noted that, in the prior art, when site information is submitted, it is not guaranteed that sites are submitted sequentially, and there is a defect that whether a processed message exists or not is detected in real time, if so, the site corresponding to the information is submitted, so that the burden of a system is easily increased.
In view of this, the embodiments of the present disclosure may trigger the operation of submitting the site information if one of the following conditions is satisfied, for example, the operation of submitting the site information may be triggered according to a preset clock period or when the number of site information in the message sequence reaches a preset value, that is, a target message sequence segment satisfying the continuity requirement in site with a previously submitted message sequence segment is selected from at least one message sequence segment included in the message sequence, and the target message sequence segment is submitted. The location information is location information corresponding to a message which is successfully processed by different threads.
According to embodiments of the present disclosure, the preset clock period may include a preset clock period in periodicity, and may also include a preset clock period in non-periodicity. For example, the predetermined clock period may be 5 minutes at time intervals, and for example, the predetermined clock period may be 1 minute for the first commit point, 5 minutes for the second commit point, 10 minutes for the first commit point, and so on.
According to the embodiment of the disclosure, when the number of the bit information in the message sequence reaches the preset value according to the preset clock period, the operation of submitting the bit information is triggered, so that the operation of submitting the bit information is delayed from the message processing, each thread performs its own job, the separation of the multi-thread message processing and the operation of submitting the bit information is realized, namely, the business processing and the asynchronous processing of the bit submitting are realized, the processing capacity can be improved, and the integrity of the message can be ensured.
Fig. 3C schematically illustrates a flowchart of an information processing method according to another embodiment of the present disclosure.
As shown in fig. 3C, the information processing method may further include operations S501 to S503, wherein:
in operation S501, a message corresponding to each bit point information is received.
In operation S502, a classification process is performed on the message corresponding to each bit point information.
In operation S503, messages of different categories are allocated to different threads for message processing according to the classification processing result.
It should be noted that, in the prior art, when messages in an original message queue are processed in sequence, the duration of processing each message by a thread may be different due to different complexity of each message, so that when messages with relevance are distributed to different threads for processing, the sequence of processing completion cannot be ensured, and the true intention of a user cannot be realized. For example, message 1 and message 2 represent different states of the same policy number, message 1 represents "item at destination 1", message 2 represents "item at destination 2", and message 1 is ordered earlier in the original message queue than message 2, i.e., the final state of the policy number should be "item at destination 2". However, when message 1 is assigned to process in thread 1, message 2 is assigned to process in thread 2, and message 2 is processed in advance compared to message 1, then the status of the waybill number becomes "item at destination 1", which obviously violates the user's true intent.
In view of this, the embodiments of the present disclosure may receive a message corresponding to each piece of location information, and classify the message corresponding to each piece of location information according to a preset rule, for example, a HASH algorithm. And distributing the messages of different categories to different threads for message processing according to the classification processing result.
Specifically, message information of a message corresponding to the location information may be obtained, the message information may be, for example, a bill number, and the message information is processed and classified according to a preset rule, where a message with a consistent classification result may represent the same category, and a message with an inconsistent classification result may represent different categories. Then, the information with consistent classification results can be distributed to the same thread for information processing, and the information with inconsistent classification results can be distributed to different threads for information processing.
According to the embodiment of the disclosure, the messages of the same class are distributed to the same thread for processing, and the messages of different classes are distributed to different threads for processing, so that the messages of the same class can be ensured to be processed in sequence, and the real intention of a user can be met to the greatest extent.
As an alternative embodiment, the information processing method may further include: and in the process of processing the messages of the corresponding categories by each thread, if the message processing is successful, storing the corresponding position information into the message sequence according to the preset ordering logic.
In the embodiment of the disclosure, after the message is successfully processed, the location information corresponding to the processed message may be stored in the message sequence, and further, may be stored according to a preset ordering logic.
It should be noted that, when the location information includes a message sequence number, and after the message is processed successfully, the location information and the message sequence number corresponding to the processed message may be stored in the message sequence, and correspondingly, the location information may be stored in the message sequence according to the preset ordering logic of other electronic devices, and the message sequence number may be stored in the message sequence according to the preset ordering logic of the electronic device itself.
According to the embodiment of the disclosure, the site information corresponding to the successfully processed message is stored in the message sequence according to the preset ordering logic, so that a basis can be provided for subsequent submitting of the site information.
As an alternative embodiment, the information processing method may further include: in the process of processing the message of the corresponding type by each thread, if the message processing fails, a message reacquiring request is sent to request the message provider to provide each message corresponding to each position point behind the last position point represented by the position point information at the last position in the message sequence segment submitted before, and all the position point information stored in the message sequence is cleared.
In an embodiment of the present disclosure, if a message processing failure is detected, the electronic device may send a message reacquiring request to a message provider (also referred to as other electronic devices) through a bus, where the message reacquiring request may be used to request the message provider to provide messages corresponding to the respective location information that has been submitted before and that satisfies the continuity requirement in the location, in particular, may be used to request messages corresponding to the respective location that is located after the last location represented by the location information that is located last in the message sequence segment that has been submitted before.
Meanwhile, in order to ensure that the site information can be submitted sequentially, after detecting that the message processing fails, all the site information stored in the message sequence can be cleared, so that the disorder condition of the stored site information can be avoided.
By the embodiment of the disclosure, the accuracy of sequential submission of the site information can be further ensured by sending a message reacquiring request to the message provider and clearing all the site information stored in the message sequence.
Fig. 3D schematically illustrates a schematic diagram of an information processing method according to an embodiment of the present disclosure.
As shown in fig. 3D, when other electronic devices send a message to the electronic device, the message may be temporarily stored in a message middleware, such as an original message queue, and the electronic device may interface with the message middleware through a processing bus (simply referred to as a bus), and acquire the message and information corresponding to the message, such as location information, from the message middleware. It should be appreciated that the message processing herein is single threaded processing.
According to the embodiment of the disclosure, after the messages enter the system through the processing bus, the message splitter can acquire the messages from the processing bus, and perform message distribution according to a service scene by adopting a reasonable method (for example, a preset rule), for example, perform consistency Hash according to a certain field, and split the messages into corresponding service processing units through the message splitter to process the messages, and at the same time, can generate incremental message sequence numbers.
Further, the service processing unit may perform service processing according to a service scenario, and feedback an execution result, for example, if the message processing is completed, information about the completion of the message is stored in a completed message sequence (also referred to as a message sequence), where the information may include a message sequence number, location information, and the like; if the message processing fails, an exception processing unit (such as a failure queue in the figure) is entered, and the failure callback notifies the processing bus to re-process the message and empty the information in the completed message sequence.
Upon submission of the site information, information may be read from the completed message sequence as long as timing and/or quantification is satisfied, i.e., one that may trigger site submission is satisfied, e.g., the timing submission site in FIG. 3D. Specifically, the maximum value information of the complete block (also called as target message sequence segment) can be obtained according to the sequence number sequence, and the position information of the maximum value larger than the complete block can be temporarily cached and submitted when the condition is satisfied next time.
By adopting the embodiment of the disclosure, the submitting site is delayed from the message processing by adopting the message queue mode, thereby realizing the separation of multithreading message processing and site submitting, namely realizing business processing and asynchronous processing of site submitting, not only improving the processing capacity, but also ensuring the integrity of the message. In addition, the multithreading is adopted to process the information, the throughput of the system can be improved, and the data flood peak impact can be dealt with in the process of continuously increasing the traffic.
Fig. 4 schematically illustrates a block diagram of an information processing system according to an embodiment of the present disclosure.
As shown in fig. 4, the information processing system 400 may include an acquisition module 410, a selection module 420, and a submission module 430, wherein:
The obtaining module 410 is configured to obtain a message sequence formed by ordering the location information according to a preset ordering logic, where the messages corresponding to the location information in the message sequence include messages processed by different threads, and the message sequence includes at least one message sequence segment, and the location information in each message sequence segment is continuously arranged according to the preset ordering logic;
the selection module 420 is configured to select a target message sequence segment that satisfies the continuity requirement in the site with a previously submitted message sequence segment from at least one message sequence segment included in the message sequence.
The submit module 430 is used to submit the target message sequence segments.
According to the embodiment of the disclosure, the target message sequence segment meeting the continuity requirement in the site with the previously submitted message sequence segment is selected from at least one message sequence segment contained in the message sequence, and the target message sequence segment is submitted, so that the defect that the existing multithreading message processing mode cannot feed back the site information corresponding to the processed message according to the site order can be overcome, and the purpose of site information sequential submission is achieved.
Fig. 5A schematically illustrates a block diagram of a selection module according to an embodiment of the disclosure.
As shown in fig. 5A, the selection module 420 may include a first determination unit 421, a second determination unit 422, a selection unit 423, and a processing unit 424, wherein:
The first determining unit 421 is configured to determine, for at least one message sequence segment, position information in which each message sequence segment is at the first position.
The second determining unit 422 is configured to determine, based on the determined location information, a first location indicated by the location information at the first location in each message sequence segment.
The selecting unit 423 is configured to select a top position point with the top ranking from all the determined top position points.
The processing unit 424 is configured to take, as a target message sequence segment, a message sequence segment in which location information corresponding to a first location point that is most top ranked is located.
According to the embodiment of the invention, the message sequence segment in which the position information corresponding to the first position point with the forefront position is positioned is used as the target message sequence segment, so that the defect that the processed position information corresponding to the processed message cannot be fed back according to the position sequence in the existing multithreading message processing mode can be overcome, and the accuracy of the sequential submission of the position information can be further improved.
Fig. 5B schematically illustrates a block diagram of an information handling system according to another embodiment of the present disclosure.
As shown in fig. 5B, the information processing system 400 may further include a first determining module 510, a second determining module 520, a judging module 530, and a first processing module 540, wherein:
The first determining module 510 is configured to determine, before a message sequence segment in which position information corresponding to a first position point with a top ranking is located is regarded as a target message sequence segment, position information in a last position in a message sequence segment submitted before.
The second determining module 520 is configured to determine an last position represented by the position information at the last position.
The determining module 530 is configured to determine whether the last position point and the first position point that is the first position point in the row are consecutive positions.
The first processing module 540 is configured to, when it is determined that the last position point and the first position point that is the first position point with the highest ranking are consecutive positions, take, as the target message sequence piece, a message sequence piece in which position information corresponding to the first position point with the highest ranking is located.
According to the embodiment of the disclosure, the message sequence segment corresponding to the first position point with the last position point being the first position point with the continuous position point, where the position information is located, is used as the target sequence segment, so that the defect that the processed message corresponding to the processed message cannot be fed back according to the position order in the existing multithreading message processing mode can be overcome, and the accuracy of sequential submitting of the position information can be further improved.
Fig. 5C schematically illustrates a block diagram of an information handling system according to another embodiment of the present disclosure.
As shown in fig. 5C, the information handling system 400 may further include a second processing module 610, wherein:
The second processing module 610 is configured to select, according to a preset clock period or when the number of location information in the message sequence reaches a preset value, a target message sequence segment that satisfies the continuity requirement in location with a message sequence segment submitted before from at least one message sequence segment included in the message sequence, and submit the target message sequence segment.
According to the embodiment of the disclosure, when the number of the bit information in the message sequence reaches the preset value according to the preset clock period, the operation of submitting the bit information is triggered, so that the operation of submitting the bit information is delayed from the message processing, each thread performs its own job, the separation of the multi-thread message processing and the operation of submitting the bit information is realized, namely, the business processing and the asynchronous processing of the bit submitting are realized, the processing capacity can be improved, and the integrity of the message can be ensured.
Fig. 5D schematically illustrates a block diagram of an information handling system according to another embodiment of the present disclosure.
As shown in fig. 5D, the information processing system 400 may further include a receiving module 710, a classifying module 720, and a third processing module 730, wherein:
the receiving module 710 is configured to receive a message corresponding to each bit point information.
The classification module 720 is configured to perform classification processing on the message corresponding to each bit point information.
The third processing module 730 is configured to allocate messages of different categories to different threads for message processing according to the classification result.
According to the embodiment of the disclosure, the messages of the same class are distributed to the same thread for processing, and the messages of different classes are distributed to different threads for processing, so that the messages of the same class can be ensured to be processed in sequence, and the real intention of a user is met.
Fig. 5E schematically illustrates a block diagram of an information handling system according to another embodiment of the present disclosure.
As shown in fig. 5E, the information handling system 400 may further include a fourth processing module 810, wherein:
The fourth processing module 810 is configured to store, in a message sequence according to a preset ordering logic, the corresponding location information of the message in the message processing process of each thread on the corresponding class of message if the message processing is successful.
According to the embodiment of the disclosure, the site information corresponding to the successfully processed message is stored in the message sequence according to the preset ordering logic, so that a basis can be provided for subsequent submitting of the site information.
Fig. 5F schematically illustrates a block diagram of an information handling system according to another embodiment of the present disclosure.
As shown in fig. 5F, the information processing system 400 may further include a fifth processing module 910, wherein:
The fifth processing module 910 is configured to send, in a message processing process of each thread on a corresponding type of message, a message reacquiring request to request the message provider to provide each message corresponding to each position point located after the last position point represented by the position point information located at the last position in the message sequence fragment submitted before, and clear all position point information stored in the message sequence if the message processing fails.
By the embodiment of the disclosure, the accuracy of sequential submission of the site information can be further ensured by sending a message reacquiring request to the message provider and clearing all the site information stored in the message sequence.
It is understood that the obtaining module 410, the selecting module 420, the submitting module 430, the first determining module 510, the second determining module 520, the judging module 530, the first processing module 540, the second processing module 610, the receiving module 710, the classifying module 720, the third processing module 730, the fourth processing module 810, the fifth processing module 910, the first determining unit 421, the second determining unit 422, the selecting unit 423, and the processing unit 424 may be combined in one module/unit to be implemented, or any one of the modules/units may be split into a plurality of modules/units. Or at least some of the functionality of one or more of the modules/units may be combined with, and implemented in, at least some of the functionality of other modules/units. According to embodiments of the invention, at least one of the acquisition module 410, the selection module 420, the submission module 430, the first determination module 510, the second determination module 520, the determination module 530, the first processing module 540, the second processing module 610, the receiving module 710, the classification module 720, the third processing module 730, the fourth processing module 810, the fifth processing module 910, the first determination unit 421, the second determination unit 422, the selection unit 423, and the processing unit 424 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or in any other reasonable manner of integrating or packaging the circuitry, such as hardware or firmware, or in a suitable combination of software, hardware and firmware implementations. Or at least one of the acquisition module 410, the selection module 420, the submission module 430, the first determination module 510, the second determination module 520, the judgment module 530, the first processing module 540, the second processing module 610, the reception module 710, the classification module 720, the third processing module 730, the fourth processing module 810, the fifth processing module 910, the first determination unit 421, the second determination unit 422, the selection unit 423, and the processing unit 424 may be at least partially implemented as a computer program module/unit, which when executed by a computer, may perform the functions of the respective module/unit.
Another aspect of the present disclosure provides a computer system comprising: one or more processors; a computer readable storage medium storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the information processing method of any of the above.
Fig. 6 schematically illustrates a block diagram of a computer system suitable for implementing an information processing method according to an embodiment of the disclosure. The computer system illustrated in fig. 6 is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 6, a computer system 1000 according to an embodiment of the present disclosure includes a processor 1001 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. The processor 1001 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 1001 may also include on-board memory for caching purposes. The processor 1001 may include a single processing unit or a plurality of processing units for performing different actions of the method flows according to the embodiments of the present disclosure described with reference to fig. 2, 3A to 3D.
In the RAM 1003, various programs and data required for the operation of the computer system 1000 are stored. The processor 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. The processor 1001 performs various operations described above with reference to fig. 2, 3A to 3D by executing programs in the ROM 1002 and/or the RAM 1003. Note that the program may be stored in one or more memories other than the ROM 1002 and the RAM 1003. The processor 1001 may also perform various operations described above with reference to fig. 2, 3A-3D by executing programs stored in the one or more memories.
According to embodiments of the present disclosure, computer system 1000 may also include an input/output (I/O) interface 1005, with input/output (I/O) interface 1005 also being connected to bus 1004. Computer system 1000 may also include one or more of the following components connected to I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in the drive 1010, so that a computer program read out therefrom is installed as needed in the storage section 1008.
According to embodiments of the present disclosure, the method described above with reference to the flowcharts may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 1001. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
It should be noted that the computer readable medium shown in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing. According to embodiments of the present disclosure, the computer-readable medium may include the ROM 1002 and/or the RAM 1003 described above and/or one or more memories other than the ROM 1002 and the RAM 1003.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As another aspect, the present disclosure also provides a computer-readable medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement the information processing method according to any one of the above. The computer-readable medium may be contained in the apparatus described in the above embodiment; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to perform: obtaining a message sequence formed by sequencing the site information according to a preset sequencing logic, wherein the messages corresponding to the site information in the message sequence comprise messages processed through different threads, the message sequence comprises at least one message sequence segment, and the site information in each message sequence segment is continuously arranged according to the preset sequencing logic; selecting a target message sequence segment meeting the continuity requirement in the position of the submitted message sequence segment from at least one message sequence segment contained in the message sequence; submitting the target message sequence segments.
The embodiments of the present disclosure are described above. These examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (14)

1. An information processing method, comprising:
Acquiring a message sequence formed by sequencing site information according to preset sequencing logic, wherein messages corresponding to the site information in the message sequence comprise messages processed through different threads, the message sequence comprises at least one message sequence segment, and the site information in each message sequence segment is continuously arranged according to the preset sequencing logic;
Selecting a target message sequence segment from the at least one message sequence segment contained in the message sequence, wherein the target message sequence segment meets the continuity requirement in a position with a message sequence segment submitted before; and
Submitting the target message sequence segment;
The method further comprises the steps of: triggering the operation of submitting site information according to a preset clock period or when the number of site information in the message sequence reaches a preset value, selecting a target message sequence segment meeting the continuity requirement in site with the message sequence segment submitted before from at least one message sequence segment contained in the message sequence, and submitting the target message sequence segment, wherein the site information is the site information corresponding to the message successfully processed through different threads.
2. The method of claim 1, wherein selecting a target message sequence segment from the at least one message sequence segment contained in the message sequence that satisfies a continuity requirement in place with a previously submitted message sequence segment comprises:
Determining, for the at least one message sequence segment, position information in which each message sequence segment is at the first position;
Determining a first position point represented by the first position point information in each message sequence segment based on the determined position point information;
selecting the first position point with the forefront ranking from all the determined first position points; and
And taking the message sequence segment in which the position information corresponding to the first position point with the forefront position is positioned as the target message sequence segment.
3. The method of claim 2, wherein the method further comprises:
before a message sequence segment in which position information corresponding to the first position point with the forefront position is located is used as the target message sequence segment, position information in the last position in the previously submitted message sequence segment is determined;
Determining the last position point represented by the last position point information;
Judging whether the last position point and the first position point which is arranged at the forefront are continuous positions or not; and
If yes, the message sequence segment where the position information corresponding to the first position point with the forefront position is located is used as the target message sequence segment.
4. The method of claim 1, wherein each location information corresponds to a message, the method further comprising:
receiving information corresponding to each bit point information;
classifying the information corresponding to each bit point information; and
And distributing the messages of different categories to different threads for message processing according to the classification processing result.
5. The method of claim 4, wherein the method further comprises:
And in the process of processing the message of the corresponding class by each thread, if the message is processed successfully, storing the corresponding site information into the message sequence according to the preset ordering logic.
6. The method of claim 4, wherein the method further comprises:
And in the process of processing the message of the corresponding class by each thread, if the message processing fails, sending a message reacquiring request to request a message provider to provide each message corresponding to each position point after the last position point represented by the position point information at the last position in the message sequence fragment submitted before, and clearing all the position point information stored in the message sequence.
7. An information processing system, comprising:
The information processing device comprises an acquisition module and a processing module, wherein the acquisition module is used for acquiring a message sequence formed by sequencing site information according to preset sequencing logic, wherein messages corresponding to the site information in the message sequence comprise messages processed through different threads, the message sequence comprises at least one message sequence segment, and the site information in each message sequence segment is continuously arranged according to the preset sequencing logic;
A selecting module, configured to select, from the at least one message sequence segment included in the message sequence, a target message sequence segment that satisfies a continuity requirement in a location with a message sequence segment that has been submitted before; and
A submitting module, configured to submit the target message sequence segment;
The system is further used for triggering the operation of submitting site information according to a preset clock period or when the number of site information in the message sequence reaches a preset value, selecting a target message sequence segment meeting the continuity requirement on sites with the previously submitted message sequence segment from at least one message sequence segment contained in the message sequence, and submitting the target message sequence segment, wherein the site information is the site information corresponding to the message successfully processed through different threads.
8. The system of claim 7, wherein the selection module comprises:
A first determining unit, configured to determine, for the at least one message sequence segment, location information in which each message sequence segment is located at the first position;
The second determining unit is used for determining a first position point represented by the position point information at the first position in each message sequence segment based on the determined position point information;
the selection unit is used for selecting the head position point with the forefront ranking from all the determined head position points; and
And the processing unit is used for taking the message sequence segment in which the position information corresponding to the first position point with the forefront position is positioned as the target message sequence segment.
9. The system of claim 8, wherein the system further comprises:
A first determining module, configured to determine, before using, as the target message sequence segment, a message sequence segment in which position information corresponding to the first position point with the highest ranking position is located, position information in the last position in the previously submitted message sequence segment;
the second determining module is used for determining the last position point represented by the last position point information;
the judging module is used for judging whether the last position point and the first position point which is arranged at the forefront are continuous positions or not; and
And the first processing module is used for taking a message sequence segment in which the site information corresponding to the first position point with the forefront position point is located as the target message sequence segment under the condition that the last position point and the first position point with the forefront position point are judged to be continuous positions.
10. The system of claim 7, wherein each location information corresponds to a message, the system further comprising:
the receiving module is used for receiving the information corresponding to each bit point information;
The classification module is used for classifying the messages corresponding to the position information; and
And the third processing module is used for distributing the messages of different categories to different threads for message processing according to the classification processing result.
11. The system of claim 10, wherein the system further comprises:
And the fourth processing module is used for storing the corresponding site information into the message sequence according to the preset ordering logic if the message processing is successful in the process of processing the message of the corresponding class by each thread.
12. The system of claim 10, wherein the system further comprises:
and a fifth processing module, configured to send a message reacquiring request to request the message provider to provide each message corresponding to each position point located after the last position point indicated by the position point information located at the last position in the previously submitted message sequence segment, and clear all the position point information stored in the message sequence, when the message processing fails in the process of processing the message of the corresponding type by each thread.
13. A computer system, comprising:
one or more processors;
a computer readable storage medium storing one or more programs,
Wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the information processing method of any of claims 1 to 6.
14. A computer-readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to implement the information processing method of any of claims 1 to 6.
CN201810190114.5A 2018-03-08 2018-03-08 Information processing method and system Active CN110245026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810190114.5A CN110245026B (en) 2018-03-08 2018-03-08 Information processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810190114.5A CN110245026B (en) 2018-03-08 2018-03-08 Information processing method and system

Publications (2)

Publication Number Publication Date
CN110245026A CN110245026A (en) 2019-09-17
CN110245026B true CN110245026B (en) 2024-05-17

Family

ID=67882049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810190114.5A Active CN110245026B (en) 2018-03-08 2018-03-08 Information processing method and system

Country Status (1)

Country Link
CN (1) CN110245026B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239000A (en) * 2013-06-07 2014-12-24 埃森哲环球服务有限公司 Computer system, computer-implemented method and computer program product for sequencing incoming messages for processing at an application
CN107656825A (en) * 2017-09-01 2018-02-02 上海艾融软件股份有限公司 Message treatment method, apparatus and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2516852A (en) * 2013-08-01 2015-02-11 Ibm Consuming ordered streams of messages in a message oriented middleware
US9727625B2 (en) * 2014-01-16 2017-08-08 International Business Machines Corporation Parallel transaction messages for database replication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239000A (en) * 2013-06-07 2014-12-24 埃森哲环球服务有限公司 Computer system, computer-implemented method and computer program product for sequencing incoming messages for processing at an application
CN107656825A (en) * 2017-09-01 2018-02-02 上海艾融软件股份有限公司 Message treatment method, apparatus and system

Also Published As

Publication number Publication date
CN110245026A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
US10645194B2 (en) De-duplicating remote procedure calls
CN109033814B (en) Intelligent contract triggering method, device, equipment and storage medium
CN110795479A (en) Method and device for distributed ETL scheduling based on data
CN104796449A (en) Content delivery method, device and equipment
CN110766348B (en) Method and device for combining goods picking tasks
CN111125107A (en) Data processing method, device, electronic equipment and medium
CN110673959A (en) System, method and apparatus for processing tasks
CN109242320B (en) Order allocation method, device, server and storage medium
CN112597126A (en) Data migration method and device
CN115170321A (en) Method and device for processing batch transaction data
US20140129598A1 (en) Dynamic management of log persistence
CN110635961B (en) Pressure measurement method, device and system of server
CN111062572A (en) Task allocation method and device
CN113495825A (en) Line alarm processing method and device, electronic equipment and readable storage medium
CN113132400A (en) Business processing method, device, computer system and storage medium
CN110245026B (en) Information processing method and system
CN112667368A (en) Task data processing method and device
CN109976902B (en) Task processing method, system, electronic device and computer readable medium
CN116302271A (en) Page display method and device and electronic equipment
CN112948138A (en) Method and device for processing message
US20170300356A1 (en) Fine-grain synchronization in data-parallel jobs
CN114647499A (en) Asynchronous job task concurrency control method and device, electronic equipment and storage medium
CN111767351B (en) Method and device for determining parking spot of transfer robot
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium
CN115174588B (en) Bandwidth control method, device, apparatus, storage medium and program product

Legal Events

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