CN105721550B - A kind of fault-tolerant monitoring method of client and system - Google Patents

A kind of fault-tolerant monitoring method of client and system Download PDF

Info

Publication number
CN105721550B
CN105721550B CN201610039204.5A CN201610039204A CN105721550B CN 105721550 B CN105721550 B CN 105721550B CN 201610039204 A CN201610039204 A CN 201610039204A CN 105721550 B CN105721550 B CN 105721550B
Authority
CN
China
Prior art keywords
client
message
fault
push
tolerant
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.)
Active
Application number
CN201610039204.5A
Other languages
Chinese (zh)
Other versions
CN105721550A (en
Inventor
任雪涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING LOCOJOY TECHNOLOGY Co Ltd
Original Assignee
BEIJING LOCOJOY TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING LOCOJOY TECHNOLOGY Co Ltd filed Critical BEIJING LOCOJOY TECHNOLOGY Co Ltd
Priority to CN201610039204.5A priority Critical patent/CN105721550B/en
Publication of CN105721550A publication Critical patent/CN105721550A/en
Application granted granted Critical
Publication of CN105721550B publication Critical patent/CN105721550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/541Interprogram communication via adapters, e.g. between incompatible applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server

Abstract

This application discloses a kind of fault-tolerant monitoring method of client and system, wherein method includes: that primary server gives the PUSH message for needing to be sent to client to message pushing module;Message pushing module be sent to after data parsing, analysis and packaging to PUSH message the Push Service that client connects;PUSH message is pushed to client by Push Service;Client receives PUSH message and is parsed;Client carries out fault-tolerant processing according to the PUSH message after parsing, to data in local data base.The management of the fault-tolerant monitoring method of client provided by the invention and system, client has flexible, controllable fault tolerant mechanism, to preferably realize that client data is fault-tolerant;The fault-tolerant monitoring method of client provided by the invention and system, client can automatically process PUSH message, solve without manual intervention, save resource and time.

Description

A kind of fault-tolerant monitoring method of client and system
Technical field
This application involves message to push field, specifically, being related to a kind of fault-tolerant monitoring method of client and system.
Background technique
The mode that the fast development of mobile Internet makes people obtain information becomes more convenient, Intelligent mobile terminal Using also more popular, people increasingly tend to obtain information and service using mobile phone, and various resource informations are giving people Life while bring great convenience, difficulty is also brought on acquisition of information to people.
Actively to the mode of server pull information, there are many deficiencies for traditional client, due to needing to update often, This can waste the time of user and flow, the pressure for increasing server, reduction treatment effeciency etc.;And server push (Push) skill Art does not need user and does not stop to refresh to check and update, and push can send information to user automatically, information is allowed actively to go for user, User can be helped to save flow and electric energy, mobile device and popularizing for 4G network bring bigger development sky to Push Service Between, each operating system also both provides Push Service, such as Push Service C2DM (the Cloud to that Android official provides Device Messaging, cloud message push service).
Due to the change or client database version updating of client demand, it may appear that the increase of Database field or The reasons such as reduction, this will lead to client local data can not be corresponding with database, and push technology is general in practice One is packaged when method is by being packaged client software and empties mark, empties client local available data, but this All data can be emptied by emptying, rather than selective removing, be bound to cause the waste of resource, not have data fault-tolerant function.
Summary of the invention
In view of this, the technical problem to be solved by the application is to provide a kind of fault-tolerant monitoring method of client and being System solves the problems, such as that prior art client does not have data fault-tolerant monitoring processing.
In order to solve the above-mentioned technical problem, the application has following technical solution:
The present invention provides a kind of fault-tolerant monitoring method of client, comprising: primary server will need to be sent to pushing away for client Message is sent to give message pushing module;After the message pushing module carries out data parsing, analysis and packaging to the PUSH message It is sent to the Push Service of the client connection;The PUSH message is pushed to the client by the Push Service;Institute Client is stated to receive the PUSH message and parsed;The client is according to the PUSH message after parsing, to local number Fault-tolerant processing is carried out according to data in library.
The present invention also provides a kind of fault-tolerant monitoring systems of client, comprising: primary server, message pushing module, push clothes Business and client, wherein the primary server, couples with the message pushing module, for being initiated according to database to client PUSH message, and the PUSH message is sent to the message pushing module;The message pushing module, with the main service Device and Push Service coupling, for receiving the PUSH message, and to the PUSH message carry out data parsing, analysis and The Push Service of the client connection is sent to after packaging;The Push Service, with the message pushing module and the visitor Family end coupling, for the PUSH message to be pushed to the client;The client is coupled with the Push Service, is used In receiving the PUSH message and parsed, and according to the PUSH message after parsing, to data in local data base into Row fault-tolerant processing.
Compared with prior art, method and system described herein achieving the following effects:
First, the fault-tolerant monitoring method of client provided by the invention and system, the management of client have flexibly, it is controllable Fault tolerant mechanism, to preferably realize that client data is fault-tolerant;
Second, the fault-tolerant monitoring method of client provided by the invention and system, client can automatically process PUSH message, It is solved without manual intervention, saves resource and time.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of fault-tolerant monitoring method flow chart of client of the invention;
Fig. 2 is a kind of fault-tolerant schematic diagram of monitoring system structure of client of the invention;
Fig. 3 is a kind of another structural schematic diagram of the fault-tolerant monitoring system of client of the invention.
Specific embodiment
As used some vocabulary to censure specific components in the specification and claims.Those skilled in the art answer It is understood that hardware manufacturer may call the same component with different nouns.This specification and claims are not with name The difference of title is as the mode for distinguishing component, but with the difference of component functionally as the criterion of differentiation.Such as logical The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit In "." substantially " refer within the acceptable error range, those skilled in the art can within a certain error range solve described in Technical problem basically reaches the technical effect.In addition, " coupling " word includes any direct and indirect electric property coupling herein Means.Therefore, if it is described herein that a first device is coupled to a second device, then representing the first device can directly electrical coupling It is connected to the second device, or the second device indirectly electrically coupled through other devices or coupling means.Specification Subsequent descriptions be implement the application better embodiment, so it is described description be for the purpose of the rule for illustrating the application, It is not intended to limit the scope of the present application.The protection scope of the application is as defined by the appended claims.
Embodiment 1
Specific embodiment shown in Figure 1 for the fault-tolerant monitoring method of herein described client, described in the present embodiment Method the following steps are included:
Step 101: primary server gives the PUSH message for needing to be sent to client to message pushing module;
Step 101: the message pushing module is sent to the client connection after handling the PUSH message Push Service, it is described processing include data parsing, analysis and packaging;
Step 103: the PUSH message is pushed to the client by the Push Service;
Step 104: the client receives the PUSH message and is parsed;
Step 105: the client carries out fault-tolerant place according to the PUSH message after parsing, to data in local data base Reason.
Wherein, the client is one or more, and the Push Service of multiple client connection is one or more, when pushing away Take business be it is multiple when, the PUSH message need to be respectively sent to each Push Service by the message pushing module, can be detailed in The fault-tolerant schematic diagram of monitoring system structure of client shown in Fig. 3.
Wherein, the client carries out fault-tolerant processing to data in local data base according to the PUSH message after parsing Step further includes: the client is filtered data in local data base, flushing errors according to the PUSH message after parsing Data specially need fault-tolerant field to carry out fault-tolerant according to database version number, database.
Wherein, the client carries out fault-tolerant processing to data in local data base according to the PUSH message after parsing Step further includes: the client carries out increase behaviour according to the PUSH message after parsing, to the data lacked in local data base Make, the data of mistake are modified operation.
Wherein, the message pushing module is that cloud pushes center.
Embodiment 2
For the present invention is described in more detail, shown in Figure 2 is the fault-tolerant monitoring system structure of herein described client 204 Schematic diagram, as shown, the system comprises: primary server 201, message pushing module 202, Push Service 203 and client 204, wherein
The primary server 201 is coupled with the message pushing module 202, for being sent out according to database to client 204 PUSH message is played, and the PUSH message is sent to the message pushing module 202;;
The message pushing module 202 is coupled with the primary server 201 and the Push Service 203, for receiving PUSH message is stated, and is sent to what the client 204 connected after carrying out data parsing, analysis and packaging to the PUSH message Push Service 203;
The Push Service 203 is coupled with the message pushing module 202 and the client 204, for pushing away described in handle Message is sent to be pushed to the client 204;
The client 204 is coupled with the Push Service 203, for receiving the PUSH message and being parsed, And according to the PUSH message after parsing, fault-tolerant processing is carried out to data in local data base.
Wherein, the client 204 be one or more, multiple client 204 connect Push Service 203 be one or Multiple, when Push Service 203 is multiple, the PUSH message need to be respectively sent to each by the message pushing module 202 Push Service 203 can be detailed in the fault-tolerant schematic diagram of monitoring system structure of client shown in Fig. 3.
Wherein, the client 204 carries out fault-tolerant processing to data in local data base according to the PUSH message after parsing Further include: the client 204 is filtered data in local data base, flushing errors according to the PUSH message after parsing Data specially need fault-tolerant field to carry out fault-tolerant according to database version number, database.
Wherein, the client 204 carries out fault-tolerant processing to data in local data base according to the PUSH message after parsing Further include: the client 204 carries out increase behaviour according to the PUSH message after parsing, to the data lacked in local data base Make, the data of mistake are modified operation.
Wherein, the message pushing module 202 is that cloud pushes center.
As can be seen from the above embodiments beneficial effect existing for the application is:
First, the fault-tolerant monitoring method of client provided by the invention and system, the management of client have flexibly, it is controllable Fault tolerant mechanism, to preferably realize that client data is fault-tolerant;
Second, the fault-tolerant monitoring method of client provided by the invention and system, client can automatically process PUSH message, It is solved without manual intervention, saves resource and time.
It should be understood by those skilled in the art that, embodiments herein can provide as method, apparatus or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
Above description shows and describes several preferred embodiments of the present application, but as previously described, it should be understood that the application Be not limited to forms disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations, Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through within that scope of the inventive concept describe herein It is modified.And changes and modifications made by those skilled in the art do not depart from spirit and scope, then it all should be in this Shen It please be in the protection scope of appended claims.

Claims (8)

1. a kind of fault-tolerant monitoring method of client characterized by comprising
Primary server gives the PUSH message for needing to be sent to client to message pushing module;
The message pushing module is sent to the client company after carrying out data parsing, analysis and packaging to the PUSH message The Push Service connect;
The PUSH message is pushed to the client by the Push Service;
The client receives the PUSH message and is parsed;
The client carries out fault-tolerant processing according to the PUSH message after parsing, to data in local data base;
The client according to the PUSH message after parsing, more wrap by the step of carrying out fault-tolerant processing to data in local data base Include: the client is filtered data in local data base according to the PUSH message after parsing, flushing errors data, tool Body is to be needed fault-tolerant field progress fault-tolerant according to database version number, database.
2. the fault-tolerant monitoring method of client according to claim 1, which is characterized in that the client is one or more, Multiple client connection Push Service be one or more, when Push Service be it is multiple when, the message pushing module need by The PUSH message is respectively sent to each Push Service.
3. the fault-tolerant monitoring method of client according to claim 1, which is characterized in that the client is according to pushing away after parsing The step of sending message, carrying out fault-tolerant processing to data in local data base further includes: the client is according to the push after parsing Message carries out increase operation to the data lacked in local data base.
4. any one of -3 fault-tolerant monitoring method of client according to claim 1, which is characterized in that the message pushing module Center is pushed for cloud.
5. a kind of fault-tolerant monitoring system of client characterized by comprising primary server, message pushing module, Push Service and Client, wherein
The primary server is coupled with the message pushing module, for initiating PUSH message to client according to database, and The PUSH message is sent to the message pushing module;
The message pushing module is coupled with the primary server and the Push Service, for receiving the PUSH message, and Be sent to after data parsing, analysis and packaging the Push Service that the client connects to the PUSH message;
The Push Service is coupled with the message pushing module and the client, for the PUSH message to be pushed to The client;
The client is coupled with the Push Service, for receiving the PUSH message and parsed, and according to solution PUSH message after analysis carries out fault-tolerant processing to data in local data base;
The client carries out fault-tolerant processing to data in local data base and further includes: is described according to the PUSH message after parsing Client is filtered data in local data base according to the PUSH message after parsing, flushing errors data, specially basis It is fault-tolerant that database version number, database need fault-tolerant field to carry out.
6. the fault-tolerant monitoring system of client according to claim 5, which is characterized in that the client is one or more, Multiple client connection Push Service be one or more, when Push Service be it is multiple when, the message pushing module need by The PUSH message is respectively sent to each Push Service.
7. the fault-tolerant monitoring system of client according to claim 5, which is characterized in that the client is according to pushing away after parsing Message is sent, carry out fault-tolerant processing to data in local data base and further include: the client is right according to the PUSH message after parsing The data lacked in local data base carry out increase operation.
8. according to the fault-tolerant monitoring system of any one of the claim 5-7 client, which is characterized in that the message pushing module Center is pushed for cloud.
CN201610039204.5A 2016-01-21 2016-01-21 A kind of fault-tolerant monitoring method of client and system Active CN105721550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610039204.5A CN105721550B (en) 2016-01-21 2016-01-21 A kind of fault-tolerant monitoring method of client and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610039204.5A CN105721550B (en) 2016-01-21 2016-01-21 A kind of fault-tolerant monitoring method of client and system

Publications (2)

Publication Number Publication Date
CN105721550A CN105721550A (en) 2016-06-29
CN105721550B true CN105721550B (en) 2019-04-19

Family

ID=56153664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610039204.5A Active CN105721550B (en) 2016-01-21 2016-01-21 A kind of fault-tolerant monitoring method of client and system

Country Status (1)

Country Link
CN (1) CN105721550B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789002A (en) * 2010-01-22 2010-07-28 浪潮(北京)电子信息产业有限公司 Database compatibility test device and method for server
CN103269230A (en) * 2013-05-28 2013-08-28 中国科学院自动化研究所 Fault-tolerant system and method for adjusting error correcting codes adaptively
CN103581177A (en) * 2013-10-24 2014-02-12 华为技术有限公司 Method and device for managing virtual machine
CN105024872A (en) * 2014-04-25 2015-11-04 腾讯科技(北京)有限公司 Network performance test method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789002A (en) * 2010-01-22 2010-07-28 浪潮(北京)电子信息产业有限公司 Database compatibility test device and method for server
CN103269230A (en) * 2013-05-28 2013-08-28 中国科学院自动化研究所 Fault-tolerant system and method for adjusting error correcting codes adaptively
CN103581177A (en) * 2013-10-24 2014-02-12 华为技术有限公司 Method and device for managing virtual machine
CN105024872A (en) * 2014-04-25 2015-11-04 腾讯科技(北京)有限公司 Network performance test method and device

Also Published As

Publication number Publication date
CN105721550A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN109408247A (en) Interaction data processing method and device
CN110391949A (en) A kind of method and relevant apparatus of configuration change
CN106933589B (en) Message queue assembly based on configuration and integration method thereof
CN110351715A (en) AT command processing method, terminal adapter and computer readable storage medium
CA3065729A1 (en) Business rules processing framework
CN106126299B (en) Service plug-in processing method and device
CN105516372B (en) Processing method, device and the server of filename
CN103646015B (en) Transmission, the method and system for receiving and transmitting XML message
CN108512943A (en) Embedded device data store system based on message queue and store method
CN113282590A (en) Interface joint debugging method and device based on 5G message
CN105721550B (en) A kind of fault-tolerant monitoring method of client and system
CN107172013A (en) A kind of data transmission method and system
CN110825538A (en) MQ-based method for dynamically interacting data by self-defining data types
CN109298956A (en) Document transmission method, device and terminal device
US20220262353A1 (en) Method and device for Processing Voice Information, Storage Medium and Electronic Apparatus
US11797277B2 (en) Neural network model conversion method server, and storage medium
CN112953988B (en) Data docking method and device based on FTP
CN104077285A (en) File designation method and first electronic equipment
CN107295179A (en) The method and apparatus that a kind of short message is shown
CN110795388B (en) Binary file processing method, system, equipment and readable storage medium
CN108848398B (en) Method, device, terminal and storage medium for distributing local barrage messages
CN113709506A (en) Multimedia playing method, device, medium and program product based on cloud mobile phone
CN108920172A (en) Program publication and call method and system for voice dialogue platform
CN112311833B (en) Data updating method and device
CN109388536B (en) Data collection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant