CN109726024A - A kind of message delay delivering method, device and equipment - Google Patents

A kind of message delay delivering method, device and equipment Download PDF

Info

Publication number
CN109726024A
CN109726024A CN201811626700.6A CN201811626700A CN109726024A CN 109726024 A CN109726024 A CN 109726024A CN 201811626700 A CN201811626700 A CN 201811626700A CN 109726024 A CN109726024 A CN 109726024A
Authority
CN
China
Prior art keywords
message
time
delivery
index information
delivery section
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.)
Pending
Application number
CN201811626700.6A
Other languages
Chinese (zh)
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 IQIYI Science and Technology Co Ltd
Original Assignee
Beijing IQIYI Science and 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 IQIYI Science and Technology Co Ltd filed Critical Beijing IQIYI Science and Technology Co Ltd
Priority to CN201811626700.6A priority Critical patent/CN109726024A/en
Publication of CN109726024A publication Critical patent/CN109726024A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a kind of message delay delivering method, device and equipment, wherein this method may include: each index information for obtaining each message for reaching target time of delivery;Each index information is pre-loaded into the memory at messaging service end;Target time of delivery includes any point-in-time;For each message, the corresponding index information of the message is sent to the consumption queue at information consumption end, so that information consumption end obtains the message from the Commit Log at messaging service end according to index information, and message is consumed.Message delay delivering method, device and the equipment provided through the embodiment of the present invention can extend the application range of delay delivery process.

Description

A kind of message delay delivering method, device and equipment
Technical field
The present invention relates to Internet technical fields, more particularly to a kind of message delay delivering method, device and equipment.
Background technique
Message system is because of its traditional functional characteristics: the asynchronous decoupling called between system, the complexity for lowering system, flow Peak load shifting, stretch convenient for business resiliency, be easily achieved final consistency system, avoid distributed transaction to the shadow of performance It rings, support P2P (point-to-point calling) and pub/sub (publish/subscribe) mode, reduction RPC (Remote Procedure Call Protocol, remote procedure call protocol) multiple calling) etc..It is widely used in Internet enterprises, respectively at present Class operation system has its figure.In addition with the rapid growth of business, enterprises need the synchronous transfer of mass data, The application such as streaming computing requires highly stable efficient transmission channel and gives to support, message system wherein act as it is important Role.
And in the business of exploitation, certain business scenarios need message to regularly send or be delayed transmission, and the short message such as Fetion is fixed When send demand.At this time, it is necessary to which message system carries out delay delivery to message.
In existing message delay delivery process, the delay dimension of limited fixation is only supported, can not accurately meet has The latency requirement except a constant time lag dimension is limited, so that making application range limited.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of message delay delivering method, device and equipment, to extend delay The application range of delivery process.Specific technical solution is as follows:
In a first aspect, being applied to messaging service end, packet the embodiment of the invention provides a kind of message delay delivering method It includes:
Obtain each index information for reaching each message of target time of delivery;Each index information be pre-loaded to In the memory at the messaging service end;The target time of delivery includes any point-in-time;
For each message, the corresponding index information of the message is sent to the consumption queue at information consumption end, with The information consumption end is set to obtain the message from the Commit Log at the messaging service end according to the index information, and right The message is consumed.
Optionally, before each index information of each message for obtaining and reaching target time of delivery, the side Method further include:
For each message, which is saved to the Commit Log, and the index information of the message is protected Deposit Block file corresponding to time of delivery section, wherein the time of delivery section is the time that the target time of delivery is located at Section.
Optionally, before each index information of each message for obtaining and reaching target time of delivery, the side Method further include:
For each message, which is saved into Block file corresponding to time of delivery section, and will be described in the message Index information saves Block file corresponding to time of delivery section;Wherein, the time of delivery section is the target time of delivery The period being located at.
Optionally, after each index information of each message for obtaining and reaching target time of delivery, the side Method further include:
The message is obtained from the Block file according to the corresponding index information of the message for each message, and Send the message to the Commit Log at the messaging service end.
Optionally, it is described by the index information of the message save to the corresponding Block file of time of delivery section it Afterwards, the method also includes:
When being put at the beginning of reaching the time of delivery section, by the corresponding Block text of the time of delivery section Each index information of each message saved in part is loaded onto the memory at the messaging service end.
Optionally, described that the index information of the message is saved into Block file corresponding to time of delivery section, packet It includes:
The index information of the message is saved to index file, the index file is that the time of delivery section is corresponding The Block file subfile;
Each index by each message saved in the corresponding Block file of the time of delivery section is believed Breath, is loaded onto the memory at the messaging service end, comprising:
The index file including each index information is obtained from the Block file;
The index file is loaded onto the memory at the messaging service end.
Optionally, described by each of each message saved in the corresponding Block file of the time of delivery section A index information is loaded onto after the memory at the messaging service end, the method also includes:
The time of delivery section is divided, the corresponding each time of delivery of the time of delivery section is obtained;
For each time of delivery, the corresponding index information of the time of delivery is saved into chained list corresponding to the time of delivery Slot position;
It is described to obtain each index information for reaching each message of target time of delivery, comprising:
For each message, the corresponding target chained list slot position of the target time of delivery of the message is determined;The target is delivered Time includes in the corresponding each time of delivery of the time of delivery section;
The index information of the message is obtained from the target chained list slot position.
Second aspect, the embodiment of the invention provides a kind of message delay delivery apparatus, are applied to messaging service end, packet It includes:
First obtains module, for obtaining each index information for reaching each message of target time of delivery;Each rope Fuse breath is pre-loaded into the memory at the messaging service end;The target time of delivery includes any point-in-time;
The corresponding index information of the message is sent to message and disappeared by the first sending module for being directed to each message The consumption queue of Fei Duan, so that the information consumption end is according to the index information from the Commit Log at the messaging service end Middle acquisition message, and the message is consumed.
Optionally, described device further include:
First preserving module saves the message to the Commit Log, and for being directed to each message by the message The index information save Block file corresponding to time of delivery section, wherein the time of delivery section is that the target is thrown Pass the period that the time is located at.
Optionally, described device further include:
The message is saved Block text corresponding to time of delivery section for being directed to each message by the second preserving module Part, and the index information of the message is saved into Block file corresponding to time of delivery section;Wherein, the time of delivery Section is the period that the target time of delivery is located at.
Optionally, described device further include:
Second obtains module, for being directed to each message, according to the corresponding index information of the message, from the Block text The message is obtained in part;
Second sending module, for sending the message to the Commit Log at the messaging service end.
Optionally, described device further include:
Loading module, it is when for being put at the beginning of reaching the time of delivery section, the time of delivery section is corresponding The Block file in each index information of each message for saving, be loaded onto the memory at the messaging service end.
Optionally, first preserving module, specifically for saving the index information of the message to index file, The index file is the subfile of the corresponding Block file of the time of delivery section;Alternatively,
Second preserving module, specifically for saving the index information of the message to index file;
The loading module, specifically for obtaining the index including each index information from the Block file File;The index file is loaded onto the memory at the messaging service end.
Optionally, described device further include:
Division module obtains the corresponding each throwing of the time of delivery section for dividing to the time of delivery section Pass the time;
Third preserving module saves the corresponding index information of the time of delivery to this for being directed to each time of delivery The corresponding chained list slot position of time of delivery;
Described first obtains module, is specifically used for being directed to each message, determines that the target time of delivery of the message is corresponding Target chained list slot position;The target time of delivery includes in the corresponding each time of delivery of the time of delivery section;From described The index information of the message is obtained in target chained list slot position.
The third aspect, the embodiment of the invention provides a kind of message delay delivery device, including processor, communication interface, Memory and communication bus, wherein the processor, the communication interface, the memory are completed by the communication bus Mutual communication;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, is realized described in above-mentioned first aspect Method and step.
At the another aspect that the present invention is implemented, a kind of computer readable storage medium is additionally provided, it is described computer-readable Instruction is stored in storage medium, when run on a computer, so that computer executes side described in above-mentioned first aspect Method step.
At the another aspect that the present invention is implemented, the embodiment of the invention also provides a kind of, and the computer program comprising instruction is produced Product, when run on a computer, so that computer executes method and step described in above-mentioned first aspect.
Message delay delivering method, device and equipment provided in an embodiment of the present invention, it is available reach target deliver when Between each message each index information;Each index information is pre-loaded into the memory at messaging service end;Target is thrown Passing the time includes any point-in-time;For each message, the corresponding index information of the message is sent to disappearing for information consumption end Take queue, so that information consumption end obtains the message from the Commit Log at messaging service end according to index information, and offsets Breath is consumed.In the embodiment of the present invention, the delay that the message that time of delivery is any point-in-time may be implemented is delivered, Ke Yiman The latency requirement of foot arbitrarily delay dimension, the application range of extension delay delivery process, and improve the flexible of message delay delivery Property.Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above advantage simultaneously.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is the flow chart of delay delivering method provided in an embodiment of the present invention;
Fig. 2 is the flow chart handled in the embodiment of the present invention index information;
Fig. 3 is the flow chart that index information is obtained in the embodiment of the present invention;
Fig. 4 (a) is a kind of flow diagram of specific embodiment provided in an embodiment of the present invention;
Fig. 4 (b) is the flow diagram of another specific embodiment provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of message delay delivery apparatus provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of message delay delivery device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
In the business of exploitation, certain business scenarios need message to regularly send or be delayed transmission, such as the short message timing of Fetion Transmission demand.At this time, it is necessary to which message system carries out delay delivery to message.
In existing message delay delivery process, the delay dimension of limited fixation is only supported, can not accurately meet has The latency requirement except a constant time lag dimension is limited, so that making application range limited.
In addition, messaging service end receives the message that the message manufacturing side is sent, and presses in existing message delay delivery process According to message to delay time, message is saved into corresponding message queue, and message queue is stored in messaging service end Commit Log in.
Because that storage message queue is the Commit Log for storing message body in messaging service end, if Commit Log By excessive occupancy, the performance at messaging service end will affect.Therefore, in the prior art, in order to avoid to message server-side shadow Sound is excessive, usually establishes limited message queue, that is, distinguishes limited message dimension.The corresponding message dimension of one message The corresponding time of delivery of degree, i.e. message queue, so doing, it is possible to cause the message different to delay time, by according to Same time of delivery is delivered.It so will affect the accuracy of delivery.
In order on the basis of guaranteeing messaging service end performance, extend the application range of delay delivery process, and improves and prolong When the accuracy delivered, the embodiment of the invention provides a kind of message delay delivering methods.
Message delay delivering method provided in an embodiment of the present invention is described in detail below.
Message delay delivering method provided in an embodiment of the present invention can be applied to messaging service end, such as Broker.
The embodiment of the invention provides a kind of message delay delivering methods, as shown in Figure 1, may include:
S101 obtains each index information for reaching each message of target time of delivery.
Target time of delivery includes any point-in-time.
Each index information is pre-loaded into the memory at messaging service end.
Block file is logic storage concept, it can be understood as the file in messaging service end is in messaging service end Different from the part of Commit Log, wherein Commit Log is for storing message body.
Block file is corresponding with time of delivery section, i.e. the corresponding Block file of a time of delivery section.It can also manage Solution is every the time of delivery section one Block file of generation.Time of delivery is saved in the Block file is located at the time of delivery The corresponding index information of message in section.
Index information is used for the storage location etc. of description messages.
Time of delivery is the time that message is delivered.As messaging service termination receives the message of message manufacturing side transmission When, not directly by the message dilivery, but redelivered when reaching delay time of delivery.Wherein, it reaches and delivers in current time When the time, which can be referred to as to target time of delivery.
The corresponding index information of the message is sent to the consumption queue at information consumption end for each message by S102, with So that information consumption end is obtained the message from the Commit Log at messaging service end according to index information, and disappears to message Take.
In a kind of achievable mode of the embodiment of the present invention when receiving message, message is stored in messaging service end In Commit Log.In the achievable mode of another kind, when receiving message, message is saved corresponding to time of delivery section Block file, wherein time of delivery section is the period that target time of delivery is located at.And in the index information for getting message Afterwards, message is obtained from the Block file according to index information, and sends a message to Commit Log.
Commit Log can be the file for storing message body.Wherein, make when storing message in Commit Log With the mode of sequence addition, according to the chronological order for receiving message, successively append (addition) arrives end of file.
Consume Queue (consumption queue): the distributed Queue (queue) of consumer's maintenance, Topic (channel) are patrolled It is divided into many Queue on volume.Each Queue can only be by a consumer spending.The newest offset of message can be recorded in Queue Amount and the newest progress of consumption etc..
The embodiment of the present invention can be applied in message system RocketMQ.The mistake that message is consumed in RocketMQ Journey can be information consumption end by the information in self-consumption queue, obtains and disappears from the Commit Log at messaging service end Breath, and message is consumed.
In this way, in order to which information consumption end may be implemented process of consumption, in the embodiment of the present invention, for each message, by this The corresponding index information of message is sent to the consumption queue at information consumption end.In a kind of optional embodiment of the present invention, message is protected There are in the Commit Log at information consumption end.In this way, working as the consumption queue at information consumption end, the corresponding index of message is got When information, message can be obtained from Commit Log according to index information, completes the process of consumption to message.And another kind can It, can be first according to the corresponding index information of message from Block file when message is saved to Block file in the embodiment of choosing Middle acquisition message, and send the message to Commit Log.In this way, working as the consumption queue at information consumption end, gets and disappear When ceasing corresponding index information, message can be obtained from Commit Log according to index information, completes the post-consumer to message Journey.
Specifically, information consumption end obtains message, and the process consumed to message is referred to existing mode, here Just repeat no more.
In the embodiment of the present invention, the delay that the message that time of delivery is any point-in-time may be implemented is delivered, and can satisfy The latency requirement of any delay dimension, the application range of extension delay delivery process, and improve the flexibility that message delay is delivered.
The accurate delivery to message can be realized according to the different delayed time demand of different messages simultaneously, improve delay and deliver Accuracy.
In a kind of optional embodiment of the present invention, in step S101: obtaining each message for reaching target time of delivery Before each index information, can also include:
For each message, which is saved to Commit Log, and the index information of the message is saved to delivery Period corresponding Block file.
Wherein, time of delivery section is the period that target time of delivery is located at.
I.e. message body itself is directly stored in Commit Log, but is not sent in Consume Queue.I.e. message is sent out It is sent to Broker, consumer does not get message.The delay that message can be thus achieved is delivered.
In the embodiment of the present invention, when saving message to Commit Log, the storage location of message can be recorded simultaneously, Generate corresponding index information.And index information is saved into corresponding Block file.
Specifically, index information is saved to corresponding Block file and may include:
A1 determines the target time of delivery of the message when receiving the message of message manufacturing side transmission.
In a kind of achievable mode, the message manufacturing side sends the message pair when sending message to messaging service end The time to be delayed answered delivers as the message needs to be delayed 2 seconds, then the message corresponding time to be delayed is 2 seconds.Messaging service After termination receives the time to be delayed, the corresponding time of delivery of the message can be determined, as current time is in conjunction with current time 40 divide 30 seconds when 15, and the message corresponding time to be delayed is 2 seconds, then when can determine that the corresponding time of delivery of the message is 15 40 points 32 seconds.
In the achievable mode of another kind, the message manufacturing side is when sending message, when can send the delivery of the message simultaneously Between.In this way, messaging service end can directly receive the corresponding time of delivery of the message.
A2 determines the time of delivery section that target time of delivery is located at.
A3 saves the corresponding index information of the message to Block file.
The corresponding index information of message is saved by Block file in the embodiment of the present invention.
Block file is corresponding with time of delivery section, i.e. the corresponding Block file of a time of delivery section.It can also manage Solution is every the time of delivery section one Block file of generation.Time of delivery is saved in the Block file is located at the time of delivery The corresponding index information of message in section.
Time of delivery section can determine according to actual needs.It such as can be 30 minutes, 1 hour, 2 hours.The present invention one In the achievable mode of kind, determine that time of delivery section is 1 hour.That is an a hour corresponding Block file.Such as by time of delivery At 11 00 divide 00 second to 11 when 59 message divided 59 seconds save to Block file 1, while the corresponding index information of message being protected Deposit to Block file 1, by time of delivery at 12 00 divide 00 second to 12 when 59 message divided 59 seconds save to Block file 2, The corresponding index information of message is saved to Block file 2 simultaneously, etc..
When determining the corresponding target time of delivery of the message, determine which the corresponding index information of the message is saved in A Block file determines the time of delivery section that target time of delivery is located at.Such as when determining that the corresponding time of delivery of the message is 30 divide 01 second when 11, and the corresponding index information of the message is saved to Block file 1.
On the basis of the above embodiments, in a kind of optional embodiment of the present invention, in step S101: acquisition reaches target Before each index information of each message of time of delivery, can also include:
For each message, which is saved into Block file corresponding to time of delivery section, and by the index of the message Information preservation is to the corresponding Block file of time of delivery section.
Wherein, time of delivery section is the period that target time of delivery is located at.
Specifically, for each message, the target time of delivery of the message is determined.Specifically method of determination is referred to The mode for determining target time of delivery in above-described embodiment in step A1, just repeats no more here.
Determine the time of delivery section that target time of delivery is located at.The message is saved into Block corresponding to time of delivery section File, and the index information of the message is saved to Block file.
Message is saved by Block file in the embodiment of the present invention.I.e. when receiving the message of message manufacturing side transmission, Message is cached into Block file.
Block file is corresponding with time of delivery section, i.e. the corresponding Block file of a time of delivery section.It can also manage Solution is every the time of delivery section one Block file of generation.Time of delivery is saved in the Block file is located at the time of delivery Message and the corresponding index information of message in section.
When determining the corresponding target time of delivery of the message, determine which Block file is the message is saved in, i.e., Determine the time of delivery section that target time of delivery is located at.Such as 30 divide 01 second when determining that the corresponding time of delivery of the message is 11, The message is saved to Block file 1, while the corresponding index information of the message being saved to Block file 1.
In the embodiment of the present invention, when saving message to Block file, in step S101: acquisition reaches target delivery After each index information of each message of time, further includes:
The message is obtained, and should from Block file according to the corresponding index information of the message for each message Message is sent to the Commit Log at messaging service end.
So that information consumption end can obtain the message according to index information from Commit Log, and to message It is consumed.
In a kind of optional embodiment of the present invention, when being directed to each message, which is saved to Commit Log, and will When the index information of the message saves Block file corresponding to time of delivery section, Ziwen can be established in Block file Part, for specially saving the corresponding index information of message.
Specifically, the index information of the message is saved to index file.Index file is that time of delivery section is corresponding The subfile of Block file.Such as, index file can be the Index file in Block file.Index file it also will be understood that For the private file for recording message repository location.
Simple to understand, Index file saves message meta-data (meta), as index information Index file can also divide again For small segement (block), managed with facilitating.
In the embodiment of the present invention when receiving message, message is saved to the Commit Log at messaging service end, will be disappeared It ceases corresponding index information to save to the Block file at messaging service end, when reaching target time of delivery, obtains to reach and deliver The corresponding index messages of time message, and index information is sent to the consumption queue of consumption terminal.In this way, information consumption end disappears Take queue, message can be obtained from Commit Log according to index information, completes the process of consumption to message.
In an alternative embodiment of the present invention, when being directed to each message, it is right to time of delivery section which is saved The Block file answered, and when the index information of the message is saved to the Block file, son can be established in Block file Message and the corresponding index information of message are retained separately by file.
Specifically, which is saved into Block file corresponding to time of delivery section, may include:
The message is saved to message file.
Message file is the subfile of the corresponding Block file of time of delivery section.Such as, message file can be Block text Log file in part.
It may include: to obtain this from the message file of Block file to disappear in this way, obtaining the message from Block file Breath.
The index information of the message is saved to Block file, may include:
The index information of the message is saved to index file.
Index file is the subfile of the corresponding Block file of time of delivery section.Such as, index file can be Block text Index file in part.Index file is it can be appreciated that record the private file of message repository location.
Simple to understand, Index file saves message meta-data (meta), such as index information;Log file is for saving message Itself.Wherein, log file and Index file can also be further divided into small segement (block), to facilitate management.
In the embodiment of the present invention when receiving message, message is saved to Block file, it is understood that for message into Enter Block file to be cached.In this way, when reaching target time of delivery, for each message for reaching target time of delivery, The message is obtained from Block file according to the index information got;Send the message to the Commit at messaging service end Log, and the corresponding index information of the message is sent to the consumption queue at information consumption end.It so, it is possible to avoid receiving Message is saved in Commit Log when message, the influence to the performance of message server-side.
On the basis of the above embodiments, it in a kind of optional embodiment of the present invention, is protected by the index information of the message It deposits to the corresponding Block file of time of delivery section, can also include:
It is each by being saved in the corresponding Block file of time of delivery section when being put at the beginning of reaching time of delivery section Each index information of a message, is loaded onto the memory at messaging service end.
Time of delivery section is the time range of a time of delivery, and point is the time model at the beginning of time of delivery section Point at the beginning of enclosing.For example, time of delivery section is 1 hour, including time range: when 11 00 divide 00 second to 11 when 59 divide 59 Second, then when can determine 11 00 divide 00 second be the time of delivery section at the beginning of point.
In the embodiment of the present invention, when the corresponding index information of message is in the index file saved into Block file, By each index information of each message saved in the corresponding Block file of time of delivery section, it is loaded onto messaging service end Memory may include:
The index file including each index information is obtained from Block file;Index file is loaded onto messaging service The memory at end.
When putting at the beginning of reaching time of delivery section, the corresponding index file of time of delivery section is obtained, and should Index file is loaded onto the memory at messaging service end.
In the embodiment of the present invention, when putting at the beginning of reaching time of delivery section, it is corresponding only to load time of delivery section Index letter information, without loading messages itself, avoid message number it is more when, can not be at when last moment does not load completion Function realizes subsequent delay delivery process, and the influence of performance is delivered to delay.
On the basis of the above embodiments, in a kind of optional embodiment of the present invention, time of delivery section is corresponding Each index information of each message saved in Block file, is loaded onto after the memory at messaging service end, as shown in Fig. 2, Can also include:
S201 divides time of delivery section, obtains the corresponding each time of delivery of time of delivery section.
In the embodiment of the present invention, when being put at the beginning of reaching time of delivery section, by the corresponding Block of time of delivery section Each index information of each message saved in file after being loaded onto the process of the memory at messaging service end, can will be delivered Period is finely divided, and then according to the time of delivery after subdivision, the corresponding index information of each time of delivery is saved respectively.
Specifically, time of delivery section can be divided according to prefixed time interval.Wherein, prefixed time interval can To determine according to actual needs.In order to can be as accurate as the second, time of delivery section can be divided into using the second as interval.The present invention one In the achievable mode of kind, time of delivery section is 1 hour, and time of delivery section can be divided into 3600 parts, determined every one second One time of delivery.If time of delivery section is 30 minutes, time of delivery section can be divided into 1800 parts, determined every one second One time of delivery.
If time of delivery section includes time range: when 11 00 divide 00 second to 11 when 59 divide 59 seconds, prefixed time interval 1 Second, which is divided are as follows: when 11 00 when dividing 00 second, 11 00 when dividing 01 second, 11 00 divide 02 second ..., 01 divides 00 when 11 Second ..., 11 when 59 divide 59 seconds, 3600 time points.
S202 saves the corresponding index information of the time of delivery corresponding to the time of delivery for each time of delivery Chained list slot position.
After division obtains the corresponding each time of delivery of time of delivery section, it can be determined for each time of delivery corresponding Chained list slot position, and by the index messages for the message that time of delivery is the time of delivery, it saves to the corresponding chained list of the time of delivery In slot position.
Specifically, it can establish the corresponding relationship of time of delivery Yu chained list slot position, and according to the corresponding relationship by each throwing Time corresponding index information is passed to save into corresponding chained list slot position.As shown in table 1 below.
Table 1
S101: each index information for reaching each message of target time of delivery is obtained, as shown in figure 3, may include:
S1011 determines the corresponding target chained list slot position of the target time of delivery of the message for each message.
Target time of delivery includes in the corresponding each time of delivery of time of delivery section.
S1012 obtains the index information of the message from target chained list slot position.
After determining the message corresponding target time of delivery, it can be closed according to time of delivery is corresponding with chained list slot position System, determines the corresponding target chained list slot position of the target time of delivery.Such as determined according to upper table 1.Such as determine the corresponding target of message Time of delivery is time of delivery 1, then can determine corresponding chained list slot position 1.Disappear in this way, this can be obtained from chained list slot position 1 The index information of breath.
The embodiment of the invention also provides a specific embodiments, as shown in Fig. 4 (a).
B1, the producer produces message by the message manufacturing side, and sends a message to messaging service end, such as Broker.
B2 is saved.
After messaging service termination receives the message, which is saved to Commit Log.And in the embodiment of the present invention, When message is saved to Commit Log, the storage location of message can be recorded simultaneously, generates corresponding index information.And by rope Draw information preservation into corresponding Block file.
B21 determines the time of delivery of the message after messaging service termination receives message.
Specifically, the message manufacturing side is when sending message to messaging service end, while it is corresponding to be delayed to send the message Time delivers as the message needs to be delayed 2 seconds, then the message corresponding time to be delayed is 2 seconds.Messaging service termination receives this After time to be delayed, the corresponding time of delivery of the message can be determined in conjunction with current time, 40 divide 30 when such as current time being 15 Second, the message corresponding time to be delayed is 2 seconds, then can determine and 40 divide 32 seconds when the corresponding time of delivery of the message is 15. Alternatively, the message manufacturing side when sending message, can send the time of delivery of the message simultaneously.In this way, messaging service end can be with Directly receive the corresponding time of delivery of the message.
B22 determines the corresponding time of delivery section of the time of delivery, further determines that the corresponding Block of the time of delivery section File saves the corresponding index of the message to the Block file.
Wherein, which is used to illustrate the storage location of the message.It can make message according to the time of delivery of message Index information enter corresponding Block file.
An a hour corresponding Block file in the embodiment of the present invention, i.e., it can be appreciated that time of delivery Duan Weiyi A hour.A title can be determined for each Block file, to distinguish over other Block files.Such as, 2018041812, 2018041813,…,2018041819.Specifically, the index information of all message of the time of delivery at 12 can be saved To Block file: in 2018041812, i.e., by time of delivery at 12 00 divide 00 second to 12 when 59 divide 59 seconds message index Information preservation is to Block file: in 2018041812.So realize, according to time of delivery by the index information of message save to Corresponding Block file.
While saving message to Commit Log, the corresponding index information of the message is saved to Block file. The index messages are used for the storage location of description messages, when so as to need to obtain the message, are addressed according to the index information, to look into It looks for and obtains the message.Specifically, a subfile can be specially divided in Block file, indexed as Index file saves Information.
B3 loads index information.
Point makes at the beginning of current time is time of delivery section, from the corresponding Block file of the time of delivery section Each message corresponding index information of the time of delivery in the time of delivery section is obtained, and will be each in the time of delivery section The corresponding index information of message is loaded onto memory, in order to operate.
Wherein it is possible to calculate chained list slot position.
Specifically, the concept of time wheel (TimeWheel) can be introduced.Time wheel can be understood as temporal logic concept. Time of delivery section is 1 hour, and time wheel can be divided into 3600 slot positions, each slot position (Tick) is 1 second corresponding.Simple reason Solution, the dynamic slot position of time rotation indicate that it's one second has past the time.Time rotation moves the time for indicating different to different slot positions Point.
The corresponding chained list slot position of index information that each message in current time of delivery can be calculated corresponds to time wheel Which slot position.And the corresponding relationship of index information and chained list slot position can be saved to chained list, and the chained list is sent to consumption Queue, so as to which the index information in the chained list slot position can be directly acquired according to chained list slot position.
B3, when reaching target time of delivery, messaging service end can obtain time of delivery from memory as target throwing Pass the corresponding index information of each message of time.And it is directed to each message, the corresponding index information of the message is sent to and is disappeared Cease the consumption queue of consumption terminal.
So that information consumption end obtains the message according to index information from Commit Log, and carries out to message Consumption realizes that consumer passes through consumption of the information consumption end to message.
In the embodiment of the present invention, the delay message of any time can be supported, i.e. support message delay any time is delivered. Such as can be applied to scene: member's business releases a certain new equity, and 0:00 is formally effective.Correlation may be needed in existing mode Department, neighbouring morning go to produce again.Business department even can shift to an earlier date week age in the embodiment of the present invention, and equity content is mentioned In preceding transmission message queue MQ.After time of delivery has arrived, equity content can be automatically pushed on each end by MQ.Realize business To the delay of any time of message in.
And in the embodiment of the present invention, when receiving message, message is stored in Commit Log, in this way, reaching When being put at the beginning of time of delivery section, only loads the corresponding index letter information of time of delivery section and avoided without loading messages When message number is more, subsequent delay delivery process can not be successfully realized when last moment does not load completion, delay is thrown Pass the influence of performance.The part Index and Consume Queue of Block need to be only operated in the embodiment of the present invention, other are according to disappearing The positive traditional transmission process operation of breath, avoids and saves message in Block, by when message is loaded into memory in Block, one Performance issue caused by Tick can not be sent successfully improves the performance that delay is delivered.
The embodiment of the invention also provides another specific embodiments, as shown in Fig. 4 (b).
C1, the producer produces message by the message manufacturing side, and sends a message to messaging service end, such as Broker.
C2 determines the time of delivery of the message after messaging service termination receives message.
Specifically, the message manufacturing side is when sending message to messaging service end, while it is corresponding to be delayed to send the message Time delivers as the message needs to be delayed 2 seconds, then the message corresponding time to be delayed is 2 seconds.Messaging service termination receives this After time to be delayed, the corresponding time of delivery of the message can be determined in conjunction with current time, 40 divide 30 when such as current time being 15 Second, the message corresponding time to be delayed is 2 seconds, then can determine and 40 divide 32 seconds when the corresponding time of delivery of the message is 15. Alternatively, the message manufacturing side when sending message, can send the time of delivery of the message simultaneously.In this way, messaging service end can be with Directly receive the corresponding time of delivery of the message.
C3 determines the corresponding time of delivery section of the time of delivery, further determines that the corresponding Block text of the time of delivery section Part, and the message is saved to the Block file, while the corresponding index information of the message being saved to the Block file.
Wherein, which is used to illustrate the storage location of the message.I.e. according to the time of delivery of message make message into Enter corresponding Block file cache.
An a hour corresponding Block file in the embodiment of the present invention, i.e., it can be appreciated that time of delivery Duan Weiyi A hour.A title can be determined for each Block file, to distinguish over other Block files.Such as, 2018041812, 2018041813,…,2018041819.Specifically, all message of the time of delivery at 12 can be saved to Block text Part: in 2018041812, i.e., by time of delivery at 12 00 divide 00 second to 12 when 59 message divided 59 seconds save to Block text Part: in 2018041812.It so realizes, saves message to corresponding Block file according to time of delivery.
While saving message, the corresponding index information of message is saved.The index messages are used for the storage of description messages Position when so as to need to obtain the message, addresses, to search and obtain the message according to the index information.Specifically, Ke Yitong It crosses different subfiles and saves message and index information respectively.As the corresponding Block file of each time of delivery section can wrap Include the Index file and log file for saving message, wherein log file is for storing time of delivery in the time of delivery section Message, Index file is for storing the corresponding index information of message.
C4 loads index information.
The point at the beginning of current time is time of delivery section, then from the corresponding Block file of the time of delivery section Each message corresponding index information of the time of delivery in the time of delivery section is obtained, and will be each in the time of delivery section The corresponding index information of message is loaded onto memory, in order to operate.
Wherein it is possible to calculate chained list slot position.
Specifically, the concept of time wheel (TimeWheel) can be introduced.Time wheel can be understood as temporal logic concept. Time of delivery section is 1 hour, and time wheel can be divided into 3600 slot positions, each slot position (Tick) is 1 second corresponding.Simple reason Solution, the dynamic slot position of time rotation indicate that it's one second has past the time.Time rotation moves the time for indicating different to different slot positions Point.
The corresponding chained list slot position of index information that each message in current time of delivery can be calculated corresponds to time wheel Which slot position.And the corresponding relationship of index information and chained list slot position can be saved to chained list slot position, and the chained list slot position is sent out It send to consumption queue, so as to which the index information in the chained list slot position can be directly acquired according to chained list slot position.
C5, when reaching target time of delivery, messaging service end can obtain time of delivery from memory as target throwing Pass the corresponding index information of each message of time.And it is directed to each message, according to the corresponding index information of the message from Block The message is obtained in file, and sends the message to the Commit Log at messaging service end, and by the corresponding index of the message Information is sent to the consumption queue at information consumption end.
So that information consumption end obtains the message according to index information from Commit Log, and carries out to message Consumption realizes that consumer passes through consumption of the information consumption end to message.
In the embodiment of the present invention, the delay message of any time can be supported, i.e. support message delay any time is delivered. Such as can be applied to scene: member's business releases a certain new equity, and 0:00 is formally effective.Correlation may be needed in existing mode Department, neighbouring morning go to produce again.Business department even can shift to an earlier date week age in the embodiment of the present invention, and equity content is mentioned In preceding transmission message queue MQ.After time of delivery has arrived, equity content can be automatically pushed on each end by MQ.Realize business To the delay of any time of message in.
And save message into Block in the embodiment of the present invention, completely new message storage mode is opened, when message is prolonged When reach after, i.e., after the time of delivery of arrival message, then re-start primary message storage and forwarding, can further protect Demonstrate,prove the performance at messaging service end.
The embodiment of the invention provides a kind of message delay delivery apparatus, are applied to messaging service end, as shown in figure 5, can To include:
First obtains module 501, for obtaining each index information for reaching each message of target time of delivery;It is each Index information is pre-loaded into the memory at messaging service end;Target time of delivery includes any point-in-time;
The corresponding index information of the message is sent to information consumption for being directed to each message by the first sending module 502 The consumption queue at end, so that information consumption end obtains the message from the Commit Log at messaging service end according to index information, And message is consumed.
In the embodiment of the present invention, the delay that the message that time of delivery is any point-in-time may be implemented is delivered, and can satisfy The latency requirement of any delay dimension, the application range of extension delay delivery process, and improve the flexibility that message delay is delivered.
Optionally, the device further include:
First preserving module saves the message to Commit Log, and for being directed to each message by the rope of the message Draw information preservation to the corresponding Block file of time of delivery section, wherein time of delivery section is the time that target time of delivery is located at Section.
Optionally, the device further include:
The message is saved Block text corresponding to time of delivery section for being directed to each message by the second preserving module Part, and the index information of the message is saved into Block file corresponding to time of delivery section;Wherein, time of delivery section is target The period that time of delivery is located at.
Optionally, the device further include:
Second obtains module, for being directed to each message, according to the corresponding index information of the message, from Block file Obtain the message;
Second sending module, for sending the message to the Commit Log at messaging service end.
Optionally, the device further include:
Loading module, when for being put at the beginning of reaching time of delivery section, by the corresponding Block text of time of delivery section Each index information of each message saved in part, is loaded onto the memory at messaging service end.
Optionally, the first preserving module, specifically for saving the index information of the message to index file, index file It is the subfile of the corresponding Block file of time of delivery section;Alternatively,
Second preserving module, specifically for saving the index information of the message to index file;
Loading module, specifically for obtaining the index file including each index information from Block file;It will index text Part is loaded onto the memory at messaging service end.
Optionally, the device further include:
Division module obtains the corresponding each time of delivery of time of delivery section for dividing to time of delivery section;
Third preserving module saves the corresponding index information of the time of delivery to this for being directed to each time of delivery The corresponding chained list slot position of time of delivery;
First obtains module 501, is specifically used for being directed to each message, determines the corresponding mesh of target time of delivery of the message Mark chained list slot position;Target time of delivery includes in the corresponding each time of delivery of time of delivery section;From target chained list slot position Obtain the index information of the message.
It should be noted that message delay delivery apparatus provided in an embodiment of the present invention is delivered using above-mentioned message delay The device of method, then all embodiments of above-mentioned message delay delivering method are suitable for the device, and can reach it is identical or Similar beneficial effect.
The embodiment of the invention also provides a kind of message delay delivery devices, as shown in fig. 6, including processor 601, communication Interface 602, memory 603 and communication bus 604, wherein processor 601, communication interface 602, memory 603 are total by communication Line 604 completes mutual communication.
Memory 603, for storing computer program;
Processor 601 when for executing the program stored on memory 603, realizes message delay in above-described embodiment The method and step of delivering method.
In the embodiment of the present invention, the delay that the message that time of delivery is any point-in-time may be implemented is delivered, and can satisfy The latency requirement of any delay dimension, the application range of extension delay delivery process, and improve the flexibility that message delay is delivered.
The communication bus that above-mentioned message delay delivery device is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control Bus processed etc..Only to be indicated with a thick line in figure convenient for indicating, it is not intended that an only bus or a type of total Line.
Communication interface is for the communication between above-mentioned message delay delivery device and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), also may include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes message in above-described embodiment and prolongs When delivering method method and step.
In the embodiment of the present invention, the delay that the message that time of delivery is any point-in-time may be implemented is delivered, and can satisfy The latency requirement of any delay dimension, the application range of extension delay delivery process, and improve the flexibility that message delay is delivered.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes the method and step of message delay delivering method in above-described embodiment.
In the embodiment of the present invention, the delay that the message that time of delivery is any point-in-time may be implemented is delivered, and can satisfy The latency requirement of any delay dimension, the application range of extension delay delivery process, and improve the flexibility that message delay is delivered.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For equipment, computer readable storage medium and computer program product embodiments, since it is substantially similar to the method embodiment, So being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (15)

1. a kind of message delay delivering method, which is characterized in that be applied to messaging service end, comprising:
Obtain each index information for reaching each message of target time of delivery;Each index information is pre-loaded to described In the memory at messaging service end;The target time of delivery includes any point-in-time;
For each message, the corresponding index information of the message is sent to the consumption queue at information consumption end, so that institute It states information consumption end and the message is obtained from the Commit Log at the messaging service end according to the index information, and to described Message is consumed.
2. the method according to claim 1, wherein reaching each message of target time of delivery in the acquisition Each index information before, the method also includes:
For each message, which is saved to the Commit Log, and by the index information of the message save to The corresponding Block file of time of delivery section, wherein the time of delivery section is the period that the target time of delivery is located at.
3. the method according to claim 1, wherein reaching each message of target time of delivery in the acquisition Each index information before, the method also includes:
For each message, which is saved into Block file corresponding to time of delivery section, and by the index of the message Information preservation is to the corresponding Block file of time of delivery section;Wherein, the time of delivery section is that the target time of delivery is located at Period.
4. according to the method described in claim 3, it is characterized in that, reaching each message of target time of delivery in the acquisition Each index information after, the method also includes:
The message is obtained from the Block file according to the corresponding index information of the message for each message, and should Message is sent to the Commit Log at the messaging service end.
5. according to any method of claim 2-4, which is characterized in that protected in the index information by the message It deposits to the corresponding Block file of time of delivery section, the method also includes:
It, will be in the corresponding Block file of the time of delivery section when being put at the beginning of reaching the time of delivery section Each index information of each message saved, is loaded onto the memory at the messaging service end.
6. according to the method described in claim 5, it is characterized in that, described save the index information of the message to delivery Period corresponding Block file, comprising:
The index information of the message is saved to index file, the index file is the corresponding institute of the time of delivery section State the subfile of Block file;
Each index information by each message saved in the corresponding Block file of the time of delivery section, adds It is loaded onto the memory at the messaging service end, comprising:
The index file including each index information is obtained from the Block file;
The index file is loaded onto the memory at the messaging service end.
7. according to the method described in claim 5, it is characterized in that, described that the time of delivery section is corresponding described Each index information of each message saved in Block file is loaded onto after the memory at the messaging service end, the side Method further include:
The time of delivery section is divided, the corresponding each time of delivery of the time of delivery section is obtained;
For each time of delivery, the corresponding index information of the time of delivery is saved into chained list slot corresponding to the time of delivery Position;
It is described to obtain each index information for reaching each message of target time of delivery, comprising:
For each message, the corresponding target chained list slot position of the target time of delivery of the message is determined;The target time of delivery Including in the corresponding each time of delivery of the time of delivery section;
The index information of the message is obtained from the target chained list slot position.
8. a kind of message delay delivery apparatus, which is characterized in that be applied to messaging service end, comprising:
First obtains module, for obtaining each index information for reaching each message of target time of delivery;Each index letter Breath is pre-loaded into the memory at the messaging service end;The target time of delivery includes any point-in-time;
The corresponding index information of the message is sent to information consumption end for being directed to each message by the first sending module Consumption queue so that the information consumption end is obtained from the Commit Log at the messaging service end according to the index information The message is taken, and the message is consumed.
9. device according to claim 8, which is characterized in that described device further include:
First preserving module saves the message to the Commit Log, and for being directed to each message by the institute of the message It states index information and saves Block file corresponding to time of delivery section, wherein when the time of delivery section is that the target is delivered Between period for being located at.
10. device according to claim 8, which is characterized in that described device further include:
Second preserving module, for for each message, which to be saved Block file corresponding to time of delivery section, and The index information of the message is saved into Block file corresponding to time of delivery section;Wherein, the time of delivery section is institute State the period that target time of delivery is located at.
11. device according to claim 10, which is characterized in that described device further include:
Second obtains module, for being directed to each message, according to the corresponding index information of the message, from the Block file Obtain the message;
Second sending module, for sending the message to the Commit Log at the messaging service end.
12. device according to claim 9 or 10, which is characterized in that described device further include:
Loading module, when for being put at the beginning of reaching the time of delivery section, by the corresponding institute of the time of delivery section The each index information for stating each message saved in Block file is loaded onto the memory at the messaging service end.
13. device according to claim 12, which is characterized in that first preserving module is specifically used for the message The index information save to index file, the index file is the corresponding Block file of the time of delivery section Subfile;Alternatively,
Second preserving module, specifically for saving the index information of the message to index file;
The loading module, specifically for obtaining the index file including each index information from the Block file; The index file is loaded onto the memory at the messaging service end.
14. device according to claim 12, which is characterized in that described device further include:
Division module, for being divided to the time of delivery section, when obtaining the corresponding each delivery of the time of delivery section Between;
Third preserving module saves the corresponding index information of the time of delivery to the delivery for being directed to each time of delivery Time corresponding chained list slot position;
Described first obtains module, is specifically used for being directed to each message, determines the corresponding target of target time of delivery of the message Chained list slot position;The target time of delivery includes in the corresponding each time of delivery of the time of delivery section;From the target The index information of the message is obtained in chained list slot position.
15. a kind of message delay delivery device, which is characterized in that including processor, communication interface, memory and communication bus, Wherein, the processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes side as claimed in claim 1 to 7 Method step.
CN201811626700.6A 2018-12-28 2018-12-28 A kind of message delay delivering method, device and equipment Pending CN109726024A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811626700.6A CN109726024A (en) 2018-12-28 2018-12-28 A kind of message delay delivering method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811626700.6A CN109726024A (en) 2018-12-28 2018-12-28 A kind of message delay delivering method, device and equipment

Publications (1)

Publication Number Publication Date
CN109726024A true CN109726024A (en) 2019-05-07

Family

ID=66297889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811626700.6A Pending CN109726024A (en) 2018-12-28 2018-12-28 A kind of message delay delivering method, device and equipment

Country Status (1)

Country Link
CN (1) CN109726024A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704212A (en) * 2019-09-29 2020-01-17 广州荔支网络技术有限公司 Message processing method and device
CN112104519A (en) * 2020-08-06 2020-12-18 北京健康之家科技有限公司 Delayed message delivery method and device, storage medium and computer equipment
CN113709214A (en) * 2021-08-04 2021-11-26 北京快乐茄信息技术有限公司 Message processing method and device, electronic equipment and storage medium
CN115022263A (en) * 2022-06-02 2022-09-06 政采云有限公司 Delivery method, device, equipment and storage medium of delay message
CN115051963A (en) * 2022-06-06 2022-09-13 阿里巴巴(中国)有限公司 Message processing method and device, message queue system and electronic equipment
CN115242744A (en) * 2022-06-15 2022-10-25 艺龙网信息技术(北京)有限公司 Timing message sending method, system, terminal and storage medium of user-defined time

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015144003A1 (en) * 2014-03-28 2015-10-01 Huawei Technologies Co., Ltd. Systems and methods to optimize multi-version support in indexes
CN105210328A (en) * 2013-09-27 2015-12-30 华为技术有限公司 Method and device for asynchronous communication
CN107133342A (en) * 2017-05-16 2017-09-05 广州舜飞信息科技有限公司 A kind of IndexR real-time data analysis storehouse
CN107220030A (en) * 2017-05-31 2017-09-29 北京北信源软件股份有限公司 Delayed tasks perform method and device
CN107391271A (en) * 2017-05-17 2017-11-24 阿里巴巴集团控股有限公司 A kind of delayed tasks triggering method and device based on Message Queuing system
CN107526643A (en) * 2017-07-20 2017-12-29 郑州云海信息技术有限公司 The method and system that a kind of message delay is sent
CN108415759A (en) * 2017-02-09 2018-08-17 阿里巴巴集团控股有限公司 Processing method, device and the electronic equipment of message

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105210328A (en) * 2013-09-27 2015-12-30 华为技术有限公司 Method and device for asynchronous communication
WO2015144003A1 (en) * 2014-03-28 2015-10-01 Huawei Technologies Co., Ltd. Systems and methods to optimize multi-version support in indexes
CN108415759A (en) * 2017-02-09 2018-08-17 阿里巴巴集团控股有限公司 Processing method, device and the electronic equipment of message
CN107133342A (en) * 2017-05-16 2017-09-05 广州舜飞信息科技有限公司 A kind of IndexR real-time data analysis storehouse
CN107391271A (en) * 2017-05-17 2017-11-24 阿里巴巴集团控股有限公司 A kind of delayed tasks triggering method and device based on Message Queuing system
CN107220030A (en) * 2017-05-31 2017-09-29 北京北信源软件股份有限公司 Delayed tasks perform method and device
CN107526643A (en) * 2017-07-20 2017-12-29 郑州云海信息技术有限公司 The method and system that a kind of message delay is sent

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DEXTERMAN: "RocketMQ Commitlog and Index", 《COSCHINA》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704212A (en) * 2019-09-29 2020-01-17 广州荔支网络技术有限公司 Message processing method and device
CN110704212B (en) * 2019-09-29 2022-04-22 广州荔支网络技术有限公司 Message processing method and device
CN112104519A (en) * 2020-08-06 2020-12-18 北京健康之家科技有限公司 Delayed message delivery method and device, storage medium and computer equipment
CN112104519B (en) * 2020-08-06 2022-07-19 北京健康之家科技有限公司 Delayed message delivery method and device, storage medium and computer equipment
CN113709214A (en) * 2021-08-04 2021-11-26 北京快乐茄信息技术有限公司 Message processing method and device, electronic equipment and storage medium
CN115022263A (en) * 2022-06-02 2022-09-06 政采云有限公司 Delivery method, device, equipment and storage medium of delay message
CN115051963A (en) * 2022-06-06 2022-09-13 阿里巴巴(中国)有限公司 Message processing method and device, message queue system and electronic equipment
CN115051963B (en) * 2022-06-06 2024-01-26 阿里巴巴(中国)有限公司 Message processing method and device, message queue system and electronic equipment
CN115242744A (en) * 2022-06-15 2022-10-25 艺龙网信息技术(北京)有限公司 Timing message sending method, system, terminal and storage medium of user-defined time
CN115242744B (en) * 2022-06-15 2024-02-02 艺龙网信息技术(北京)有限公司 Timing message sending method, system, terminal and storage medium for self-defining time

Similar Documents

Publication Publication Date Title
CN109726024A (en) A kind of message delay delivering method, device and equipment
CN109450778A (en) A kind of message delay delivering method, device and equipment
John et al. A survey of distributed message broker queues
US9876745B2 (en) Systems and methods for transferring message data
US20190268293A1 (en) Scalable, real-time messaging system
AU2016307329A1 (en) Scalable, real-time messaging system
US9465880B2 (en) Optimizing storage in a publish / subscribe environment
US20150120852A1 (en) Subscriber based priority of messages in a publisher-subscriber domain
CN108370346A (en) System and method for storing and transmitting message data
CN111459986B (en) Data computing system and method
CN109918349A (en) Log processing method, device, storage medium and electronic device
EP3459212A1 (en) Maintaining persistence of a messaging system
JP2019526118A (en) Multi-rate message channel for messaging system
CN109309698B (en) Data processing system, method and device
CN105577772A (en) Material receiving method, material uploading method and device
US20190005534A1 (en) Providing media assets to subscribers of a messaging system
CN103024082A (en) Point-to-point communication method used for digital media distribution
CN108347459A (en) A kind of high in the clouds data quick storage method and device
CN111813868B (en) Data synchronization method and device
CN104135429A (en) A method and a device for pushing information
CN103118277B (en) A kind of video acceleration method
CN106713456A (en) Network bandwidth statistics method and device
CN110413684A (en) A kind of database synchronization method, apparatus and system
CN110225122B (en) Message pushing method, device, equipment and storage medium
CN112954413A (en) Live broadcast list updating method and device, server and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190507

RJ01 Rejection of invention patent application after publication