CN106254435A - Message push system and method - Google Patents

Message push system and method Download PDF

Info

Publication number
CN106254435A
CN106254435A CN201610605855.6A CN201610605855A CN106254435A CN 106254435 A CN106254435 A CN 106254435A CN 201610605855 A CN201610605855 A CN 201610605855A CN 106254435 A CN106254435 A CN 106254435A
Authority
CN
China
Prior art keywords
message
data
broadcast
push
client
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
CN201610605855.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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610605855.6A priority Critical patent/CN106254435A/en
Publication of CN106254435A publication Critical patent/CN106254435A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1859Arrangements for providing special services to substations for broadcast or conference, e.g. multicast adapted to provide push services, e.g. data channels

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of information push method, including: when receiving the broadcast that the first client sends, determine the type of message of described broadcast, judge whether to need the data that described broadcast is corresponding are calculated according to described type of message;If desired the data that described broadcast is corresponding are calculated, then from described target database, obtain the data corresponding with described broadcast;Described data it is loaded onto specified database and calculates, generate PUSH message according to result of calculation and described PUSH message is pushed to the second client.The invention also discloses a kind of message push system.Present invention saves message push system and carry out the resource of message propelling movement.

Description

Message push system and method
Technical field
The present invention relates to server data processing technology field, particularly relate to a kind of message push system and method.
Background technology
At present, a lot of clients are required for the substantial amounts of server in backstage and are supported.Such as, for Push Service, rear Platform must have message push server to service.Wherein, during message pushes, message push server and visitor are needed Family end keeps long and connects, and the most each client has long a connection to keep with message push server, so can be real Now push.Therefore, each client can arrange the different labels for respective business, another name etc. at message push server end The relevant information of property, or the identification information closely bound up with respective business.Make the message push server can be according to not Same label, another name carry out handing over and differing from calculating, push relevant message to the client specified.
Generally, owing to the data of client are huge, carry out handing over and differ from meter by the label of big data quantity, Alias data When calculating (being equivalent to millions of several data acquisition system of ten million), message push server directly calculates this big data in data base Friendship the difference of duration set are not all right, it is generally required to calculative label, Alias data are all cached to message push service In the buffer area of device, calculated by the friendship difference carrying out large data sets conjunction in buffer area.Do so needs to consume message and pushes The spatial cache of server big data quantity, management is safeguarded and the input cost of resource is relatively big, wastes consumption message and pushes clothes The ample resources of business device.
Summary of the invention
Present invention is primarily targeted at a kind of message push system of offer and method, it is intended to save message push system and enter The resource that row message pushes.
For achieving the above object, the invention provides a kind of message push system, described message push system includes:
Judge module, for when receiving the broadcast that the first client sends, determining disappearing of described broadcast Breath type, judges whether to need to calculate the data that described broadcast is corresponding according to described type of message;
Acquisition module, for if desired calculating the data that described broadcast is corresponding, then from described target data Storehouse obtains the data corresponding with described broadcast;
First pushing module, for described data being loaded onto specified database and calculating, raw according to result of calculation Become PUSH message and described PUSH message is pushed to the second client.
Alternatively, described message push system also includes:
Removing module, for after described PUSH message is pushed to the second client, deletes and produces during calculating Data.
Alternatively, described judge module is additionally operable to, it is judged that whether described type of message includes described second client only One mark;If, it is determined that need not the data to described broadcast is corresponding and calculate;Otherwise determine needs to described extensively The data broadcasting message corresponding calculate.
Alternatively, described first pushing module is additionally operable to, and determines the calculation of corresponding types according to described type of message, Load and calculate described data according to described calculation.
Alternatively, described message push system also includes:
Second pushing module, if calculating for the data that need not described broadcast is corresponding, then delays from target Deposit the target data that middle acquisition is corresponding with described broadcast, generate target PUSH message according to described target data, by described Target PUSH message sends to described second client.
Additionally, for achieving the above object, present invention also offers a kind of information push method, described information push method bag Include:
When receiving the broadcast that the first client sends, determine the type of message of described broadcast, according to institute State type of message to judge whether to need the data that described broadcast is corresponding are calculated;
If desired the data that described broadcast is corresponding are calculated, then obtain and described broadcast from target database The data that message is corresponding;
Described data it is loaded onto specified database and calculates, generating PUSH message and by described according to result of calculation PUSH message pushes to the second client.
Alternatively, described information push method also includes:
After described PUSH message is pushed to the second client, delete the data produced during calculating.
Alternatively, described according to described type of message judge whether need the data that described broadcast is corresponding are counted Including:
Judge whether described type of message includes unique mark of described second client;
If described type of message includes unique mark of described second client, it is determined that need not described broadcast Corresponding data calculate;
If described type of message does not include unique mark of described second client, it is determined that need described broadcast Corresponding data calculate.
Alternatively, described data are loaded onto specified database and carry out calculating and include:
Described data are loaded onto specified database, determine the calculation of corresponding types, root according to described type of message Described data are calculated according to described calculation.
Alternatively, described according to described type of message judge whether need the data that described broadcast is corresponding are counted Include after calculation:
If need not the data to described broadcast is corresponding calculate, then obtain and described broadcast from target cache The target data that message is corresponding, generates target PUSH message according to described target data, is sent extremely by described target PUSH message Described second client.
The message push system of embodiment of the present invention offer and method, by receiving the broadcast that the first client sends During message, determine when needing the data that broadcast is corresponding are calculated according to the type of message of broadcast, from number of targets According to storehouse obtains the data corresponding with broadcast.These data are loaded onto specified database and calculate accordingly, and will The PUSH message that result of calculation is generated pushes to the second client.It is achieved thereby that target database carries out data storage and refers to Given data storehouse carries out the separation of data calculating, even if running into friendship the difference calculating of big data quantity, it is also possible to save message and push system Unite substantial amounts of resource, reduce cost.
Accompanying drawing explanation
Fig. 1 is the module diagram of message push system first embodiment of the present invention;
Fig. 2 is the module diagram of message push system the second embodiment of the present invention;
Fig. 3 is the module diagram of message push system the 5th embodiment of the present invention
Fig. 4 is the schematic flow sheet of information push method first embodiment of the present invention;
Fig. 5 is the schematic flow sheet of information push method the second embodiment of the present invention;
Fig. 6 is the schematic flow sheet of information push method the 5th embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further referring to the drawings.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
As shown in Figure 1, it is shown that one message push system first embodiment of the present invention.The message of this embodiment pushes system System includes:
Judge module 10, for when receiving the broadcast that the first client sends, determining described broadcast Type of message, judges whether to need to calculate the data that described broadcast is corresponding according to described type of message;
In the present embodiment, it is necessary first to dispose apps server in message push system, for storing data Database server, hand over and the calculation server of difference data and for sending the access server of PUSH message for calculating data Deng.The number of each server can be arranged as the case may be and flexibly, such as, can dispose multiple stage calculation server, use respectively In processing different calculating tasks.
First client is the backstage of message push system, when needs carry out message propelling movement, and can be by message push system Backstage shows corresponding configuration interface, receives the configuration information of user's input, this configuration information can include PUSH message content, The object etc. pushed.Then configuration information is sent to application program service by message push system backstage with the form of broadcast Device.
Judge module 10 when receiving this broadcast, determines the message of this broadcast by apps server Type, judges whether to calculate the data that broadcast is corresponding according to type of message.Such as, when broadcast is for specifying Account or the type such as device number, it is not necessary to calculating the data that this broadcast is corresponding, this calculating may refer to extensively The data broadcasting message carry out handing over and differ from calculating.When broadcast is according to label, another name, sex or place etc. condition, need The data that this broadcast is corresponding are calculated, i.e. needs the data of broadcast are handed over and differs from calculating.
Acquisition module 20, for if desired calculating the data that described broadcast is corresponding, then from described number of targets According to storehouse obtains the data corresponding with described broadcast;
In the present embodiment, this target database corresponds to database server, when determine need broadcast corresponding When data calculate accordingly, acquisition module 20 is obtained from database server by apps server and disappears with broadcast The data that breath is corresponding, such as, when broadcast includes label, another name, sex or place, divide from database server Cha Xun not meet the data of the conditions such as label, another name, sex or place.The data obtained are sent to calculation server, when having During multiple condition, need to inquire about in batches and loading data be to calculation server, and send computations to this calculation server, So that calculation server knows that data are ready for calculating.
First pushing module 30, for being loaded onto specified database by described data and calculating, according to result of calculation Generate PUSH message and described PUSH message is pushed to the second client.
In the present embodiment, this specified database corresponds to calculation server, calculation server according to the data received and These data are calculated by computations accordingly.Such as, push to meet " man, 18 years old, Guangdong by PUSH message when needs Save " the second client of these three condition time, the data that " male " will be met, the data meeting " 18 years old " and satisfied " Guangdong Province " Data carry out intersection operation, to be met the data of these three condition simultaneously.When PUSH message is pushed to meet by needs During second client of " Guangdong Province or Fujian Province " condition, the data of the data and satisfied " Fujian Province " that meet " Guangdong Province " are entered Row union operation, to be met either condition in the two condition or to meet the data of the two condition simultaneously.Then first Pushing module 30 generates PUSH message by calculation server according to result of calculation, sends PUSH message to access server, This PUSH message includes that the message such as the content of PUSH message and the object of propelling movement is detailed.
PUSH message, after receiving PUSH message, is pushed to forms such as mail, pop-up, notes by access server Two clients, this second client can be the client of terminal, and this second client can be the application in terminal, this terminal Type can be configured according to actual needs.Such as, this terminal includes mobile phone, panel computer, computer and intelligent television etc..
Hereinafter being illustrated, in one embodiment, apps server is receiving what the first client sent Broadcast, this broadcast includes pushing to message 18 years old, the second client corresponding to male user, disappears according to this broadcast The type of message of breath determines that the data that this broadcast is corresponding are carried out occuring simultaneously by needs and calculates.Apps server is from data base Server obtains the data meeting 18 years old user, and obtains the data meeting male user, the data obtained are sent extremely Calculation server.The calculation server data to receiving carry out occur simultaneously calculate, with met 18 years old simultaneously and male this two The data of individual condition, and generate PUSH message, PUSH message is sent to access server.By access server by PUSH message The form shown with pop-up pushes to the second client, and terminal pop-up in display interface corresponding to the second client shows that this pushes away Send message.
In another embodiment, apps server is receiving the broadcast that the first client sends, this broadcast Message includes pushing to message Guangdong Province or the second client corresponding to Fujian Province user, according to the message class of this broadcast Type determines that needs carry out union calculating to the data that this broadcast is corresponding.Apps server obtains from database server Take the data meeting Guangdong Province user, and obtain the data meeting Fujian Province user, the data obtained are sent to calculating clothes Business device.The calculation server data to receiving carry out union calculating, to be met Guangdong Province or Fujian Province's condition simultaneously Data, and generate PUSH message, PUSH message is sent to access server.By access server, PUSH message is shown with mail The form shown pushes to the second client.
The embodiment of the present invention is by disposing apps server, database server, calculating in message push system Server and access server, wherein, apps server is receiving the broadcast that the first client sends, and according to The type of message of broadcast determines when needing to calculate the data that broadcast is corresponding, obtains from database server The data corresponding with broadcast send to calculation server.Data are calculated by calculation server accordingly, and will calculate The PUSH message that result is generated sends to access server.By access server, PUSH message pushed to the second client again End, the calculating data of storage are deleted by calculation server simultaneously.It is achieved thereby that database server carries out data storage Carry out data calculating with calculation server to separate, even if running into friendship the difference calculating of big data quantity, it is also possible to save message and push away Send system substantial amounts of resource, reduce cost.
Further, as in figure 2 it is shown, based on above-mentioned message push system first embodiment, it is proposed that message of the present invention pushes away Sending system the second embodiment, the present embodiment with the difference of message push system first embodiment of the present invention is, in the present embodiment on State message push system also to include:
Removing module 40, for after described PUSH message is pushed to the second client, deletes and produces during calculating Raw data.
In the present embodiment, in order to save the resource that message push system is consumed, removing module 40 is in described access service Device completion message push after, control described calculation server receive described access server completion message push after send delete Except instruction, according to described deletion instruction, the calculating data of storage are deleted;Or, in described access server completion message After propelling movement, control described calculation server and every Preset Time, the calculating data of storage are deleted.These calculating data are meter The data produced during calculation, including above-mentioned that receive that apps server sends over from database server with extensively Broadcast the data that message is corresponding, facilitate the memory space of calculation server for calculating use next time.
Specifically, calculation server can be calculation server after receiving deletion instruction to calculating the deletion of data, Passively delete calculating data, it is also possible to be that calculating data are actively deleted by calculation server at set intervals. Specifically, in one embodiment, deletion instruction, after completion message pushes, is sent to calculation server by access server.Meter The calculating data of storage, after receiving this deletion instruction, are deleted by calculation server.Or access server completes After message pushes, the notice being sent completely message propelling movement can obtain after receiving this notice to calculation server, calculation server Know that access server is complete message and pushes, it is not necessary to the calculating data of recycling storage, now can carry out calculating data Delete.
In another embodiment, access server completion message push after, calculation server every Preset Time to depositing The calculating data of storage are deleted, and this Preset Time can be configured according to practical situation.Or calculation server completes To receiving after the data that apps server sends over calculate accordingly, and the PUSH message generated is sent extremely After access server, every the appointment time, the calculating data of storage are deleted.
The present embodiment calculation server can refer to according to receiving access server deletion of transmission after completion message pushes The calculating data of storage are deleted by order, or after access server completion message pushes, will storage every Preset Time Calculating data delete.Thus save and calculate the resource that data take, and improve calculation server use Convenience.
Further, based on above-mentioned message push system first embodiment, it is proposed that message push system the 3rd of the present invention Embodiment, the present embodiment with the difference of message push system first embodiment of the present invention is, above-mentioned judge module in the present embodiment 10 are additionally operable to, it is judged that whether described type of message includes unique mark of described second client;If, it is determined that it is right to need not Data corresponding to described broadcast calculate;Otherwise determine that the data that described broadcast is corresponding are calculated by needs.
In the present embodiment, it is judged that the type of message of broadcast is being judged by module 10 by apps server During, by judging whether type of message includes unique mark of the second client, unique mark of this second client Can be the type of message such as appointment imei, device number or account of terminal corresponding to the second client, if type of message includes Unique mark of two clients, it is determined that need not the data that this broadcast is corresponding are handed over and differs from calculating etc. Reason, i.e. can determine that PUSH message needs appointment the second client pushed to.If type of message does not include the second client only One mark, but include the conditions such as label, another name, sex or place, it is determined that need the data corresponding to described broadcast Carry out handing over and differ from calculating etc. to process, in order to determine that PUSH message needs the second client pushed to.
The present embodiment apps server determines the need for disappearing broadcast by the content that type of message is comprised The data that breath is corresponding calculate, so as to PUSH message is pushed to the second client by accurate the, improves message and pushes Reliability.
Further, based on above-mentioned message push system first embodiment, it is proposed that message push system the 4th of the present invention Embodiment, the present embodiment with the difference of message push system first embodiment of the present invention is, in the present embodiment, above-mentioned first pushes Module 30 is additionally operable to, and determines the calculation of corresponding types according to described type of message, loads according to described calculation and counts Calculate described data.
In the present embodiment, when needing to calculate the data that described broadcast is corresponding, the first pushing module 30 leads to Cross described apps server from described database server, obtain the data corresponding with described broadcast, and according to institute State type of message and determine the target calculation server of corresponding types, described data and computations are sent to the calculating of described target Server.
Specifically, calculation server can include multiple different types of calculation server, dissimilar for processing respectively Calculating task, i.e. the calculation of calculation server is the most different, can pre-set multiple calculation server and needs and calculate Type of message between mapping relations.The data to broadcast is corresponding are needed to carry out when above-mentioned apps server determines During calculating, apps server obtains the data corresponding with broadcast from database server, and determines and need meter The type of message calculated, and according to the mapping relations between calculation server and type of message, determine that the target of corresponding types calculates Server, sends computations and the data that get from database server to target calculation server, in order to target These data are quickly calculated by calculation server according to corresponding calculation.
The present embodiment is by disposing multiple calculation server in message push system, and carries out each calculation server Clarification in certain roles, determines the calculation of corresponding types according to type of message, by target calculation server according to corresponding calculating side Formula calculates this data, improves calculating speed.
Further, as it is shown on figure 3, based on the arbitrary enforcement in above-mentioned message push system first to fourth embodiment Example, it is proposed that message push system the 5th embodiment of the present invention, the present embodiment and message push system first embodiment of the present invention Difference be that, in the present embodiment, message push system also includes:
Second pushing module 50, if calculating, then from target for the data that need not described broadcast is corresponding Caching obtains the target data corresponding with described broadcast, generates target PUSH message according to described target data, by institute State target PUSH message to send to described second client.
In the present embodiment, target cache corresponds to caching server, and message push system is also deployed with for data cached Caching server, when determine need not the data that broadcast is corresponding are calculated accordingly time, the second pushing module 50 From caching server, the target data corresponding with broadcast is obtained, then according to this number of targets by apps server According to generating target PUSH message, this target PUSH message includes that the message such as the content of PUSH message and the object of propelling movement is detailed, will Target PUSH message sends to access server.Access server is after receiving target PUSH message, by target PUSH message Pushing to the second client with forms such as mail, pop-up, notes, this second client can be the client of terminal, this second visitor Family end can be the application in terminal, and the type of this terminal can be configured according to actual needs.Such as, this terminal includes hands Machine, panel computer, computer and intelligent television etc..
Hereinafter being illustrated, apps server is receiving the broadcast that the first client sends, and this is wide Broadcasting the second client that message includes message pushes to specify account, it is the most right to determine according to the type of message of this broadcast Data corresponding to this broadcast calculate.Apps server directly obtains the mesh specifying account from caching server Mark data, generate target PUSH message, and send target PUSH message to access server.By access server, target is pushed away Send message to show with pop-up, the form of mail or note pushes to the second client.
The present embodiment apps server directly obtains the target data corresponding with broadcast from caching server Send after generating target PUSH message to access server, access server target PUSH message is sent to corresponding second Client.Broadcast can be processed by apps server flexibly, improve reliability and effect that message pushes Rate.
Accordingly, as shown in Figure 4, one information push method first embodiment of the present invention is proposed.The present embodiment message pushes away Delivery method is corresponding with above-mentioned message push system first embodiment, and the information push method of this embodiment includes:
Step S10, receive first client send broadcast time, determine the message class of described broadcast Type, judges whether to need to calculate the data that described broadcast is corresponding according to described type of message;
In the present embodiment, information push method is applied to message push system, it is necessary first in the middle part of message push system Affix one's name to apps server, for storing the database server of data, handing over the calculating service of also difference data for calculating data Device and for sending the access server etc. of PUSH message.The number of each server can be arranged as the case may be and flexibly, Such as, multiple stage calculation server can be disposed, be respectively used to process different calculating tasks.
First client is the backstage of message push system, when needs carry out message propelling movement, and can be by message push system Backstage shows corresponding configuration interface, receives the configuration information of user's input, this configuration information can include PUSH message content, The object etc. pushed.Then configuration information is sent to application program service by message push system backstage with the form of broadcast Device.
Apps server, when receiving this broadcast, determines the type of message of this broadcast, according to message Type judges whether to calculate the data that broadcast is corresponding.Such as, when broadcast is the account specified or sets The type such as standby number, it is not necessary to calculating the data that this broadcast is corresponding, this calculating may refer to the data to broadcast Carry out handing over and differ from calculating.When broadcast is according to label, another name, sex or place etc. condition, need this broadcast Corresponding data calculate, and i.e. need hand over the data of broadcast and differ from calculating.
Step S20, if desired the data that described broadcast is corresponding are calculated, then obtain from target database with The data that described broadcast is corresponding;
In the present embodiment, this target database corresponds to database server, when determine need broadcast corresponding When data calculate accordingly, apps server obtains the data corresponding with broadcast from database server, Such as, when broadcast includes label, another name, sex or place, from database server, inquiry meets mark respectively The data of the conditions such as label, another name, sex or place.The data obtained are sent to calculation server, when there being multiple condition, Need to inquire about in batches and loading data is to calculation server, and send computations to this calculation server, in order to calculate clothes Business device knows that data are ready for calculating.
Step S30, described data it is loaded onto specified database and calculates, generating PUSH message according to result of calculation And described PUSH message is pushed to the second client.
In the present embodiment, this specified database corresponds to calculation server, calculation server according to the data received and These data are calculated by computations accordingly.Such as, push to meet " man, 18 years old, Guangdong by PUSH message when needs Save " the second client of these three condition time, the data that " male " will be met, the data meeting " 18 years old " and satisfied " Guangdong Province " Data carry out intersection operation, to be met the data of these three condition simultaneously.When PUSH message is pushed to meet by needs During second client of " Guangdong Province or Fujian Province " condition, the data of the data and satisfied " Fujian Province " that meet " Guangdong Province " are entered Row union operation, to be met either condition in the two condition or to meet the data of the two condition simultaneously.Then calculate Server generates PUSH message according to result of calculation, sends PUSH message to access server, and this PUSH message includes pushing The message such as the content of message and the object of propelling movement are detailed.
PUSH message, after receiving PUSH message, is pushed to forms such as mail, pop-up, notes by access server Two clients, this second client can be the client of terminal, and this second client can be the application in terminal, this terminal Type can be configured according to actual needs.Such as, this terminal includes mobile phone, panel computer, computer and intelligent television etc..
Hereinafter being illustrated, in one embodiment, apps server is receiving what the first client sent Broadcast, this broadcast includes pushing to message 18 years old, the second client corresponding to male user, disappears according to this broadcast The type of message of breath determines that the data that this broadcast is corresponding are carried out occuring simultaneously by needs and calculates.Apps server is from data base Server obtains the data meeting 18 years old user, and obtains the data meeting male user, the data obtained are sent extremely Calculation server.The calculation server data to receiving carry out occur simultaneously calculate, with met 18 years old simultaneously and male this two The data of individual condition, and generate PUSH message, PUSH message is sent to access server.By access server by PUSH message The form shown with pop-up pushes to the second client, and terminal pop-up in display interface corresponding to the second client shows that this pushes away Send message.
In another embodiment, apps server is receiving the broadcast that the first client sends, this broadcast Message includes pushing to message Guangdong Province or the second client corresponding to Fujian Province user, according to the message class of this broadcast Type determines that needs carry out union calculating to the data that this broadcast is corresponding.Apps server obtains from database server Take the data meeting Guangdong Province user, and obtain the data meeting Fujian Province user, the data obtained are sent to calculating clothes Business device.The calculation server data to receiving carry out union calculating, to be met Guangdong Province or Fujian Province's condition simultaneously Data, and generate PUSH message, PUSH message is sent to access server.By access server, PUSH message is shown with mail The form shown pushes to the second client.
The embodiment of the present invention is by disposing apps server, database server, calculating in message push system Server and access server, wherein, apps server is receiving the broadcast that the first client sends, and according to The type of message of broadcast determines when needing to calculate the data that broadcast is corresponding, obtains from database server The data corresponding with broadcast send to calculation server.Data are calculated by calculation server accordingly, and will calculate The PUSH message that result is generated sends to access server.By access server, PUSH message pushed to the second client again End, the calculating data of storage are deleted by calculation server simultaneously.It is achieved thereby that database server carries out data storage Carry out data calculating with calculation server to separate, even if running into friendship the difference calculating of big data quantity, it is also possible to save message and push away Send system substantial amounts of resource, reduce cost.
Further, as it is shown in figure 5, based on above-mentioned information push method first embodiment, it is proposed that message of the present invention pushes away Delivery method the second embodiment, the present embodiment information push method is corresponding with above-mentioned message push system the second embodiment.This enforcement Example is that in the present embodiment, above-mentioned information push method includes: step with the difference of information push method first embodiment of the present invention S40, after described PUSH message is pushed to the second client, delete calculate during produce data.
In the present embodiment, in order to save the resource that message push system is consumed, in described access server completion message After propelling movement, described calculation server receives the deletion instruction that described access server sends after completion message pushes, according to institute State deletion instruction the calculating data of storage to be deleted;Or, after described access server completion message pushes, described meter Calculate server the calculating data of storage to be deleted every Preset Time.These calculating data be calculate during produce number According to, receive, including above-mentioned, the number corresponding with broadcast that apps server sends over from database server According to, facilitate the memory space of calculation server for calculating use next time.
Specifically, calculation server can be calculation server after receiving deletion instruction to calculating the deletion of data, Passively delete calculating data, it is also possible to be that calculating data are actively deleted by calculation server at set intervals. In one embodiment, deletion instruction, after completion message pushes, is sent to calculation server by access server.Calculation server After receiving this deletion instruction, the calculating data of storage are deleted.Or access server pushes in completion message After, be sent completely message push notice to calculation server, calculation server would know that after receiving this notice access clothes Business device is complete message and pushes, it is not necessary to the calculating data of recycling storage, now can delete calculating data.
In another embodiment, access server completion message push after, calculation server every Preset Time to depositing The calculating data of storage are deleted, and this Preset Time can be configured according to practical situation.Or calculation server completes To receiving after the data that apps server sends over calculate accordingly, and the PUSH message generated is sent extremely After access server, every the appointment time, the calculating data of storage are deleted.
The present embodiment calculation server can refer to according to receiving access server deletion of transmission after completion message pushes The calculating data of storage are deleted by order, or after access server completion message pushes, will storage every Preset Time Calculating data delete.Thus save and calculate the resource that data take, and improve calculation server use Convenience.
Further, based on above-mentioned information push method first embodiment, it is proposed that information push method the 3rd of the present invention Embodiment, the present embodiment information push method is corresponding with above-mentioned message push system the 3rd embodiment.The present embodiment and the present invention The difference of information push method first embodiment is that in the present embodiment, above-mentioned steps S10 includes: whether judge described type of message Unique mark including described second client;If described type of message includes unique mark of described second client, the most really Surely need not the data to described broadcast is corresponding calculate;If described type of message does not include described second client Unique mark, it is determined that need the data that described broadcast is corresponding are calculated.
In the present embodiment, apps server, during judging the type of message of broadcast, is passed through Judging whether type of message includes unique mark of the second client, unique mark of this second client can be the second client The type of messages such as appointment imei, device number or the account of the corresponding terminal of end, if type of message includes the unique of the second client Mark, it is determined that need not the data that this broadcast is corresponding be handed over and differed from calculating etc. and process, i.e. can determine that propelling movement Message needs appointment the second client pushed to.If type of message does not include unique mark of the second client, but includes The conditions such as label, another name, sex or place, it is determined that need to hand over and differ from calculating to the data that described broadcast is corresponding Deng process, in order to determine that PUSH message needs the second client pushed to.
The present embodiment apps server determines the need for disappearing broadcast by the content that type of message is comprised The data that breath is corresponding calculate, so as to PUSH message is pushed to the second client by accurate the, improves message and pushes Reliability.
Further, based on above-mentioned information push method first embodiment, it is proposed that information push method the 4th of the present invention Embodiment, the present embodiment information push method is corresponding with above-mentioned message push system the 4th embodiment.The present embodiment and the present invention The difference of information push method first embodiment is, above-mentioned in the present embodiment described data be loaded onto specified database and carry out The step calculated includes: described data are loaded onto specified database, determine the calculating of corresponding types according to described type of message Mode, calculates described data according to described calculation.
In the present embodiment, when needing the data that described broadcast is corresponding are calculated, described application program service Device obtains the data corresponding with described broadcast from described database server, and determines correspondence according to described type of message Described data and computations are sent to described target calculation server by the target calculation server of type.
Specifically, calculation server can include multiple different types of calculation server, dissimilar for processing respectively Calculating task, i.e. the calculation of calculation server is the most different, can pre-set multiple calculation server and needs and calculate Type of message between mapping relations.The data to broadcast is corresponding are needed to carry out when above-mentioned apps server determines During calculating, apps server obtains the data corresponding with broadcast from database server, and determines and need meter The type of message calculated, and according to the mapping relations between calculation server and type of message, determine that the target of corresponding types calculates Server, sends computations and the data that get from database server to target calculation server, in order to target These data are quickly calculated by calculation server according to corresponding calculation.
The present embodiment is by disposing multiple calculation server in message push system, and carries out each calculation server Clarification in certain roles, determines the calculation of corresponding types according to type of message, by target calculation server according to corresponding calculating side Formula calculates this data, improves calculating speed.
Further, as shown in Figure 6, based on the arbitrary enforcement in above-mentioned information push method first to fourth embodiment Example, it is proposed that information push method the 5th embodiment of the present invention, the present embodiment information push method and above-mentioned message push system 5th embodiment is corresponding.The present embodiment with the difference of information push method first embodiment of the present invention is, above-mentioned in the present embodiment Include after step S10:
If the data that step S50 need not described broadcast is corresponding calculate, then from target cache obtain with The target data that described broadcast is corresponding, generates target PUSH message according to described target data, described target is pushed and disappears Breath sends to described second client.
In the present embodiment, target cache corresponds to caching server, and message push system is also deployed with for data cached Caching server, when determine need not the data that broadcast is corresponding are calculated accordingly time, apps server From caching server, obtain the target data corresponding with broadcast, then generate target propelling movement according to this target data and disappear Breath, this target PUSH message includes that the message such as the content of PUSH message and the object of propelling movement is detailed, is sent by target PUSH message To access server.Access server is after receiving target PUSH message, by target PUSH message with mail, pop-up, note Pushing to the second client etc. form, this second client can be the client of terminal, and this second client can be in terminal Application, the type of this terminal can be configured according to actual needs.Such as, this terminal include mobile phone, panel computer, computer, And intelligent television etc..
Hereinafter being illustrated, apps server is receiving the broadcast that the first client sends, and this is wide Broadcasting the second client that message includes message pushes to specify account, it is the most right to determine according to the type of message of this broadcast Data corresponding to this broadcast calculate.Apps server directly obtains the mesh specifying account from caching server Mark data, generate target PUSH message, and send target PUSH message to access server.By access server, target is pushed away Send message to show with pop-up, the form of mail or note pushes to the second client.
The present embodiment apps server directly obtains the target data corresponding with broadcast from caching server Send after generating target PUSH message to access server, access server target PUSH message is sent to corresponding second Client.Broadcast can be processed by apps server flexibly, improve reliability and effect that message pushes Rate.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-described embodiment side Method can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot of in the case of The former is more preferably embodiment.Based on such understanding, prior art is done by technical scheme the most in other words The part going out contribution can embody with the form of software product, and this computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, take Business device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the alternative embodiment of the present invention, not thereby limit the scope of the claims of the present invention, every utilize this Equivalent structure or equivalence flow process that bright description and accompanying drawing content are made convert, or are directly or indirectly used in other relevant skills Art field, is the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. a message push system, it is characterised in that described message push system includes:
Judge module, for when receiving the broadcast that the first client sends, determining the message class of described broadcast Type, judges whether to need to calculate the data that described broadcast is corresponding according to described type of message;
Acquisition module, for if desired calculating the data that described broadcast is corresponding, then from described target database Obtain the data corresponding with described broadcast;
First pushing module, for described data being loaded onto specified database and calculating, generates according to result of calculation and pushes away Send message and described PUSH message is pushed to the second client.
2. message push system as claimed in claim 1, it is characterised in that described message push system also includes:
Removing module, for after described PUSH message is pushed to the second client, deletes the number produced during calculating According to.
3. message push system as claimed in claim 1, it is characterised in that described judge module is additionally operable to, it is judged that described in disappear Whether breath type includes unique mark of described second client;If, it is determined that need not described broadcast corresponding Data calculate;Otherwise determine that the data that described broadcast is corresponding are calculated by needs.
4. message push system as claimed in claim 1, it is characterised in that described first pushing module is additionally operable to, according to institute State type of message and determine the calculation of corresponding types, load and calculate described data according to described calculation.
5. the message push system as described in any one of claim 1-4, it is characterised in that described message push system also wraps Include:
Second pushing module, if calculating, then from target cache for the data that need not described broadcast is corresponding Obtain the target data corresponding with described broadcast, generate target PUSH message according to described target data, by described target PUSH message sends to described second client.
6. an information push method, it is characterised in that described information push method comprises the following steps:
When receiving the broadcast that the first client sends, determine the type of message of described broadcast, disappear according to described Breath type judges whether to need to calculate the data that described broadcast is corresponding;
If desired the data that described broadcast is corresponding are calculated, then obtain and described broadcast from target database Corresponding data;
Described data it is loaded onto specified database and calculates, generating PUSH message and by described propelling movement according to result of calculation Message pushes to the second client.
7. information push method as claimed in claim 6, it is characterised in that described information push method also includes:
After described PUSH message is pushed to the second client, delete the data produced during calculating.
8. information push method as claimed in claim 6, it is characterised in that described judge whether need according to described type of message The data that described broadcast is corresponding are carried out calculating to include:
Judge whether described type of message includes unique mark of described second client;
If described type of message includes unique mark of described second client, it is determined that need not described broadcast corresponding Data calculate;
If described type of message does not include unique mark of described second client, it is determined that need described broadcast corresponding Data calculate.
9. information push method as claimed in claim 6, it is characterised in that described data are loaded onto specified database and go forward side by side Row calculating includes:
Described data are loaded onto specified database, determine the calculation of corresponding types according to described type of message, according to institute State calculation and calculate described data.
10. the information push method as described in any one of claim 6-9, it is characterised in that described according to described type of message Include after judging whether to need the data that described broadcast is corresponding are calculated:
If need not the data to described broadcast is corresponding calculate, then obtain and described broadcast from target cache Corresponding target data, generates target PUSH message according to described target data, sends described target PUSH message to described Second client.
CN201610605855.6A 2016-07-28 2016-07-28 Message push system and method Pending CN106254435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610605855.6A CN106254435A (en) 2016-07-28 2016-07-28 Message push system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610605855.6A CN106254435A (en) 2016-07-28 2016-07-28 Message push system and method

Publications (1)

Publication Number Publication Date
CN106254435A true CN106254435A (en) 2016-12-21

Family

ID=57604957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610605855.6A Pending CN106254435A (en) 2016-07-28 2016-07-28 Message push system and method

Country Status (1)

Country Link
CN (1) CN106254435A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108200187A (en) * 2018-01-17 2018-06-22 吉浦斯信息咨询(深圳)有限公司 A kind of information transmission system and method
CN114024786A (en) * 2022-01-04 2022-02-08 杭州趣链科技有限公司 Message broadcasting method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096271A (en) * 2013-03-01 2013-05-08 畅捷通信息技术股份有限公司 Information pushing system and information pushing method
CN103699557A (en) * 2013-09-04 2014-04-02 中国四维测绘技术有限公司 Report processing method and report processing system
CN104796495A (en) * 2015-05-08 2015-07-22 集怡嘉数码科技(深圳)有限公司 Message pushing method and system
CN105472400A (en) * 2015-12-24 2016-04-06 Tcl集团股份有限公司 Message pushing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096271A (en) * 2013-03-01 2013-05-08 畅捷通信息技术股份有限公司 Information pushing system and information pushing method
CN103699557A (en) * 2013-09-04 2014-04-02 中国四维测绘技术有限公司 Report processing method and report processing system
CN104796495A (en) * 2015-05-08 2015-07-22 集怡嘉数码科技(深圳)有限公司 Message pushing method and system
CN105472400A (en) * 2015-12-24 2016-04-06 Tcl集团股份有限公司 Message pushing method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108200187A (en) * 2018-01-17 2018-06-22 吉浦斯信息咨询(深圳)有限公司 A kind of information transmission system and method
CN114024786A (en) * 2022-01-04 2022-02-08 杭州趣链科技有限公司 Message broadcasting method and device, computer equipment and storage medium
CN114024786B (en) * 2022-01-04 2022-04-08 杭州趣链科技有限公司 Message broadcasting method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN100411341C (en) Parallel downloading method and terminal
CN110601922B (en) Method and device for realizing comparison experiment, electronic equipment and storage medium
CN106302094B (en) Message pushing method and device
CN104156843A (en) Logistics distribution management system and logistics distribution management method
CN102449628A (en) Architectural pattern for persistent web application design
CN106648562A (en) Version updating method and device
EP2788887A1 (en) Contextual and location awareness for device interaction
CN101729593A (en) Method, system and device for uploading and receiving file
CN108881930B (en) Method and system for presenting gift and electronic equipment
CN113365092B (en) Resource processing method and device
CN111325612A (en) Order counting method, order distribution method, device and system
CN106453593B (en) Message pushing method and device
CN106331002B (en) Information publishing method and device
CN109039899B (en) Data transmission method, system and computer readable storage medium
CN111464352A (en) Call link data processing method and device
CN111008800B (en) Data processing method, device, server and storage medium for distribution task
CN106254435A (en) Message push system and method
CN106941410B (en) Method and device for rapidly displaying virtual article
CN110572311B (en) Mail downloading method and terminal
CN102739562B (en) Method and device for sending collection information
WO2006026483A2 (en) Presentation and management of aircraft availability data
CN108182122B (en) Application update reminding method and device, storage medium and server
CN105635280A (en) Method and apparatus for improving message push efficiency, and push server
CN103152245B (en) Control method and system for cruise route
CN108174244A (en) File Mapping method, mapping server, TV and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161221

RJ01 Rejection of invention patent application after publication