Message processing method and device, and electronic device
An information processing method and a message processing technology, which are applied in the field of message processing methods and devices and electronic equipment, and can solve problems such as user economic loss, repeated consumption, and increased system cost.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0093] like Figure 4 As shown, it is a schematic flow chart of the message processing method in Embodiment 1 of the present invention. Embodiment 1 can correspond to an application scenario, that is, a scenario where the consumer consumes messages in the message queue and broadcasts after forming consumption progress information. , the execution body of this method can be figure 2 the consumer in. like Figure 4 As shown, the method includes the following steps:
[0094] S410. Perform a consumption operation on the messages in the first message queue to be processed, and form consumption progress information of the first message queue.
[0095] During specific implementation, the consumer can obtain the allocated (that is, to-be-processed) message queue by pulling the message queue from the message server, which may be referred to as the first message queue in this embodiment. Of course, it is not limited to the above pulling method, for example, a method of pushing a me...
Embodiment 2
[0108] like Figure 5 As shown, it is a schematic flowchart of the message processing method in Embodiment 2 of the present invention, which may correspond to the application scenario in Embodiment 1. The method includes the following steps:
[0109] S510, monitor consumption progress information broadcast by other consumers in the network.
[0110] Wherein, the consumption progress information may be used to identify the consumption progress of the message in the consumed message queue. In specific implementation, each consumer can monitor the consumption progress information broadcast in the network at any time through the monitoring interface by setting a monitoring interface for monitoring at each consumer. In this embodiment, the message progress information can be Including information such as the ID of the message queue to which it belongs, and the topic of the message.
[0111] S520. Locally save the monitored consumption progress information of other consumers.
[...
Embodiment 3
[0116] like Image 6 As shown, it is a schematic flowchart of the message processing method in Embodiment 2 of the present invention. Embodiment 2 can correspond to an application scenario, that is, a scenario where the consumer consumes the message queue according to the search result of the locally stored consumption progress information. The execution body of this method can be image 3 the consumer in. like Image 6 As shown, the method includes the following steps:
[0117] S610. Before performing a consumption operation on messages in the second message queue to be processed, search whether there is consumption progress information of the second message queue in locally stored consumption progress information. Wherein, the consumption progress information is obtained through broadcasts sent by other consumers in the network, and is used to identify the consumption progress of messages in the consumed message queue.
[0118] In this embodiment, consumers in the networ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


