Message theme processing method and device, computer equipment and readable storage medium
A processing method and topic technology, applied in the processing method of message topics, computer equipment and readable storage media, and the field of devices, can solve problems such as unavailability of topic1 and topic2, unavailability of message topic consumption, and affecting normal consumption of other topics, etc. To achieve the effect of ensuring stable consumption and avoiding consumption
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] Embodiment 1 of the present application provides a method for processing message topics. Through this method, interrupted message topics can be restarted infinitely in a new message group, avoiding repeated restarts in the original working consumption group and other message topics in the same consumption group. , and it can continue to consume from the breakpoint according to the offset in the offset group after restarting, specifically, figure 1 The flow chart of the message subject processing method provided by Embodiment 1 of this application, such as figure 1 As shown, the processing method of the message topic includes the following steps S101 to S103:
[0028] Step S101: Set an offset group corresponding to the message queue and at least two consumption groups.
[0029] Among them, the offset group is used to record the offset of each message topic in the message queue, and the consumption group includes several threads, which are used to consume the message top...
Embodiment 2
[0092] Corresponding to Embodiment 1 above, Embodiment 2 of the present application provides a device for processing message topics. For corresponding technical features and corresponding technical effects, refer to Embodiment 1 above, which will not be repeated here. figure 2 The block diagram of the device for processing the message subject provided by Embodiment 2 of this application, such as figure 2 As shown, the device includes: a first setting module 201 , a first distribution module 202 and a second distribution module 203 .
[0093] The first setting module 201 is configured to set an offset group corresponding to a message queue and at least two consumption groups, wherein the offset group is used to record the offset of each message topic in the message queue, and the The consumption group includes several threads for consuming the message topic and updating the offset; the first allocation module 202 is used for allocating the message topic in the message queue t...
Embodiment 3
[0102] Embodiment 3 also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server or a cabinet server (including an independent server, Or a server cluster composed of multiple servers), etc. Such as image 3 As shown, the computer device 01 in this embodiment at least includes but is not limited to: a memory 012 and a processor 011 that can communicate with each other through a system bus, such as image 3 shown. It should be pointed out that, image 3 Only the computer device 01 is shown with components memory 012 and processor 011, but it should be understood that implementing all of the illustrated components is not a requirement and that more or fewer components may instead be implemented.
[0103] In this embodiment, the memory 012 (that is, a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memo...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


