CN108388479A - Postpone information push method, device, computer equipment and storage medium - Google Patents
Postpone information push method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108388479A CN108388479A CN201810138032.6A CN201810138032A CN108388479A CN 108388479 A CN108388479 A CN 108388479A CN 201810138032 A CN201810138032 A CN 201810138032A CN 108388479 A CN108388479 A CN 108388479A
- Authority
- CN
- China
- Prior art keywords
- message
- push
- type
- target
- delay
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/547—Messaging middleware
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/548—Queue
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 invention discloses a kind of delay information push method, device, computer equipment and storage medium.The delay information push method includes:Acquisition waits for PUSH message, described to wait for that PUSH message includes type of message and source template;Based on the type of message, wait for that PUSH message is buffered on target message middleware corresponding with the type of message by described;According to waiting for whether PUSH message is delay message described in source template determination, if described wait for that PUSH message for the delay message, waits for that PUSH message is buffered on the delay queue created on the target message middleware by described;The delay queue is monitored using watcher thread poll, and waits for that PUSH message carries out push processing to what is cached in the delay queue.The delay information push method can effectively improve the efficiency of delay message push processing, reduce the pressure of memory space, and ensure the timeliness of Message Processing.
Description
Technical field
The present invention relates to field of information processing more particularly to a kind of delay information push method, device, computer equipment and
Storage medium.
Background technology
When current message pushes platform and sends message to specific user, it real-time messages can be sent can also send delay and disappear
Breath.Wherein, real-time messages refer to that can be sent to specific user after message is formed, so that specific user can get in real time
Message;Correspondingly, delay message refers to after message is formed, suspending transmission if within the interruption-free period, until place
It is just sent after the non-interruption-free time so that the message that specific user obtains.The transmission of current delay message places one's entire reliance upon
Database is in when postponing message in the interruption-free period, then is needed delay message storage in the database, data-base cluster
In each machine can all play delay message that a thread is gone to seize in database and handle one by one, it is empty to the storage of database
Between exert heavy pressures on, and increase thread resources consumption.Moreover, over time, the delay message in database is not
It is disconnected to increase, cause to be continuously increased the memory space requirements of database, also needs to increase artificial periodic cleaning delay message, to complete
The recovery operation of memory space, causes cost to increase in database.
Invention content
A kind of delay information push method of offer of the embodiment of the present invention, device, computer equipment and storage medium, to solve
Current delay message push process causes thread resources to consume larger problem.
In a first aspect, the embodiment of the present invention provides a kind of delay information push method, including:
Acquisition waits for PUSH message, described to wait for that PUSH message includes type of message and source template;
Based on the type of message, wait for that PUSH message is buffered in target message corresponding with the type of message by described
On middleware;
According to waiting for whether PUSH message is delay message described in source template determination, if described wait for PUSH message for institute
Delay message is stated, then waits for that PUSH message is buffered on the delay queue created on the target message middleware by described;
The delay queue is monitored using watcher thread poll, and to cached in the delay queue wait for PUSH message into
Row push is handled.
Second aspect, the embodiment of the present invention provide a kind of delay message pusher, including:
Message capturing module waits for PUSH message for obtaining, described to wait for that PUSH message includes type of message and source template;
Message template cache waits for that PUSH message is buffered in and the message class for being based on the type of message by described
On the corresponding target message middleware of type;
Postpone judging treatmenting module, for according to the source template determine described in wait for PUSH message whether be delay disappear
Breath waits for that PUSH message is buffered in the target message middleware if described wait for that PUSH message is the delay message by described
On the delay queue of upper establishment;
Processing module is monitored, for monitoring the delay queue using watcher thread poll, and in the delay queue
Caching waits for that PUSH message carries out push processing.
The third aspect, the embodiment of the present invention provide a kind of computer equipment, including memory, processor and are stored in institute
The computer program that can be run in memory and on the processor is stated, the processor executes real when the computer program
Now such as the step of the delay information push method.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium
Matter is stored with computer program, and the computer program realizes the step of the delay information push method when being executed by processor
Suddenly.
In delay information push method provided in an embodiment of the present invention, device, computer equipment and storage medium, according to obtaining
That gets waits for the type of message of PUSH message, will wait for that PUSH message is buffered in target message middleware corresponding with type of message
On, the concentration that PUSH message is treated by using target message Middleware implementation pushes management, can be conducive to improve and wait for that push disappears
The pushing efficiency of breath and the consumption for reducing thread resources.According to waiting for that the source template of PUSH message determines whether it is delay and disappear
Breath, will belong to delay message waits for that PUSH message is buffered on the delay queue created on target message middleware, to realize
Delay message is managed concentratedly, the push efficiency of management for waiting for PUSH message for belonging to delay message is helped to improve.Using
Watcher thread poll monitors delay queue, waits for that PUSH message carries out timely push processing to what is cached in delay queue, it is ensured that
It waits for that PUSH message can obtain timely processing, improves the timeliness of Message Processing.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the flow chart for postponing information push method in the embodiment of the present invention 1.
Fig. 2 is a particular flow sheet of step S20 in Fig. 1.
Fig. 3 is a particular flow sheet of step S40 in Fig. 1.
Fig. 4 is the original block diagram for postponing message pusher in the embodiment of the present invention 2.
Fig. 5 is an original block diagram of 4 Computer equipment of the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment 1
Fig. 1 shows to postpone a flow chart of information push method in the present embodiment.The delay information push method is applied
Message push platform in, be particularly applicable in message push platform server (server includes but not limited to that the present embodiment carries
And master server and push server) on, for being managed to needing to push the message that platform is pushed by message,
Particularly for postpone message push process be managed, to avoid delay message to message push platform memory space and
Thread resources cause huge consumption, influence the normal work of message push platform.As shown in Figure 1, the delay message push side
Method includes the following steps:
S10:Acquisition waits for PUSH message, waits for that PUSH message includes type of message and source template.
The master server of message push platform obtains at least one of business platform transmission and waits for PUSH message.The master server
It is the server for carrying out message push management being arranged on message push platform.The business platform is message push platform institute
The corresponding platforms of APP of service, every APP correspond to a specific business.Wait for that PUSH message is business platform and is needed based on own service
Seek the message to be formed and be pushed to specific user.Business platform waits for that PUSH message needs to be pushed to spy by message push platform
Determine user.For example, certain bank develops a financing APP, the corresponding platforms of financing APP are a specific business platform, if should
It, can be to message when business platform needs message (then the message is when PUSH message) about finance product to certain user's push
Push platform sends this and waits for PUSH message, so that message push platform gets this and waits for PUSH message.
Due to waiting for that PUSH message need to be sent to specific user, it waits for also needing to carry User ID in PUSH message, so as to
It is inquired based on the User ID, client used in the specific user of PUSH message is waited for obtain to need to receive this.Wherein,
User ID is the mark of user for identification, can refer to user name or user account of the user on the corresponding business platforms of APP
Number, can also be the contact methods such as cell-phone number or the E-mail address of user.It waits for carrying User ID in PUSH message, it can be ensured that should
Wait for that PUSH message is pushed to specific user like clockwork by message push platform, so that specific user, which obtains, waits for PUSH message
Content.It is to be appreciated that each wait for that the User ID carried in PUSH message can be one, can also be a batch (i.e. at least one
It is a).
Type of message is based on waiting for that the quantity of the audient specific user of message (receive) of PUSH message is divided
Type.The type of message includes single task type and batch tasks type.Single task type refers to that this waits for that PUSH message is
The type of message of a specific user need to be individually pushed to.For example, according to the credit card purchase situation of a certain user's last month, also
Before money day, message push platform can send refund message corresponding with the user and give the user, to remind the user to need also
The amount of money of money and refund time, at this point, the refund message is single task type.Correspondingly, batch tasks type refers to this
Wait for that PUSH message is the type of message that need to be pushed to a collection of specific user in batches.For example, the corresponding business platform of a certain APP is wanted
Member's benefit message is pushed to the member user of its platform, needs member's benefit message of identical content being pushed to platform at this time
All member users, at this point, member's benefit message is batch tasks type.
Further, batch tasks type includes the whole network task type, i.e., the whole network task type is batch tasks type
A kind of concrete form, in particular to this to wait for that PUSH message need to be pushed in batches specific using a batch of specific device operating system
The type of message of user.For example, the advertising campaign of iPhoneX, which can issue all and mobile phone, sells relevant platform, to meet phase
The business demand answered.
In the present embodiment, business platform will be each to wait for that PUSH message is taken when PUSH message is sent to message and pushes platform
With interface parameters, which can be the parameter identification of type of message for identification, such as represent single task class with 1
Type represents batch tasks type with 2, and the whole network batch tasks type is represented with 3.Message push platform get this wait for push disappear
When breath, you can obtain its corresponding type of message according to the interface parameters, process is simple and convenient.
Source template refers to the template for including different messages content, is to be used to generating or obtaining difference in message push platform
The template for waiting for PUSH message.Message pushes platform and is generating or obtaining when PUSH message, need to call pre-set message
Template, and modification is adjusted to the content of the source template of selection, wait for PUSH message with what formation was pushed.This reality
The source template applied in example can be universal information template and specific messages template, and universal information template refers to that can be pushed to
The source template of multiple specific users, specific messages template refer to that need to be pushed to the source template of single specific user.Generally
For, universal information template corresponds generally to batch tasks type this type of message, the user letter proprietary it is not necessary that user is added
Breath.For example, when the member user to a certain business platform pushes new alive messages, universal information template generation can be called
Wait for PUSH message.Correspondingly, specific messages template corresponds generally to single task type this type of message, is based on specific messages
Template generation obtains when PUSH message, and the proprietary user information of user need to be added.For example, pushing letter of refunding to each user
When breath, since the credit card number of each user, the user informations such as time and the amount of money of refunding are all different, refund obtaining
After the specific messages template of information, also need to obtain corresponding user information based on User ID, and the user information is disappeared with special
It ceases template to combine, PUSH message is waited for be formed.
The time can be pushed by being carried in source template, can be determined that it is and prolonged according to the time that pushes carried in source template
Slow message or real-time messages (i.e. non-delayed message).It is that this waits for that PUSH message can be pushed to one or one that the time, which can be pushed,
Criticize the period of specific user.Corresponding with that can push the time is the interruption-free time, which is that message push is flat
It cannot be to one or the period of a collection of specific user's PUSH message in platform.In the present embodiment, when can push time and interruption-free
Between can be referred to a daily period.For example, daily 9:00-17:00 is the interruption-free time, then 17:00- next day 9:00 is
The time can be pushed.It is to be appreciated that can push the time can be whole day, i.e., 24 hours.If it is round-the-clock that can push the time, disappear
Breath push platform is obtaining this when PUSH message, you can is pushed to specific user so that specific user can obtain in real time
This waits for PUSH message, then this waits for that PUSH message is real-time messages at this time.Correspondingly, if it is whole day that can push the time not, that is, exist
The interruption-free time of one specific period can push the time, then message push platform after getting and waiting for PUSH message,
It can only push in the time or outside the interruption-free time, can just pushed its specific user so that specific user's delay obtains
This is taken to wait for PUSH message, then this waits for that PUSH message is delay message at this time.
S20:Based on type of message, it will wait for that PUSH message is buffered in target message middleware corresponding with type of message
On.
Wherein, message-oriented middleware (Adaptive Message Queue, abbreviation:AMQ refer to) matching on message push platform
The queue for the message or other data for cache database set.It is configured among at least one message in message push platform
Part, each message-oriented middleware is for storing a kind of message of type of message.Message-oriented middleware is among a high performance message
Part, AMQ provides the message communication service based on Publish/Subscribe, while AMQ can provide service bus function,
Can carry out service registration on AMQ for other processes, business platform can by Inter-Process Communication API (i.e. CEDA API) come
Access the service registered on AMQ.Traditional data library storage is substituted using message-oriented middleware and waits for PUSH message, and passes through data base set
Group's thread polling mode, can improve the treatment effeciency for waiting for PUSH message, and effectively reduce the consumption of thread resources.
Specifically, which can specifically be divided into first message middleware according to its type of message, second disappear
Cease middleware and third message-oriented middleware.Wherein, it is single task type that first message middleware, which is for buffered message type,
Message message-oriented middleware.Second message middleware is the message for the message that buffered message type is batch tasks type
Middleware.Third message-oriented middleware is the message-oriented middleware for the message that buffered message type is the whole network task type.This reality
It applies in example, message-oriented middleware corresponding with the type of message of message PUSH message is target message middleware, i.e. target message
Middleware is possible to as first message middleware, it is also possible to be second message middleware or third message-oriented middleware.
In a specific embodiment, as shown in Fig. 2, step S20, that is, be based on type of message, it will wait for that PUSH message caches
On target message middleware corresponding with type of message, specifically comprise the following steps:
S21:If type of message is single task type, it is corresponding with single task type will to wait for that PUSH message is buffered in
First message middleware on.
Specifically, if waiting for, the type of message of PUSH message is single task type, illustrates that this waits for that PUSH message need to only push away
Give a User ID corresponding client, at this point, this is waited for that PUSH message is buffered in corresponding with single task type
On one message-oriented middleware.First message middleware is configured on message push platform dedicated for caching and management message type
For the queue for waiting for PUSH message of single task type, for being that single task type waits for that PUSH message carries out to type of message
Push management is concentrated, to ensure the pushing efficiency for waiting for PUSH message of single task type, reduces database thread resource
Consumption.
S22:If type of message is batch tasks type, treats PUSH message and carry out task fractionation, formed extremely with splitting
Few two batch subtask message, and at least two batch subtask message are respectively stored into corresponding with batch tasks type
Second message middleware on.
Specifically, if wait for PUSH message type of message be batch tasks type, illustrate this wait for PUSH message need by
It is pushed to the corresponding client of a collection of User ID (i.e. at least one User ID), at this point, this is waited for that PUSH message is buffered in and criticizes
It measures on the corresponding second message middleware of task type.Second message middleware is the special use configured on message push platform
In caching, simultaneously management message type is the queue for waiting for PUSH message of batch tasks type, is used to be batch tasks to type of message
Type waits for that PUSH message carries out concentrating push management, to ensure the pushing efficiency for waiting for PUSH message of batch tasks type, subtracts
The consumption of few database thread resource.
Further, since the corresponding user for waiting for that PUSH message to be pushed of batch tasks type is more, if will own
It waits for that PUSH message only carries out push management by a thread or queue, the push process stand-by period may be made longer, influence
Information push efficiency.To avoid that single thread or queue is used to wait for that PUSH message carries out to type of message for batch tasks type
The problem of pushing and influencing information push efficiency, in the present embodiment, need to use preset division rule to type of message for batch
Amount task type waits for that PUSH message is split, to be split at least two batch subtask message.The division rule
It is pre-set for will wait for that PUSH message is divided into the rule of at least two batch subtask message.
Specifically, the amount of user data for waiting for PUSH message that the type of message is batch tasks type can be first obtained, is adopted
Operation is compared with default treating capacity to the amount of user data with preset block algorithm, determines corresponding piecemeal quantity, and
This is waited for that PUSH message is divided by piecemeal quantity, to determine at least two batch subtask message.Wherein, treating capacity is preset
The pre-set data volume of platform is pushed for message, specific use can be pushed in batches by being generally used for limiting each message-oriented middleware
The user volume at family.In the present embodiment, block algorithm isWherein, A is amount of user data, and B is default place
Reason amount, N are piecemeal quantity,Expression rounds up.If amount of user data A is less than default treating capacity B, this is waited for that push disappears
It is 2 to cease the piecemeal quantity divided, i.e., will wait for that PUSH message is divided into 2 batch subtask message, so as to wait for PUSH message
Parallel push processing is carried out, pushing efficiency is improved.If number of users amount A is greater than or equal to default treating capacity B, user is first used
Quantity amount A divided by default processing B are to obtain quotient, then round up to quotient, to determine that its piecemeal quantity is N, due to A >=B,
Then N be >=2 integer, need to wait for that PUSH message is divided into N number of batch subtask message at this time, with realize treat PUSH message into
The parallel push processing of row, improves information push efficiency.Further, N number of batch subtask message need to be respectively stored into and batch
On the corresponding second message middleware of task type, so that it is guaranteed that carrying out parallel processing to batch subtask message.
In step S21-S22, according to the difference for the type of message for waiting for PUSH message, this is waited for that PUSH message is buffered in respectively
On target message middleware corresponding with type of message, wait for that PUSH message carries out concentrate tube so that realization is different types of to message
Reason and concentration push, to improve information push efficiency;Moreover, because using target message middleware to needed PUSH message into
Row centralized management can be with without making each machine in data-base cluster plays thread and treats PUSH message respectively to be handled
Effectively reduce the consumption of thread resources.Further, PUSH message is waited for for batch tasks type for type of message, it need to be by it
It splits and forms at least two batch subtask message, it is buffered in corresponding with batch tasks type at least two respectively
On second message middleware, PUSH message, which carries out parallel push processing, to be waited for as batch tasks type to type of message to realize,
To improve information push efficiency.
S30:Wait for whether PUSH message is delay message according to source template determination, if waiting for, PUSH message is delay message,
It will then wait for that PUSH message is buffered on the delay queue created on target message middleware.
Specifically, wait for whether PUSH message is delay message according to source template determination, to determine that this waits for that PUSH message is
It needs to push platform real time push to the client of specific user by message, time (i.e. interruption-free can be pushed by being still deferred to
Except time) it is pushed to the client of specific user again, to avoid in interruption-free time PUSH message, bothering specific user just
Often life or work, influence the service satisfaction for the business platform that it pushes message.
The time can be pushed by being carried in source template due to waiting for PUSH message, can according to what is carried in source template
The push time determines whether it is delay message.Can even push the time be whole day (i.e. 24 hours), then illustrate its can in real time to
Specific user's PUSH message, at this point, this waits for that PUSH message is non-delayed message (i.e. real-time messages);Correspondingly, if can push
Between be a certain specific period (such as 9:00-17:00), then explanation can only be in the specific period PUSH message, at this point, this waits pushing away
It is delay message to send message.
Wherein, delay queue is the queue dedicated for buffer delay message created on target message middleware.In mesh
It is cached on mark message-oriented middleware when PUSH message is handled, the general treatment principle according to first in first out is to queue
In message handled, since delay message cannot carry out push processing in real time, if will delay message and non-delayed message
It is placed in same queue, may so that the delay Message Processing that non-delayed message needs to wait for advanced enqueue complete could be pushed
Processing so that entire message push process was limited to delay message pushes the time, therefore, delay message establishing need to be given to correspond to
Delay queue.In the present embodiment, it will determine as delay message and wait for PUSH message to be cached on target message middleware creating
Delay queue on so that it is handled respectively with non-delayed message, the pushing efficiency for influencing non-delayed message is avoided, moreover, can
With by the way that waiting for that PUSH message carries out concentrating push management in delay queue, the push efficiency of management can also be improved.
S40:Delay queue is monitored using watcher thread poll, and waits for that PUSH message pushes away to what is cached in delay queue
Send processing.
Wherein, watcher thread is for monitoring the thread for whether having particular event to occur in queue.Team in the present embodiment
Row are specifically target message middleware, refer in particular to the delay queue created on target message middleware.Correspondingly, particular event
Can refer to needing PUSH message into this event of enqueue.Using watcher thread poll monitor delay queue, in particular to
After watcher thread starts, the watcher thread cyclically go in interrogator delay queue whether to have it is new wait for that PUSH message is added, so as to
Subsequently wait for that PUSH message carries out push processing to be newly added delay queue, to ensure to waiting for PUSH message in delay queue
The timeliness handled avoids to handle always after PUSH message enters delay queue.
Metadata controller (Meta Data Controller, hereinafter referred to as MDC) conduct may be used in the present embodiment
Watcher thread is monitored the PUSH message that waits for that whether there is newly to enter delay queue in delay queue with poll, and carries out push processing.
MDC waits for PUSH message as watcher thread, for monitoring in real time in delay queue, to carry out timely processing to it, to protect
The timeliness of PUSH message processing procedure is waited in card delay queue, and is conducive to ensure information push efficiency, is avoided because not having
The state for waiting for PUSH message cached in delay queue is understood in time without carrying out the case where push is handled.
In a specific embodiment, as shown in figure 3, step S40, that is, use watcher thread poll to monitor delay queue,
And wait for that PUSH message carries out push processing to what is cached in delay queue, specifically comprise the following steps:
S41:The PUSH message that waits in delay queue is monitored using watcher thread poll, obtains target PUSH message.
Specifically, it is monitored in delay queue using watcher thread poll and waits for PUSH message, if watcher thread to be monitored
Event be to wait for that PUSH message enters delay queue this particular event, then watcher thread Infinite Cyclic in interrogator delay queue
Whether have it is new wait for that PUSH message enters, to understand the state of the message in delay queue in real time, so that it is guaranteed that delay queue
In wait for PUSH message carry out timely processing.Wherein, target PUSH message is watcher thread during monitoring delay queue, really
It is fixed carry out push processing wait for PUSH message.
Since the delay queue created on target message middleware may be the delay queue that first message middleware creates,
It is also likely to be the delay queue that second message middleware creates, therefore, caching waits for that PUSH message can be that type of message is
Single task type waits for PUSH message, can also be that type of message waits for PUSH message for batch tasks type.If postponing team
The type of message for waiting for PUSH message cached in row is batch tasks type, then what is cached in each second message middleware waits pushing away
It is batch subtask message to send message, when PUSH message, is got using watcher thread poll monitoring delay queue
Target PUSH message is target subtask message.Wherein, target subtask message is watcher thread in monitoring second message
Between part create delay queue during, determine carry out push processing batch subtask message.
S42:If the type of message of target PUSH message is single task type, when the current time in system is that can push
Between when, target PUSH message is sent to push server, so that a push server pushes the target PUSH message received.
Wherein, a push server refers to being praised and admired for the server to personal PUSH message, this on message push platform
The master server that business device pushes platform with message is connected.Delay queue the prolonging for caching created due to first message middleware
Slow message, and its type of message is single task type, is monitored among first message using watcher thread poll in step S41
When part creates delay queue, determine that is handled waits for that PUSH message is target PUSH message.In the present embodiment, due to
The time can be pushed by being carried in each source template for waiting for PUSH message, therefore, in each delay message in delay queue
The time can be pushed by carrying.Current time in system refers to the system clock of message push platform in the corresponding time at current time.
The target PUSH message on delay queue created for first message middleware, need to obtain when pushing of target PUSH message
Between, it is that can push the time (i.e. the current time in system can push in the time) in the current time in system, then explanation can be by the mesh
Mark PUSH message is pushed to specific user, therefore, which need to be sent to a push server, so that a praise and admire business
Target PUSH message received by device real time push so that each target PUSH message can push in the time can by and
When be pushed to the corresponding client of corresponding User ID.
S43:If the type of message of target PUSH message is batch tasks type, target PUSH message is target subtask
Message is updated to the state of the target subtask message in message state data table to wait for push state, and when system is current
Between for when can push the time, target subtask message is sent to push server so that the push of a push server received
Target subtask message.
Target PUSH message in this step is that the delay being buffered on the delay queue of second message middleware establishment disappears
Breath, and its type of message is batch tasks type, is monitored on second message middleware using watcher thread poll in step S41
Delay queue when, determine handled wait for that PUSH message is target PUSH message.As shown in step S22, disappearing
When breath type is batch tasks type, type of message need to be waited for that PUSH message is divided at least two batches for batch tasks type
Quantum task message simultaneously uploads on second message middleware respectively, so when the target PUSH message that gets be need into
The batch subtask message (i.e. target subtask message) of row push processing.
Message state data table is the shape for the message in database of record being stored in advance on message push platform
The tables of data of state.Message status in message state data table includes not pushing state, waits for push state and has pushed state.Its
In, it refers to carrying out the state of push preparation not yet not push state;Wait for that push state is to be ready for push to prepare, when waiting
Between reach the state that can be pushed;The state of push is the state of the corresponding client push of warp-wise specific user.
Each when PUSH message enters delay queue in the present embodiment, its corresponding message status of default setting is not
Push state.When watcher thread poll listen to carry out push preparation when PUSH message, then this waits for that PUSH message is
Target PUSH message needs to be updated to its corresponding message status to wait for push state at this time.When the system that message pushes platform is worked as
The preceding time when that can push in the time, illustrates that the target PUSH message can be pushed to specific user, at this point, need to push away target
Message (the target subtask message i.e. in this step) is sent to be sent to a push server, so that a push server disappears target push
Breath is sent to the corresponding client of batch User ID, is handled the batch push for postponing message with realizing.It is incited somebody to action in a push server
Type of message be batch tasks type when PUSH message is pushed to specific user's (i.e. corresponding client of User ID), need to be by it
Message status is updated to push state, to illustrate that this waits for that PUSH message has been pushed to specific user.
Further, it includes push success status and push status of fail to have pushed state.It refers to push success status
It is pushed to through push and smoothly the state of specific user.It refers to having pushed but not being pushed to specific user to push status of fail
State.Cause message be in push status of fail the reason of there are many, can be message during push because server is delayed
Machine restarts and the message pushed is caused not to be pushed to specific user smoothly.The case where to avoid information drop-out, occurs,
The master server of message push platform can periodically monitor the message state data table in its database, and be push by message status
The message of status of fail is pushed to its specific user again, specific user is not pushed to avoid corresponding message, to make
The specific user can not know in time its it is to be understood that message.
Further, the master server of message push platform can also periodically monitor the message state data in its database
Table, and it is the message for pushing success status that message status is removed in timing, to achieve the purpose that save the memory space of database.It can
It is not push shape by its message push state default setting to understand that ground, message push platform often obtain one when PUSH message
State;After treating PUSH message and carrying out time check or equipment verification, to verifying the message status for waiting for PUSH message passed through
It is changed to wait for push state;Respectively its message status is changed to push successfully according to the feedback signal got after push
State or push status of fail, to understand waiting for for different business platform in real time based on the message status in message state data table
The state of PUSH message.
In the present embodiment, database is specially Redis databases, and Redis databases are a kind of numbers of storage key assignments data
According to library.Wherein, Redis is key assignments (key-value) storage system, supports the data for storing a variety of value types,
Value types include string (character string), list (chained list), set (set), zset (sorted set, ordered set) and
Hash (Hash type).Redis supports slave to synchronize, can be from master server to any number of step number same from server
According to, can also to it is each from server it is associated other from the corresponding master server synchrodata of server, store data
Storage efficiency is high.
In step S41-S43, is monitored in delay queue by using watcher thread poll and wait for PUSH message, it is every to determine
Carried out in one delay queue push processing target PUSH message, so that it is guaranteed that in delay queue wait for PUSH message into
Row timely processing.For the target PUSH message that type of message in delay queue is single task type, since it only needs to push
Give a user (i.e. the corresponding client of a User ID), push process required time shorter, it can be achieved that when system is current
Between message push can be carried out when that can push in the time, with improve message push efficiency.For message class in delay queue
Type is the target PUSH message of batch tasks type, since it needs to be pushed to batch user (i.e. at least one User ID pair
The client answered), push process required time is longer, can be that wait for push state to wait for by first updating its message status
Push is handled so that in the current time in system when that can push the time, the target PUSH message for waiting for push state is pushed
Processing to batch tasks type, it can be achieved that wait for that PUSH message is orderly pushed, without being created in the machine in data-base cluster
It builds multiple threads to be managed, to effectively save the thread resources in database.
S50:If waiting for, PUSH message is non-delayed message, will wait for that PUSH message is sent to a push server, so that a push away
What server real time push received waits for PUSH message.
Wherein, a push server refers to being praised and admired for the server to personal PUSH message, this on message push platform
The master server that business device pushes platform with message is connected.Non-delayed message in the present embodiment is real-time messages, is that message pushes away
The message for sending platform that can be pushed to specific user at any time.When message pushes the master server of platform based on waiting for PUSH message
Source template determines this when PUSH message is non-delayed message, illustrate this wait for PUSH message can real time push to specific user,
Therefore, this being waited for, PUSH message is sent to push server, User ID in PUSH message is waited for based on this by a push server
It is sent to corresponding client, directionally the purpose for waiting for PUSH message is pushed to specific user in real time to realize.
In the delay information push method that the present embodiment is provided, according to the type of message for waiting for PUSH message got,
It will wait for that PUSH message is buffered on target message middleware corresponding with type of message, it is possible to reduce empty to the storage of database
Between pressure, by using target message Middleware implementation treat PUSH message concentration push management, can be conducive to improve wait for
The pushing efficiency of PUSH message and the consumption for reducing thread resources.Prolong according to waiting for that the source template of PUSH message determines whether it is
Slow message, will belong to delay message waits for that PUSH message is buffered on the delay queue created on target message middleware, with
It realizes and delay message is managed concentratedly, help to improve the push efficiency of management for waiting for PUSH message for belonging to delay message.
Delay queue is monitored using watcher thread poll, waits for that PUSH message carries out timely push processing to what is cached in delay queue, it can
Guarantee waits for that PUSH message can obtain timely processing, improves the timeliness of Message Processing.
In a specific embodiment, as described above, batch tasks type includes a kind of this specific shape of the whole network task type
Formula, this type of message of the whole network task type is corresponding to be waited in PUSH message, and the time that pushes carried in source template is
The interruption-free time is not present in whole day (i.e. 24 hours), and therefore, the whole network task type is corresponding to wait for that PUSH message is non-delayed disappears
It ceases (i.e. real-time messages).At this point, in step S22, it is based on type of message, it is corresponding with type of message will to wait for that PUSH message is buffered in
Target message middleware on, further include specifically:If type of message is the whole network task type, wait for that PUSH message is non-delayed disappears
Breath, will wait for that PUSH message is buffered on third message-oriented middleware corresponding with the whole network task type.
Specifically, however, it is determined that when the type of message of PUSH message is the whole network task type, then illustrate that this waits for PUSH message
It need to be given a collection of User ID (i.e. at least one User ID) corresponding client by real time push.Third message-oriented middleware is that message pushes away
The queue for waiting for PUSH message dedicated for buffered message type for the whole network task type configured on platform is sent, for message
Type waits for that PUSH message carries out concentrating push management for the whole network task type, to improve information push efficiency.
The PUSH message that waits in third message-oriented middleware is monitored using watcher thread poll, obtains target PUSH message, and
Target PUSH message is sent to a push server, so that the target PUSH message that a push server real time push receives.
Wherein, watcher thread is for monitoring the thread for whether having particular event to occur in queue.In the present embodiment, use
Watcher thread poll monitor whether have on third message-oriented middleware it is new wait for that PUSH message enters, if having it is new wait for PUSH message into
Enter, then this waits for that PUSH message is target PUSH message.Since the needed PUSH message on third message-oriented middleware is non-
Postpone message, real time push need to be carried out, therefore, when obtaining target PUSH message, you can be sent to the target PUSH message
A push server, so that the target PUSH message that a push server real time push receives.
In the specific implementation mode, due to the whole network task type wait for PUSH message both be batch tasks type a kind of tool
Body form and non-delayed message, therefore there are certain particularity for its message push process, i.e., are corresponded to by the whole network task type
Cached to target message middleware after PUSH message, no longer need to judge wait for PUSH message whether be delay message, with save
Corresponding processing procedure.Also, all type of messages are waited for that PUSH message is buffered in corresponding third for the whole network task type
, it can be achieved that the centralized management of the needed PUSH message to the type of message, can favorably be handled in message push on message-oriented middleware
Efficiency.In addition, waiting for PUSH message on third message-oriented middleware due to being monitored using watcher thread poll, it is ensured that third disappears
It waits for that PUSH message can obtain timely processing on breath middleware, improves the timeliness of Message Processing.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Embodiment 2
Fig. 4 shows to postpone the principle frame of message pusher correspondingly with delay information push method in embodiment 1
Figure.As shown in figure 4, the delay message pusher includes message capturing module 10, message template cache 20, delay judgement processing
Module 30 monitors processing module 40 and non-delayed processing module 50.Wherein, message capturing module 10, message template cache 20, prolong
Postpone to disappear in the realization function and embodiment 1 of slow judging treatmenting module 30, monitoring processing module 40 and non-delayed processing module 50
It ceases the corresponding step of method for pushing to correspond, to avoid repeating, the present embodiment is not described in detail one by one.
Message capturing module 10 waits for PUSH message for obtaining, waits for that PUSH message includes type of message and source template.
It is corresponding with type of message will to wait for that PUSH message is buffered in for being based on type of message for message template cache 20
On target message middleware.
Postpone judging treatmenting module 30, for waiting for whether PUSH message is delay message according to source template determination, if waiting for
PUSH message is delay message, then will wait for that PUSH message is buffered on the delay queue created on target message middleware.
Processing module 40 is monitored, for monitoring delay queue using watcher thread poll, and to caching in delay queue
Wait for that PUSH message carries out push processing.
Further, message template cache 20 includes first message buffer unit 21 and second message buffer unit 22.
First message buffer unit 21, for when type of message is single task type, will wait for that PUSH message is buffered in
On first message middleware corresponding with single task type.
Second message buffer unit 22, for when type of message is batch tasks type, treating PUSH message and being appointed
Business is split, and forms at least two batch subtask message to split, and at least two batch subtask message are respectively stored into
On second message middleware corresponding with batch tasks type.
Wherein, target message middleware includes first message middleware and second message middleware.
Preferably, postpone to carry in message that the time can be pushed.
It monitors processing module 40 and specifically includes the monitoring monitoring of processing unit 42 and second of target message acquiring unit 41, first
Processing unit 43.
Target message acquiring unit 41 is waited for PUSH message for being monitored in delay queue using watcher thread poll, obtained
Take target PUSH message.
First monitors processing unit 42, for when the type of message of target PUSH message is single task type, then existing
Current time in system is that target PUSH message is sent to a push server when can push the time, so that a push server pushes
The target PUSH message received.
Second monitors processing unit 43, is batch tasks type for the type of message in target PUSH message, then target
PUSH message is target subtask message, and the state of target subtask message in message state data table is updated to shape to be pushed
State, and when the current time in system is that can push the time, target subtask message is sent to a push server, so that a praise and admire
Business device pushes the target subtask message received.
Preferably, delay message pusher further includes non-delayed processing module 50.
Non-delayed processing module 50, for when PUSH message is non-delayed message, it is a will to wait for that PUSH message is sent to
Push server so that a push server real time push receive wait for PUSH message.
Preferably, message template cache 20 further includes third message buffer unit 23, for appointing for the whole network in type of message
It when service type, then waits for that PUSH message is non-delayed message, will wait for that PUSH message is buffered in corresponding with the whole network task type the
On three message-oriented middlewares.
It further includes that third monitors processing unit 44 to monitor processing module 40, is disappeared for monitoring third using watcher thread poll
PUSH message is waited in breath middleware, obtains target PUSH message, and target PUSH message is sent to a push server, so that
The target PUSH message that a push server real time push receives.
Wherein, target message middleware further includes third message-oriented middleware.
Embodiment 3
The present embodiment provides a kind of computer readable storage medium, computer is stored on the computer readable storage medium
Program is realized in embodiment 1 when the computer program is executed by processor and postpones information push method, to avoid repeating, here
It repeats no more.Alternatively, realizing each mould for postponing message pusher in embodiment 2 when the computer program is executed by processor
The function of block/unit, to avoid repeating, which is not described herein again.
It is to be appreciated that the computer readable storage medium may include:Any of computer program code can be carried
Entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal and telecommunication signal etc..
Embodiment 4
Fig. 5 is the schematic diagram for the computer equipment that one embodiment of the invention provides.As shown in figure 5, the calculating of the embodiment
Machine equipment 60 includes:Processor 61, memory 62 and it is stored in the calculating that can be run in memory 62 and on processor 61
Machine program 63.Processor 61 realizes the step of postponing information push method in above-described embodiment 1, example when executing computer program 63
Step S10-S50 as shown in Figure 1.Alternatively, realizing that delay message pushes away in embodiment 2 when processor 61 executes computer program 63
Send the function of each module/unit of device, for example, message capturing module 10 shown in Fig. 5, message template cache 20, at delay judgement
The function of managing module 30, monitor processing module 40 and non-delayed processing module 50.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of delay information push method, which is characterized in that including:
Acquisition waits for PUSH message, described to wait for that PUSH message includes type of message and source template;
Based on the type of message, wait for that PUSH message is buffered among target message corresponding with the type of message by described
On part;
According to waiting for whether PUSH message is delay message described in source template determination, if described wait for that PUSH message is described prolongs
Slow message then waits for that PUSH message is buffered on the delay queue created on the target message middleware by described;
The delay queue is monitored using watcher thread poll, and waits for that PUSH message pushes away to what is cached in the delay queue
Send processing.
2. delay information push method as described in claim 1, which is characterized in that it is described to be based on the type of message, by institute
It states and waits for that PUSH message is buffered on target message middleware corresponding with the type of message, including:
If the type of message is single task type, wait for that PUSH message is buffered in and the single task type phase by described
On corresponding first message middleware;
If the type of message is batch tasks type, waits for that PUSH message carries out task fractionation to described, formed extremely with splitting
Few two batch subtask message, and at least two batch subtask message are respectively stored into and the batch tasks type phase
On corresponding second message middleware;
Wherein, the target message middleware includes first message middleware and second message middleware.
3. delay information push method as claimed in claim 2, which is characterized in that carry and can push in the delay message
Time;
It is described that the delay queue is monitored using watcher thread poll, and to cached in the delay queue wait for PUSH message into
Row push is handled, including:
The PUSH message that waits in the delay queue is monitored using watcher thread poll, obtains target PUSH message;
If the type of message of the target PUSH message is single task type, when that can be pushed for described in the current time in system
Between when, the target PUSH message is sent to push server, so that a push server pushes the mesh received
Mark PUSH message;
If the type of message of the target PUSH message is batch tasks type, the target PUSH message is target subtask
The state of target subtask message described in message state data table is updated to wait for push state by message, and current in system
When time can push the time for described in, target subtask message is sent to a push server, so that described is praised and admired business
Device pushes the target subtask message received.
4. delay information push method as described in claim 1, which is characterized in that determined according to the source template described
It is described wait for PUSH message whether be delay message the step of after, the delay information push method further includes:
If described wait for that PUSH message is non-delayed message, wait for that PUSH message is sent to a push server by described, so that described
What a push server real time push received described waits for PUSH message.
5. delay information push method as described in claim 1, which is characterized in that it is described to be based on the type of message, by institute
It states and waits for that PUSH message is buffered on target message middleware corresponding with the type of message, further include:
It is described to wait for that PUSH message is non-delayed message if the type of message is the whole network task type, wait for that push disappears by described
Breath is buffered on third message-oriented middleware corresponding with the whole network task type;
The PUSH message that waits in the third message-oriented middleware is monitored using watcher thread poll, obtains target PUSH message, and
The target PUSH message is sent to a push server, so that the target that a push server real time push receives
PUSH message;
Wherein, the target message middleware further includes the third message-oriented middleware.
6. a kind of delay message pusher, which is characterized in that including:
Message capturing module waits for PUSH message for obtaining, described to wait for that PUSH message includes type of message and source template;
Message template cache waits for that PUSH message is buffered in and the type of message phase for being based on the type of message by described
On corresponding target message middleware;
Postpone judging treatmenting module, for according to the source template determine described in wait for PUSH message whether be delay message, if
It is described to wait for that PUSH message is the delay message, then it waits for PUSH message to be buffered on the target message middleware creating by described
Delay queue on;
Processing module is monitored, for monitoring the delay queue using watcher thread poll, and to being cached in the delay queue
Wait for that PUSH message carries out push processing.
7. delay message pusher as claimed in claim 6, which is characterized in that the message template cache, including:
First message buffer unit, for when the type of message is single task type, waiting for that PUSH message caches by described
On first message middleware corresponding with the single task type;
Second message buffer unit, for when the type of message is batch tasks type, waiting for that PUSH message carries out to described
Task is split, and forms at least two batch subtask message to split, and at least two batch subtask message are stored respectively
Onto second message middleware corresponding with the batch tasks type;
Wherein, the target message middleware includes first message middleware and second message middleware.
8. delay message pusher as claimed in claim 7, which is characterized in that carry and can push in the delay message
Time;
The monitoring processing module, including:
Target message acquiring unit is obtained for monitoring the PUSH message that waits in the delay queue using watcher thread poll
Target PUSH message;
First monitors processing unit, for when the type of message of the target PUSH message is single task type, being then
When system current time can push the time for described in, the target PUSH message is sent to a push server, so that described pushes away
The target PUSH message that server push receives;
Second monitors processing unit, is batch tasks type for the type of message in the target PUSH message, then the mesh
Mark PUSH message is target subtask message, and the state of target subtask message described in message state data table is updated to wait for
Push state, and when the current time in system time can be pushed for described in, target subtask message is sent to a praise and admire
Business device, so that a push server pushes the target subtask message received.
9. a kind of computer equipment, including memory, processor and it is stored in the memory and can be in the processor
The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to
The step of any one of 5 delay information push method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist
In realizing the delay information push method as described in any one of claim 1 to 5 when the computer program is executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810138032.6A CN108388479B (en) | 2018-02-10 | 2018-02-10 | Delayed message pushing method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810138032.6A CN108388479B (en) | 2018-02-10 | 2018-02-10 | Delayed message pushing method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108388479A true CN108388479A (en) | 2018-08-10 |
CN108388479B CN108388479B (en) | 2021-09-24 |
Family
ID=63075808
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810138032.6A Active CN108388479B (en) | 2018-02-10 | 2018-02-10 | Delayed message pushing method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108388479B (en) |
Cited By (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965032A (en) * | 2018-08-22 | 2018-12-07 | 北京奇虎科技有限公司 | A kind of message push amount statistical method and device based on round-robin queue |
CN109587038A (en) * | 2018-11-30 | 2019-04-05 | 深圳市买买提信息科技有限公司 | Information push method and device |
CN109787884A (en) * | 2019-01-02 | 2019-05-21 | 中国联合网络通信集团有限公司 | A kind of information push method and device |
CN110247963A (en) * | 2019-05-31 | 2019-09-17 | 北京智慧云行科技有限责任公司 | A kind of data push method and system |
CN110502327A (en) * | 2019-08-28 | 2019-11-26 | 四川长虹电器股份有限公司 | Method based on the processing of Redis high concurrent delayed tasks |
CN110648052A (en) * | 2019-09-02 | 2020-01-03 | 浙江大搜车软件技术有限公司 | Wind control decision method and device, computer equipment and storage medium |
CN111083042A (en) * | 2019-12-17 | 2020-04-28 | 北京每日优鲜电子商务有限公司 | Template message pushing method, device, equipment and storage medium |
CN111225041A (en) * | 2019-12-26 | 2020-06-02 | 的卢技术有限公司 | Method and system for realizing delay message queue |
CN111510469A (en) * | 2019-01-31 | 2020-08-07 | 上海哔哩哔哩科技有限公司 | Message processing method and device |
CN111786886A (en) * | 2020-06-30 | 2020-10-16 | 京东数字科技控股有限公司 | Message processing method, device and system, electronic equipment and storage medium |
CN111782414A (en) * | 2020-05-12 | 2020-10-16 | 北京皮尔布莱尼软件有限公司 | Delay message processing method and system |
CN111901619A (en) * | 2020-07-23 | 2020-11-06 | 北京达佳互联信息技术有限公司 | Message pushing method and device |
CN111949417A (en) * | 2020-07-03 | 2020-11-17 | 福建天泉教育科技有限公司 | Message transmission method and storage medium |
CN112087373A (en) * | 2020-09-21 | 2020-12-15 | 全通金信控股(广东)有限公司 | Message sending method and service device |
CN112148504A (en) * | 2020-09-15 | 2020-12-29 | 海尔优家智能科技(北京)有限公司 | Target message processing method and device, storage medium and electronic device |
CN112256954A (en) * | 2020-09-08 | 2021-01-22 | 国网宁夏电力有限公司经济技术研究院 | Message pushing processing method and related system |
CN112488462A (en) * | 2020-11-13 | 2021-03-12 | 山东中创软件商用中间件股份有限公司 | Unified pushing method, device and medium for workflow data |
CN112702259A (en) * | 2020-12-23 | 2021-04-23 | 北京焦点新干线信息技术有限公司 | Delayed message pushing method and device and message middleware |
CN112783633A (en) * | 2021-02-08 | 2021-05-11 | 中国工商银行股份有限公司 | Data updating system and method based on resource mutual exclusion scheduling model |
CN113064707A (en) * | 2021-03-31 | 2021-07-02 | 腾讯科技(深圳)有限公司 | Message processing method, device and equipment |
CN113595814A (en) * | 2021-07-06 | 2021-11-02 | 深圳Tcl新技术有限公司 | Message delay detection method and device, electronic equipment and storage medium |
CN113709257A (en) * | 2021-10-09 | 2021-11-26 | 天翼物联科技有限公司 | Message cache expiration monitoring method, device, equipment and medium |
CN113760556A (en) * | 2020-11-17 | 2021-12-07 | 西安京迅递供应链科技有限公司 | Message synchronization method and device |
CN114221925A (en) * | 2021-09-30 | 2022-03-22 | 北京奇艺世纪科技有限公司 | Message pushing method and device, electronic equipment and storage medium |
CN114629952A (en) * | 2022-03-16 | 2022-06-14 | 中国建设银行股份有限公司四川省分行 | Data pushing method and device |
CN114915652A (en) * | 2022-03-30 | 2022-08-16 | 北京奇艺世纪科技有限公司 | Message pushing method and device, electronic equipment and storage medium |
CN115065721A (en) * | 2022-04-21 | 2022-09-16 | 北京达佳互联信息技术有限公司 | Message processing method and device, electronic equipment and storage medium |
CN115529288A (en) * | 2022-09-21 | 2022-12-27 | 上海浦东发展银行股份有限公司 | Message pushing method and device, and computer equipment |
CN115914152A (en) * | 2022-10-12 | 2023-04-04 | 广州市玄武无线科技股份有限公司 | Receipt information pushing method, system and storage medium |
CN117057724A (en) * | 2023-07-04 | 2023-11-14 | 中国经济信息社有限公司 | Automatic manuscript construction and issuing method and device, electronic equipment and medium |
CN117997958A (en) * | 2024-04-02 | 2024-05-07 | 福建时代星云科技有限公司 | Method and system for pushing internet of things data of charging station |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055951A1 (en) * | 2001-08-01 | 2003-03-20 | Chemali Emilio F. | Products, apparatus and methods for handling computer software/hardware messages |
CN102761581A (en) * | 2011-04-28 | 2012-10-31 | 国际商业机器公司 | Dynamic subscription method and device of management information, as well as dissemination method and system |
US20130097615A1 (en) * | 2011-05-16 | 2013-04-18 | Oracle International Corporation | System and method for providing a messaging application program interface |
CN105871996A (en) * | 2015-12-15 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Message pushing system and method |
CN106210049A (en) * | 2016-07-12 | 2016-12-07 | Tcl集团股份有限公司 | A kind of cluster communication method based on Message Queuing and system |
CN106230896A (en) * | 2016-07-18 | 2016-12-14 | 深圳国泰安教育技术股份有限公司 | A kind of information push method, Apparatus and system |
CN106372504A (en) * | 2016-08-30 | 2017-02-01 | 北京奇艺世纪科技有限公司 | Security threat data integration method, device and system |
CN106412027A (en) * | 2016-09-12 | 2017-02-15 | 曙光信息产业(北京)有限公司 | Server message push method and system |
CN106850402A (en) * | 2017-01-16 | 2017-06-13 | 腾讯科技(深圳)有限公司 | The transmission method and device of message |
CN107026917A (en) * | 2017-06-16 | 2017-08-08 | 智者四海(北京)技术有限公司 | The method and system pushed for message |
CN107087033A (en) * | 2017-05-17 | 2017-08-22 | 深圳市小牛在线互联网信息咨询有限公司 | Information push method, device, storage medium and computer equipment |
CN107231313A (en) * | 2016-03-25 | 2017-10-03 | 北京京东尚科信息技术有限公司 | Method of data synchronization and system based on message routing mode |
-
2018
- 2018-02-10 CN CN201810138032.6A patent/CN108388479B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055951A1 (en) * | 2001-08-01 | 2003-03-20 | Chemali Emilio F. | Products, apparatus and methods for handling computer software/hardware messages |
CN102761581A (en) * | 2011-04-28 | 2012-10-31 | 国际商业机器公司 | Dynamic subscription method and device of management information, as well as dissemination method and system |
US20130097615A1 (en) * | 2011-05-16 | 2013-04-18 | Oracle International Corporation | System and method for providing a messaging application program interface |
CN105871996A (en) * | 2015-12-15 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Message pushing system and method |
CN107231313A (en) * | 2016-03-25 | 2017-10-03 | 北京京东尚科信息技术有限公司 | Method of data synchronization and system based on message routing mode |
CN106210049A (en) * | 2016-07-12 | 2016-12-07 | Tcl集团股份有限公司 | A kind of cluster communication method based on Message Queuing and system |
CN106230896A (en) * | 2016-07-18 | 2016-12-14 | 深圳国泰安教育技术股份有限公司 | A kind of information push method, Apparatus and system |
CN106372504A (en) * | 2016-08-30 | 2017-02-01 | 北京奇艺世纪科技有限公司 | Security threat data integration method, device and system |
CN106412027A (en) * | 2016-09-12 | 2017-02-15 | 曙光信息产业(北京)有限公司 | Server message push method and system |
CN106850402A (en) * | 2017-01-16 | 2017-06-13 | 腾讯科技(深圳)有限公司 | The transmission method and device of message |
CN107087033A (en) * | 2017-05-17 | 2017-08-22 | 深圳市小牛在线互联网信息咨询有限公司 | Information push method, device, storage medium and computer equipment |
CN107026917A (en) * | 2017-06-16 | 2017-08-08 | 智者四海(北京)技术有限公司 | The method and system pushed for message |
Non-Patent Citations (2)
Title |
---|
JINGYANG WANG等: "Realizing Filter Mechanism of CORBA Notification Service with Push Model in Network Management System", 《2009 INTERNATIONAL WORKSHOP ON INTELLIGENT SYSTEMS AND APPLICATIONS》 * |
徐进: "基于消息通信的分布式系统最终一致性平台", 《计算及应用》 * |
Cited By (51)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965032B (en) * | 2018-08-22 | 2022-07-01 | 北京奇虎科技有限公司 | Message pushing amount statistical method and device based on circular queue |
CN108965032A (en) * | 2018-08-22 | 2018-12-07 | 北京奇虎科技有限公司 | A kind of message push amount statistical method and device based on round-robin queue |
CN109587038A (en) * | 2018-11-30 | 2019-04-05 | 深圳市买买提信息科技有限公司 | Information push method and device |
CN109787884A (en) * | 2019-01-02 | 2019-05-21 | 中国联合网络通信集团有限公司 | A kind of information push method and device |
CN109787884B (en) * | 2019-01-02 | 2021-03-12 | 中国联合网络通信集团有限公司 | Message pushing method and device |
CN111510469A (en) * | 2019-01-31 | 2020-08-07 | 上海哔哩哔哩科技有限公司 | Message processing method and device |
CN110247963A (en) * | 2019-05-31 | 2019-09-17 | 北京智慧云行科技有限责任公司 | A kind of data push method and system |
CN110502327A (en) * | 2019-08-28 | 2019-11-26 | 四川长虹电器股份有限公司 | Method based on the processing of Redis high concurrent delayed tasks |
CN110648052A (en) * | 2019-09-02 | 2020-01-03 | 浙江大搜车软件技术有限公司 | Wind control decision method and device, computer equipment and storage medium |
CN110648052B (en) * | 2019-09-02 | 2022-07-01 | 浙江大搜车软件技术有限公司 | Wind control decision method and device, computer equipment and storage medium |
CN111083042A (en) * | 2019-12-17 | 2020-04-28 | 北京每日优鲜电子商务有限公司 | Template message pushing method, device, equipment and storage medium |
CN111083042B (en) * | 2019-12-17 | 2021-11-30 | 北京每日优鲜电子商务有限公司 | Template message pushing method, device, equipment and storage medium |
CN111225041A (en) * | 2019-12-26 | 2020-06-02 | 的卢技术有限公司 | Method and system for realizing delay message queue |
CN111225041B (en) * | 2019-12-26 | 2023-04-07 | 西藏宁算科技集团有限公司 | Method and system for realizing delay message queue |
CN111782414A (en) * | 2020-05-12 | 2020-10-16 | 北京皮尔布莱尼软件有限公司 | Delay message processing method and system |
CN111782414B (en) * | 2020-05-12 | 2024-04-19 | 北京皮尔布莱尼软件有限公司 | Delay message processing method and system |
CN111786886A (en) * | 2020-06-30 | 2020-10-16 | 京东数字科技控股有限公司 | Message processing method, device and system, electronic equipment and storage medium |
CN111949417A (en) * | 2020-07-03 | 2020-11-17 | 福建天泉教育科技有限公司 | Message transmission method and storage medium |
CN111949417B (en) * | 2020-07-03 | 2024-03-01 | 福建天泉教育科技有限公司 | Message transmission method and storage medium |
CN111901619B (en) * | 2020-07-23 | 2023-10-31 | 北京达佳互联信息技术有限公司 | Message pushing method and device |
CN111901619A (en) * | 2020-07-23 | 2020-11-06 | 北京达佳互联信息技术有限公司 | Message pushing method and device |
CN112256954A (en) * | 2020-09-08 | 2021-01-22 | 国网宁夏电力有限公司经济技术研究院 | Message pushing processing method and related system |
CN112148504A (en) * | 2020-09-15 | 2020-12-29 | 海尔优家智能科技(北京)有限公司 | Target message processing method and device, storage medium and electronic device |
CN112087373A (en) * | 2020-09-21 | 2020-12-15 | 全通金信控股(广东)有限公司 | Message sending method and service device |
CN112488462A (en) * | 2020-11-13 | 2021-03-12 | 山东中创软件商用中间件股份有限公司 | Unified pushing method, device and medium for workflow data |
CN113760556A (en) * | 2020-11-17 | 2021-12-07 | 西安京迅递供应链科技有限公司 | Message synchronization method and device |
CN112702259B (en) * | 2020-12-23 | 2023-05-23 | 北京焦点新干线信息技术有限公司 | Delay message pushing method and device and message middleware |
CN112702259A (en) * | 2020-12-23 | 2021-04-23 | 北京焦点新干线信息技术有限公司 | Delayed message pushing method and device and message middleware |
CN112783633A (en) * | 2021-02-08 | 2021-05-11 | 中国工商银行股份有限公司 | Data updating system and method based on resource mutual exclusion scheduling model |
CN112783633B (en) * | 2021-02-08 | 2024-08-02 | 中国工商银行股份有限公司 | Data updating system and method based on resource mutual exclusion scheduling model |
CN113064707A (en) * | 2021-03-31 | 2021-07-02 | 腾讯科技(深圳)有限公司 | Message processing method, device and equipment |
CN113064707B (en) * | 2021-03-31 | 2023-01-13 | 腾讯科技(深圳)有限公司 | Message processing method, device and equipment |
GB2623692A (en) * | 2021-07-06 | 2024-04-24 | Shenzhen Tcl New Tech Co Ltd | Message delay detection method and apparatus, electronic device, and storage medium |
WO2023279829A1 (en) * | 2021-07-06 | 2023-01-12 | 深圳Tcl新技术有限公司 | Message delay detection method and apparatus, electronic device, and storage medium |
CN113595814A (en) * | 2021-07-06 | 2021-11-02 | 深圳Tcl新技术有限公司 | Message delay detection method and device, electronic equipment and storage medium |
CN114221925A (en) * | 2021-09-30 | 2022-03-22 | 北京奇艺世纪科技有限公司 | Message pushing method and device, electronic equipment and storage medium |
CN114221925B (en) * | 2021-09-30 | 2024-05-03 | 北京奇艺世纪科技有限公司 | Message pushing method and device, electronic equipment and storage medium |
CN113709257B (en) * | 2021-10-09 | 2024-04-23 | 天翼物联科技有限公司 | Message cache out-of-date monitoring method, device, equipment and medium |
CN113709257A (en) * | 2021-10-09 | 2021-11-26 | 天翼物联科技有限公司 | Message cache expiration monitoring method, device, equipment and medium |
CN114629952A (en) * | 2022-03-16 | 2022-06-14 | 中国建设银行股份有限公司四川省分行 | Data pushing method and device |
CN114915652B (en) * | 2022-03-30 | 2024-03-15 | 北京奇艺世纪科技有限公司 | Message pushing method and device, electronic equipment and storage medium |
CN114915652A (en) * | 2022-03-30 | 2022-08-16 | 北京奇艺世纪科技有限公司 | Message pushing method and device, electronic equipment and storage medium |
CN115065721A (en) * | 2022-04-21 | 2022-09-16 | 北京达佳互联信息技术有限公司 | Message processing method and device, electronic equipment and storage medium |
CN115065721B (en) * | 2022-04-21 | 2024-06-21 | 北京达佳互联信息技术有限公司 | Message processing method, device, electronic equipment and storage medium |
CN115529288B (en) * | 2022-09-21 | 2024-04-19 | 上海浦东发展银行股份有限公司 | Message pushing method, device and computer equipment |
CN115529288A (en) * | 2022-09-21 | 2022-12-27 | 上海浦东发展银行股份有限公司 | Message pushing method and device, and computer equipment |
CN115914152B (en) * | 2022-10-12 | 2023-11-21 | 广州市玄武无线科技股份有限公司 | Receipt information pushing method, system and storage medium |
CN115914152A (en) * | 2022-10-12 | 2023-04-04 | 广州市玄武无线科技股份有限公司 | Receipt information pushing method, system and storage medium |
CN117057724A (en) * | 2023-07-04 | 2023-11-14 | 中国经济信息社有限公司 | Automatic manuscript construction and issuing method and device, electronic equipment and medium |
CN117997958A (en) * | 2024-04-02 | 2024-05-07 | 福建时代星云科技有限公司 | Method and system for pushing internet of things data of charging station |
CN117997958B (en) * | 2024-04-02 | 2024-06-28 | 福建时代星云科技有限公司 | Method and system for pushing internet of things data of charging station |
Also Published As
Publication number | Publication date |
---|---|
CN108388479B (en) | 2021-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108388479A (en) | Postpone information push method, device, computer equipment and storage medium | |
US11762697B2 (en) | Method and apparatus for scheduling resource for deep learning framework | |
CN108449410B (en) | Message management method, system and related device in cloud platform | |
CN107370667B (en) | Multithreading parallel processing method and device, readable medium and storage controller | |
US20140149590A1 (en) | Scaling computing clusters in a distributed computing system | |
CN108681777B (en) | Method and device for running machine learning program based on distributed system | |
CN108932157B (en) | Method, system, electronic device and readable medium for distributed processing of tasks | |
CN111338773A (en) | Distributed timed task scheduling method, scheduling system and server cluster | |
CN111414389A (en) | Data processing method and device, electronic equipment and storage medium | |
CN109254854A (en) | Asynchronous invoking method, computer installation and storage medium | |
CN109783151B (en) | Method and device for rule change | |
CN112948498A (en) | Method and device for generating global identification of distributed system | |
CN111694792A (en) | Identification generation method and device based on snowfly | |
CN108984290A (en) | Method for scheduling task and system | |
CN111338834B (en) | Data storage method and device | |
CN114610504A (en) | Message processing method and device, electronic equipment and storage medium | |
CN107908481A (en) | A kind of method of data synchronization, device and system | |
CN110019131B (en) | Method and device for multi-disk service | |
CN110022323A (en) | A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux | |
CN105610986A (en) | Service scheduling method, load balancing server and service scheduling system | |
CN116795492A (en) | Resource scheduling method, device and equipment of cloud platform and readable storage medium | |
CN105335362B (en) | The processing method and system of real time data, instant disposal system for treating | |
CN111190731A (en) | Cluster task scheduling system based on weight | |
CN114356970B (en) | Storage system resource caching method and device | |
CN109040491A (en) | On-hook behavior processing method, device, computer equipment 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |