CN105337996B - A kind of data processing method and system - Google Patents
A kind of data processing method and system Download PDFInfo
- Publication number
- CN105337996B CN105337996B CN201510857321.8A CN201510857321A CN105337996B CN 105337996 B CN105337996 B CN 105337996B CN 201510857321 A CN201510857321 A CN 201510857321A CN 105337996 B CN105337996 B CN 105337996B
- Authority
- CN
- China
- Prior art keywords
- server
- connection
- service
- terminal
- cashing indication
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Abstract
An embodiment of the present invention provides a kind of data processing method and system, method includes:Receive the service change notice that connected server is sent, service change notice is the notice that server is sent in the forward direction terminal of change service, and server listens to when connected terminal receives service change notice after delay scheduled time the execution of change service in server;Cashing indication is set for server, the effective time that cashing indication is arranged is the predetermined time, and the connection of server and terminal, server based on when the server corresponding to connection that connection resource pond is stored is structure request of data are removed from connection resource pond;When the connection status to destination server does heartbeat detection, if detecting that the connection with destination server disconnects, destination server is then judged with the presence or absence of cashing indication and whether the cashing indication is within effective time, if so, abandoning sending the request for establishing connection to destination server.Using the embodiment of the present invention, loss of data is further reduced.
Description
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of data processing method and system.
Background technology
In the prior art, on the basis of client terminal and server are successfully established data processing, client terminal is usual
Whether can be can be used come the connection of timing detection service device and client terminal using heartbeat detection mechanism, and works as and detect that connection can not
Used time, then re-request establishes the connection of client terminal and server or no longer to server request data according to demand, with
Avoid the influence to the request of data of client terminal.
But there are still drawbacks for this heartbeat detection mechanism, such as:There is delay in detection process in heartbeat detection,
That is server close either restart in the case of client terminal can not learn at once Server Restart or close behaviour
Make, client terminal is still asked to server transmission data in this section of time delay, and the request of data sent is unable to get and returns
Return data so that there are still the risks of larger loss of data, and then the normal operation of business is made to be affected.
Invention content
The embodiment of the present invention is designed to provide a kind of new data processing method and system, to realize that server is becoming
When more servicing, the loss of terminal requested data is reduced, and server is allow smoothly to change service.
In order to achieve the above objectives, in a first aspect, an embodiment of the present invention provides a kind of data processing method, it is applied to eventually
End, including:
Receive the service change notice that connected server is sent, wherein the service change notice is the service
The device notice that terminal is sent described in the forward direction of change service, also, the server is to changing the execution serviced in the clothes
Business device listens to when the terminal connected receives the service change notice after delay scheduled time;
The effective time that cashing indication is arranged for the server, and the cashing indication is arranged is the predetermined time,
The connection of the server and the terminal is removed from connection resource pond simultaneously, wherein what the connection resource pond was stored
Server based on when the corresponding server of connection is structure request of data;
The method further includes:When the connection status to destination server does heartbeat detection, if detect with it is described
The connection of destination server disconnects, then judges that the destination server whether there is cashing indication and whether the cashing indication is having
It imitates in the time, if so, abandoning sending the request for establishing connection to the destination server.
Preferably, a kind of data processing method that first aspect of the embodiment of the present invention is provided further includes:If it is judged that
The destination server is there is no cashing indication or there are cashing indication but the cashing indication is not within effective time, request and institute
It states destination server and establishes connection.
Preferably, the change service includes service of restarting or closing service.
Preferably, a kind of data processing method that first aspect of the embodiment of the present invention is provided further includes:To the mesh
When the connection status of mark server does heartbeat detection, is disconnected with the connection of the destination server if detected, judge institute
Destination server is stated whether in default registration center, judges the destination server with the presence or absence of slow if so, continuing to execute
Deposit mark and the cashing indication whether the step within effective time.
Second aspect, an embodiment of the present invention provides another data processing methods, are applied to server, including:
Before change services, service change notice is sent to each terminal connected, so that connection is each described
Terminal is pre- timing for server setting effective time after receiving the service change notice that the server is sent
Between cashing indication, and remove from connection resource pond the connection of the server and the terminal, also, to destination service
When the connection status of device does heartbeat detection, is disconnected with the connection of the destination server if detected, judge the target
Server is with the presence or absence of cashing indication and whether the cashing indication is within effective time, if so, abandoning to the destination service
Device sends the request for establishing connection, wherein the server corresponding to connection that the connection resource pond is stored is structure data
Server based on when request;
Monitor whether each terminal receives the service change notice;
When listening to each terminal and receiving service change notice, delay scheduled time change service.
The third aspect, an embodiment of the present invention provides a kind of data processing systems, are applied to terminal, including:
Receiving unit, the service change notice sent for receiving connected server, wherein the service change is logical
Know the notice of the terminal transmission described in the forward direction of change service for the server, also, the server is to change service
It executes and is listened to when the terminal connected receives the service change notice after delay scheduled time in the server;
Setting unit, for for the server be arranged cashing indication, and for be arranged the cashing indication it is effective when
Between be the predetermined time, while for removing the connection of the server and the terminal from connection resource pond, wherein institute
State server based on when the server corresponding to the connection that connection resource pond is stored is structure request of data;
The system also includes:Detection unit, for when the connection status to destination server does heartbeat detection, if
It detects and is disconnected with the connection of the destination server, then trigger judging unit;
The judging unit, for judge the destination server with the presence or absence of cashing indication and the cashing indication whether
In effective time, if so, abandoning sending the request for establishing connection to the destination server.
Preferably, the judging unit is additionally operable to:If it is judged that the destination server is there is no cashing indication or deposits
In cashing indication but the cashing indication is not within effective time, and request is established with the destination server and connected.
Preferably, the change service includes service of restarting or closing service.
Preferably, the detection unit is specifically used for:When the connection status to the destination server does heartbeat detection,
It is disconnected with the connection of the destination server if detected, judges the destination server whether in default registration center,
If so, triggering the judging unit.
Fourth aspect, an embodiment of the present invention provides another data processing systems, are applied to server, including:
Transmission unit, for before change services, service change notice being sent to each terminal connected, so that even
The each terminal connect is effective for server setting after receiving the service change notice that the server is sent
Time is the cashing indication of predetermined time, and the connection of the server and the terminal is removed from connection resource pond, also,
When the connection status to destination server does heartbeat detection, disconnected with the connection of the destination server if detected,
Judge the destination server with the presence or absence of cashing indication and the cashing indication whether within effective time, if so, abandon to
The destination server sends the request for establishing connection, wherein the service corresponding to connection that the connection resource pond is stored
Server based on when device is structure request of data;
Monitoring unit, for monitoring whether each terminal receives the service change notice;
Execution unit, for when listening to each terminal and receiving service change notice, delay to be predetermined
Time change service.
In the embodiment of the present invention, the service change notice for the terminal transmission that server is connected in the forward direction of change service,
Also, the terminal connected is listened in the server to the execution of change service and receives the service change notice
When delay scheduled time after, with the processing of request of data sent before receiving service change notice to terminal to server
Time is provided, the feedback rates of the result information for the request of data that terminal is sent before receiving service change notice are improved;
Correspondingly, it is the pre- timing that terminal, which after receiving the service change notice of server transmission, is server setting effective time,
Between cashing indication, while the connection of the server and the terminal is removed from connection resource pond, in turn, to destination service
It when the connection status of device does heartbeat detection, is disconnected with the connection of the destination server if detected, judges that the target takes
Device be engaged in the presence or absence of cashing indication and whether the cashing indication is within effective time, if so, abandoning sending out to the destination server
The request established and connected is sent, terminal connection of request and server again within the predetermined time that server is postponed is avoided,
Meanwhile avoiding the request of terminal to server transmission data.As it can be seen that by this programme, server may be implemented and serviced in change
When, the loss of terminal requested data is reduced, and server is allow smoothly to change service.
Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously
Point.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of data processing method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another data processing method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of data processing system provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another data processing system provided in an 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 only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In order to solve prior art problem, the embodiment of the present invention provides a kind of number from the angle of terminal and server respectively
According to processing method and system.
First, from the angle of terminal, an embodiment of the present invention provides a kind of data processing methods, as shown in Figure 1, the data
Processing method may include steps of:
S101:Receive the service change notice that connected server is sent, wherein service change notice is the service
The notice that device is sent in the forward direction terminal of change service, also, the server to the execution of change service in server prison
It hears when connected terminal receives service change notice after delay scheduled time;
Wherein, terminal is connect with server, when will service change occur for server, needs the forward direction institute in change service
The terminal of connection sends service change notice, and terminal can receive the service change notice sent from server, so as to
The server change operation to be executed is learnt at once, to make the response of reply server change operation in the shortest time,
There is no latency issue existing for heartbeat detection detection connection status is only relied on, to reduce loss of data.In addition, terminal is connecing
The predetermined time after service change notice is received, server just executes service change operation so that the data that terminal has been sent are asked
Asking normally to return, and be further reduced loss of data.
It should be noted that the change service may include but be not limited to the service of restarting or close service;In addition, the clothes
The predetermined time that business device is postponed can be set according to actual conditions, such as:10s, 20s or 30s, etc..
S102:The effective time that cashing indication is arranged for the server, and the cashing indication is arranged is the predetermined time, together
When the connection of the server and the terminal is removed from connection resource pond;
Wherein, it is taken based on when the server corresponding to connection which is stored is structure request of data
Business device.
Wherein, terminal makes reply server change behaviour immediately after receiving the service change notice of server transmission
The response of work, the response include:For server be arranged cashing indication, and be cashing indication be arranged effective time be pre- timing
Between, that is to say, that in the given time, cashing indication is effective, and change service operations will be executed by identifying the server, facilitate end
End is detected the server;Also, response further includes that the server that execute change operation is removed from connection resource pond
With the connection of terminal, so that terminal is no longer asked to the server transmission data, avoiding causes in the case of breaking in this connection
Loss of data.
It is emphasized that the server being connect with the terminal can be at least one, any one server is becoming
Before more servicing, service change notice can be sent to the terminal, correspondingly, the terminal is receiving any one server
After the server Notification of Changes of transmission, S101-S102 can be executed.
S103:When the connection status to destination server does heartbeat detection, if detected and the destination server
Connection disconnects, then judges the destination server with the presence or absence of cashing indication and whether the cashing indication is within effective time, if
It is to abandon sending the request for establishing connection to the destination server.
It should be noted that terminal can be periodically or sporadically at least one service for having built up communication connection before
Device carries out heartbeat detection will currently carry out heartbeat detection to avoid the influence of the request of data to terminal, and for convenience
Server carry out subsequent explanation as destination server.
Specifically, when doing heartbeat detection to destination server, and detect that terminal is already off with destination server
When connection, judge whether the destination server is effective with the presence or absence of cashing indication and the cashing indication, if it is judged that being
There are cashing indication and effectively, then illustrate that the destination server is transmitted across service change notice, and server at this time to terminal
It is not carried out corresponding change operation, to avoid the waste of loss of data and connection resource, is not taken in the given time to target
Business device sends new connection request.
Further, in a preferred embodiment of the invention, if it is judged that the destination server there is no slow
It deposits mark or there are cashing indication but the cashing indication is not within effective time, request is established with the destination server and connected.It can
With understanding, in the technical scheme, when there is no the cashing indication of destination server, illustrating the destination server not to end
End sends service change notice, at this point, for the processing of subsequent request of data, can ask the company of foundation to the destination server
Connect, and when judge in the presence of failure cashing indication when, illustrate the destination server be carrying out service change operation or
Service change end of operation is executed, at this point it is possible to ask to connect to the destination server, to establish server and terminal as early as possible
Communication so that terminal traffic can be restored as early as possible, promote user experience.
Further, in a preferred embodiment of the invention, it is done in the connection status to the destination server
When heartbeat detection, is disconnected with the connection of the destination server if detected, judge the destination server whether pre-
If in registration center, if so, continue to execute judge the destination server with the presence or absence of cashing indication and the cashing indication whether
Step within effective time.It is understood that in the technical scheme, when detecting destination server by heartbeat detection
When being disconnected with terminal, by judging that destination server whether in default registration center, can quickly judge that target takes
Whether business device has executed closing service operations, saves and judges the time, specifically, should when destination server has been switched off
Server is removed in the log-on message of default registration center, and when server has executed closing service, no longer to target
Server request connection when judging destination server also in default registration center, then executes and judges whether destination server is deposited
Cashing indication and the cashing indication whether the step within effective time.
In the embodiment of the present invention, the service change notice for the terminal transmission that server is connected in the forward direction of change service,
Also, the terminal connected is listened in the server to the execution of change service and receives the service change notice
When delay scheduled time after, with the processing of request of data sent before receiving service change notice to terminal to server
Time is provided, the feedback rates of the result information for the request of data that terminal is sent before receiving service change notice are improved;
Correspondingly, it is the pre- timing that terminal, which after receiving the service change notice of server transmission, is server setting effective time,
Between cashing indication, while the connection of the server and the terminal is removed from connection resource pond, in turn, to destination service
It when the connection status of device does heartbeat detection, is disconnected with the connection of the destination server if detected, judges that the target takes
Device be engaged in the presence or absence of cashing indication and whether the cashing indication is within effective time, if so, abandoning sending out to the destination server
The request established and connected is sent, terminal connection of request and server again within the predetermined time that server is postponed is avoided,
Meanwhile avoiding the request of terminal to server transmission data.As it can be seen that by this programme, server may be implemented and serviced in change
When, the loss of terminal requested data is reduced, and server is allow smoothly to change service.
From the angle of server, the embodiment of the present invention additionally provides a kind of data processing method, as shown in Fig. 2, can wrap
Include following steps:
S201:Before change services, service change notice is sent to each terminal connected, so that connection is each
Terminal is the predetermined time for server setting effective time after receiving the service change notice that the server is sent
Cashing indication, and the connection of the server and the terminal is removed from connection resource pond, also, in the company to destination server
When the state of connecing does heartbeat detection, if detecting that the connection with the destination server disconnects, whether the destination server is judged
There are the cashing indication and whether the cashing indication is within effective time, if so, abandoning building to destination server transmission
The request of vertical connection;
Wherein, it is taken based on when the server corresponding to connection which is stored is structure request of data
Business device.
Wherein, server first sends service change notice before change services to each terminal for being connected to the server,
Each terminal to be connected to the server can learn the change operation of the server at once, and respond rapidly, example
Such as:Stop sending new request of data to the server and the operations such as the cashing indication of the server are set, reduces new ask
Seek the loss of data and new returned data.
S202:Monitor whether each terminal receives service change notice;
Wherein, listening port can be arranged in server, and it is logical whether monitoring each terminal connected to it receives service change
Know, the reception so as to be quickly obtained each terminal notifies situation, so that server executes behaviour in next step according to situation is monitored
Make.
S203:Listen to each terminal receive the service change notice when, delay scheduled time change service.
Wherein, service change notice has been received when the listening port of server listens to each terminal connected to it
When, after the predetermined time, execute service change, such as lead to listening to service connect with the server and receiving closing service
When knowing, service is closed later within 10 seconds in preset time so that the closing that server can be smooth, and ensure that each terminal
Data through request can be returned normally, be further reduced loss of data.
As it can be seen that by this programme, server may be implemented when changing service, reduce the loss of terminal requested data,
And server is allow smoothly to change service.
Corresponding to a kind of above-mentioned data processing method provided from the angle of terminal, an embodiment of the present invention provides one kind
Data processing system is applied to terminal, as shown in figure 3, the data processing system may include:
Receiving unit 310, the service change notice sent for receiving connected server, wherein the service becomes
More notice is the server notice that terminal is sent described in the forward direction of change service, also, the server takes change
The execution of business the server listen to postpone predetermined when the terminal connected receives the service change notice when
Between after;
Setting unit 320, for cashing indication to be arranged for the server, and for the effective of the cashing indication to be arranged
Time is the predetermined time, while being used to remove the connection of the server and the terminal from connection resource pond, wherein
Server based on when the server corresponding to connection that the connection resource pond is stored is structure request of data;
The system also includes:Detection unit 330, for when the connection status to destination server does heartbeat detection,
It is disconnected with the connection of the destination server if detected, triggers judging unit 340;
The judging unit 340, for judging that the destination server is with the presence or absence of cashing indication and the cashing indication
It is no within effective time, if so, abandon to the destination server send establish connection request.
In the embodiment of the present invention, the service change notice for the terminal transmission that server is connected in the forward direction of change service,
Also, the terminal connected is listened in the server to the execution of change service and receives the service change notice
When delay scheduled time after, with the processing of request of data sent before receiving service change notice to terminal for server
Time is provided, the feedback rates of the result information for the request of data that terminal is sent before receiving service change notice are improved;
Correspondingly, it is the pre- timing that terminal, which after receiving the service change notice of server transmission, is server setting effective time,
Between cashing indication, while the connection of the server and the terminal is removed from connection resource pond, in turn, to destination service
It when the connection status of device does heartbeat detection, is disconnected with the connection of the destination server if detected, judges that the target takes
Device be engaged in the presence or absence of cashing indication and whether the cashing indication is within effective time, if so, abandoning sending out to the destination server
The request established and connected is sent, terminal connection of request and server again within the predetermined time that server is postponed is avoided,
Meanwhile avoiding the request of terminal to server transmission data.As it can be seen that by this programme, server may be implemented and serviced in change
When, the loss of terminal requested data is reduced, and server is allow smoothly to change service.
Further, the judging unit 340 is additionally operable to:If it is judged that there is no cachings to mark for the destination server
Know or there are cashing indication but the cashing indication is not within effective time, request is established with the destination server and connected.
Specifically, the change service may include the service of restarting or closing service.
Further, the detection unit 330 is specifically used for:Heartbeat is done in the connection status to the destination server
It when detection, is disconnected with the connection of the destination server if detected, judges the destination server whether in default registration
In center, if so, triggering the judging unit.
Corresponding to a kind of above-mentioned data processing method provided from the angle of server, an embodiment of the present invention provides one
Kind data processing system, is applied to server, as shown in figure 4, the data processing system may include:
Transmission unit 410, for before change services, service change notice to be sent to each terminal connected, with
Make each terminal of connection after receiving the service change notice that the server is sent, is arranged for the server
Effective time is the cashing indication of predetermined time, and the connection of the server and the terminal is removed from connection resource pond,
Also, when the connection status to destination server does heartbeat detection, if detected disconnected with the connection of the destination server
It opens, then judges the destination server with the presence or absence of cashing indication and whether the cashing indication is within effective time, if so, putting
Abandon the request for being sent to the destination server and establishing connection, wherein the clothes corresponding to connection that the connection resource pond is stored
Server based on when being engaged in device to build request of data;
Monitoring unit 420, for monitoring whether each terminal receives the service change notice;
Execution unit 430, for when listening to each terminal and receiving service change notice, delay to be pre-
Change of fixing time services.
As it can be seen that by this programme, server may be implemented when changing service, reduce the loss of terminal requested data,
And server is allow smoothly to change service.
For device embodiments, since it is substantially similar to the method embodiment, related so describing fairly simple
Place illustrates referring to the part of embodiment of the method.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of data processing method, which is characterized in that it is applied to terminal, the method includes:
Receive the service change notice that connected server is sent, wherein the service change notice is that the server exists
The notice that terminal is sent described in the forward direction of the service of change, also, the server is to changing the execution serviced in the server
It listens to when the terminal connected receives the service change notice after delay scheduled time;
The effective time that cashing indication is arranged for the server, and the cashing indication is arranged is the predetermined time, simultaneously
The connection of the server and the terminal is removed from connection resource pond, wherein the connection that the connection resource pond is stored
Server based on when corresponding server is structure request of data;
The method further includes:When the connection status to destination server does heartbeat detection, if detected and the target
The connection of server disconnects, then judges the destination server with the presence or absence of cashing indication and whether the cashing indication is when effective
In, if so, abandoning sending the request for establishing connection to the destination server.
2. according to the method described in claim 1, it is characterized in that, further including:
If it is judged that the destination server is there is no cashing indication or there are cashing indication but the cashing indication is not effective
In time, request is established with the destination server and is connected.
3. according to the method described in claim 1, it is characterized in that,
The change service includes service of restarting or closing service.
4. according to claim 1-3 any one of them methods, which is characterized in that further include:
When the connection status to the destination server does heartbeat detection, if detecting the connection with the destination server
It disconnects, then judges that the destination server whether in default registration center, judges the destination service if so, continuing to execute
Device with the presence or absence of cashing indication and the cashing indication whether the step within effective time.
5. a kind of data processing method, which is characterized in that it is applied to server, the method includes:
Before change services, service change notice is sent to each terminal connected, so that each terminal of connection
It it is the predetermined time for server setting effective time after receiving the service change notice that the server is sent
Cashing indication, and the connection of the server and the terminal is removed from connection resource pond, also, to destination server
When connection status does heartbeat detection, is disconnected with the connection of the destination server if detected, judge the destination service
Device is with the presence or absence of cashing indication and whether the cashing indication is within effective time, if so, abandoning sending out to the destination server
Send the request established and connected, wherein the server corresponding to connection that the connection resource pond is stored is structure request of data
When based on server;
Monitor whether each terminal receives the service change notice;
When listening to each terminal and receiving service change notice, delay scheduled time change service.
6. a kind of data processing system, which is characterized in that it is applied to terminal, the system comprises:
Receiving unit, the service change notice sent for receiving connected server, wherein the service change notice is
The server notice that terminal is sent described in the forward direction of change service, also, execution of the server to change service
It is listened to when the terminal connected receives the service change notice after delay scheduled time in the server;
Setting unit, for cashing indication to be arranged for the server, and the effective time for the cashing indication to be arranged is
The predetermined time, while the connection for removing the server and the terminal from connection resource pond, wherein the company
Connect server based on when the server corresponding to the connection that resource pool is stored is structure request of data;
The system also includes:Detection unit, for when the connection status to destination server does heartbeat detection, if detection
It is disconnected to the connection with the destination server, then triggers judging unit;
The judging unit, for judging that the destination server whether there is cashing indication and whether the cashing indication is effective
In time, if so, abandoning sending the request for establishing connection to the destination server.
7. system according to claim 6, which is characterized in that the judging unit is additionally operable to:
If it is judged that the destination server is there is no cashing indication or there are cashing indication but the cashing indication is not effective
In time, request is established with the destination server and is connected.
8. system according to claim 6, which is characterized in that the change service includes service of restarting or closing service.
9. according to claim 6-8 any one of them systems, which is characterized in that the detection unit is specifically used for:
When the connection status to the destination server does heartbeat detection, if detecting the connection with the destination server
It disconnects, the destination server is judged whether in default registration center, if so, triggering the judging unit.
10. a kind of data processing system, which is characterized in that it is applied to server, the system comprises:
Transmission unit, for before change services, service change notice to be sent to each terminal connected, so that connection
Effective time is arranged for the server after receiving the service change notice that the server is sent in each terminal
For the cashing indication of predetermined time, and the connection of the server and the terminal is removed from connection resource pond, also, right
When the connection status of destination server does heartbeat detection, disconnects, judge with the connection of the destination server if detected
The destination server is with the presence or absence of cashing indication and whether the cashing indication is within effective time, if so, abandoning to described
Destination server sends the request for establishing connection, wherein the server corresponding to connection that the connection resource pond is stored is
Server based on when structure request of data;
Monitoring unit, for monitoring whether each terminal receives the service change notice;
Execution unit, for when listening to each terminal and receiving service change notice, delay scheduled time
Change service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510857321.8A CN105337996B (en) | 2015-11-30 | 2015-11-30 | A kind of data processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510857321.8A CN105337996B (en) | 2015-11-30 | 2015-11-30 | A kind of data processing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105337996A CN105337996A (en) | 2016-02-17 |
CN105337996B true CN105337996B (en) | 2018-08-03 |
Family
ID=55288278
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510857321.8A Active CN105337996B (en) | 2015-11-30 | 2015-11-30 | A kind of data processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105337996B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106254035A (en) * | 2016-08-08 | 2016-12-21 | 青岛海信宽带多媒体技术有限公司 | The data receiver method of communication interface and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852309A (en) * | 2005-11-16 | 2006-10-25 | 华为技术有限公司 | Data synchronizing processing method and its client end |
CN103220165A (en) * | 2013-03-20 | 2013-07-24 | 杭州华三通信技术有限公司 | Processing method and device for server active downtime |
CN103685501A (en) * | 2013-12-06 | 2014-03-26 | 北京奇虎科技有限公司 | Data processing method, device and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101914488B1 (en) * | 2011-04-06 | 2018-11-05 | 삼성전자주식회사 | Server cluster and method for push notification service |
-
2015
- 2015-11-30 CN CN201510857321.8A patent/CN105337996B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852309A (en) * | 2005-11-16 | 2006-10-25 | 华为技术有限公司 | Data synchronizing processing method and its client end |
CN103220165A (en) * | 2013-03-20 | 2013-07-24 | 杭州华三通信技术有限公司 | Processing method and device for server active downtime |
CN103685501A (en) * | 2013-12-06 | 2014-03-26 | 北京奇虎科技有限公司 | Data processing method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN105337996A (en) | 2016-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3554472B2 (en) | Method and apparatus for managing processor domain members in a distributed computer environment | |
CN100568854C (en) | A kind of method and interface board that keeps neighborhood | |
CN100553213C (en) | A kind of method and apparatus of WLAN abnormal quick restoring | |
JP2007521547A (en) | Session start protocol end system and method | |
CN104683188A (en) | Method for quickly detecting communication of IP channel of household router | |
CN109040295B (en) | Method and device for determining abnormal disconnection, terminal and storage medium | |
CN103139818A (en) | Method, system, area of effect (AOE), always on line (AOG) and terminal of maintaining long connection in acquisition of signal (AOS) | |
CN106060088A (en) | Service management method and device | |
CN104901834A (en) | Method and system for automatically switching between network servers | |
EP2553870A1 (en) | An operations, administrations and management proxy and a method for handling operations, administrations and management messages | |
CN103795554A (en) | Terminal state managing method, device and system | |
CN107872326B (en) | Method, device and system for releasing session resources | |
CN107454184B (en) | Method for establishing stable network connection between Android client and server | |
CN102307194B (en) | Graceful restarting method and device for universal protocol process | |
CN105337996B (en) | A kind of data processing method and system | |
EP2774323B1 (en) | Method, communication system and non-transitory computer readable medium for optimizing network performance after a temporary loss of connection | |
EP2018024A1 (en) | Call processing system and method | |
CN113692028A (en) | Master-slave switching method for AP (Access Point) equipment in Mesh network | |
CN104125079A (en) | Method and device for determining double-device hot-backup configuration information | |
CN102918802B (en) | Method, node and system for determining fault indication state | |
EP2456163B1 (en) | Registering an internet protocol phone in a dual-link architecture | |
CN108270593A (en) | A kind of two-node cluster hot backup method and system | |
CN115022384B (en) | HSMS communication connection method and device | |
KR101407597B1 (en) | System and method for providing push service | |
CN113824595B (en) | Link switching control method and device and gateway equipment |
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 |