Message consumption method and device based on message queue, and equipment
The invention discloses a message consumption method and device based on a message queue, and equipment, and belongs to the field of computer data communication. The message consumption method comprises the following steps: writing a message into a corresponding writing position in a message file, t...
Saved in:
Main Authors | , , , , , , , , , , , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
18.08.2020
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses a message consumption method and device based on a message queue, and equipment, and belongs to the field of computer data communication. The message consumption method comprises the following steps: writing a message into a corresponding writing position in a message file, the message being generated by a producer program, the writing position being a writing position determined in n message files according to a cyclic writing sequence, and n being a positive integer; obtaining a current reading position corresponding to the consumer program in the message files, wherein the current reading position is a reading position determined in the n message files according to a cyclic reading sequence; in response to the fact that the current writing position coincides withthe current reading position, updating the current reading position to be a target reading position, wherein the target reading position is a reading position located behind the current reading position in the writing direct |
---|---|
Bibliography: | Application Number: CN201911417643 |