CN105207809A - Data processing method, server, client side and system - Google Patents

Data processing method, server, client side and system Download PDF

Info

Publication number
CN105207809A
CN105207809A CN201510528093.XA CN201510528093A CN105207809A CN 105207809 A CN105207809 A CN 105207809A CN 201510528093 A CN201510528093 A CN 201510528093A CN 105207809 A CN105207809 A CN 105207809A
Authority
CN
China
Prior art keywords
server
business
complete
information
temporal information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510528093.XA
Other languages
Chinese (zh)
Other versions
CN105207809B (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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201510528093.XA priority Critical patent/CN105207809B/en
Publication of CN105207809A publication Critical patent/CN105207809A/en
Application granted granted Critical
Publication of CN105207809B publication Critical patent/CN105207809B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a server comprising a processing time recording module which is used for recording time information of completion of business processing after a business request transmitted by a client side is processed completely; a return packet generation module which is used for generating a return packet including business key state information and the time information of completion of business processing after the business request transmitted by the client side is processed completely; a recording time synchronization module which is used for synchronizing the recorded time information of completion of business processing to a second server; and a business request return module which is used for transmitting the return packet to the client side so that the client side is enabled to save the business key state information and the time information of completion of business processing. Correspondingly, the invention also discloses the client side, another server and a system. With application of the server, the technical problems that business switching processing is not fluent caused by the fact that data are not completely consistent when a master server is switched to a standby server due to the fact that the link of disaster recovery synchronization data across the machine rooms is long in time delay or open-circuit can be solved.

Description

A kind of data processing method, server, client and system
Technical field
The present invention relates to computer realm, particularly relate to a kind of data processing method, server, client and system.
Background technology
The server (robe) of private name server (be called for short private clothes, PrivateServer) i.e. unofficial erection, business (as played) network operator or developer the server that sets up.When the concept of game server private clothes is prevailing, takes unit for private, there is the problem of single-point.Machine or Network Abnormal if fruit server is delayed, can cause the user player in whole region can not continue to play games.
Problems existing is taken for private, the game services framework building High Availabitity is needed to solve, the schematic diagram of High Availabitity framework in prior art as shown in Figure 1, High Availabitity framework of the prior art just carries out synchronously active and standby to status data, and carry out process monitoring by zookeeper, when main frame occurs abnormal, directly notice standby host provides service, but may abnormal conditions be there are in game state data this link synchronous, when such as there is the longer or open circuit of time delay across the link of machine room disaster tolerance synchrodata, game state data may not have the machine of Complete Synchronization to backup, thus the situation causing state inconsistent, have impact on the experience of user player.
In addition, after master server is disposed to each service request in prior art, all identify this service request done (processing) at Redis, the standby server traversal service request of nearest 1 minute, if this service request does not identify done, then heavily process this service request.Active/standby server all receives service request, standby server just provides service processing in master server on-hook, delay for 30ms+, active/standby server may be not quite identical across the service request that machine room receives, also there is packet loss, the problem such as out of order, although therefore prior art carries out multiple duplication data by server side to recover service condition data, the consistency of data also ideally can only be ensure that at server side; And user side is because network problem or other performance issues, can run into the data got not is latest edition, or has got latest edition and situation that data backup is not updated to.This impact finally still can have influence on the final experience of user.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, a kind of data processing method, server, client and data handling system are provided, solve in prior art when the longer or open circuit of time delay appears in the link across machine room disaster tolerance synchrodata, master server is made to be switched to for data transformation during server is consistent and to cause the slack technical problem of business hand-off process, by going out to send the consistency ensureing data from client.
In order to solve the problems of the technologies described above, embodiment of the present invention first aspect discloses a kind of server, comprising:
Processing time logging modle, for after the service request of client transmission that is disposed, the temporal information that record traffic is disposed;
Return bag generation module, for after the service request that sends in the client that is disposed, generate comprise business critical state information and the complete temporal information of described Business Processing return bag;
Writing time synchronization module, for the complete temporal information of described Business Processing of record is synchronized to second server; Wherein said second server is the standby server of described first server, when described first server generation business switches, described business is switched to described second server;
Service request returns module, for the described bag that returns is sent to described client, preserves described business critical state information and the complete temporal information of described Business Processing to make described client.
In conjunction with first aspect, in the implementation that the first is possible, return in the public header of bag described in described business critical state information and the complete temporal information of described Business Processing are arranged on.
Embodiment of the present invention second aspect discloses a kind of server, and described server is second server, comprising:
Time receives preserves module, for receiving and preserving the complete temporal information of Business Processing that first server sends;
Business receiver module, for when described first server generation business switches, receives the service request that client sends;
Temporal information sending module, for when described first server generation business switches, sends to client by temporal information complete for the up-to-date Business Processing of preserving in described time reception preservation module;
Business update module, for after receiving the business critical state information that the described client temporal information complete according to described up-to-date Business Processing return, service condition is upgraded according to described business critical state information, and after renewal, trigger the service request that the described business receiver module of process receives.
In conjunction with second aspect, in the implementation that the first is possible, also comprise:
Return information receiver module, for send at described temporal information sending module the complete temporal information of up-to-date Business Processing to described client after, receive the indication information that described client returns;
Service Processing Module, for when described indication information comprises described business critical state information, after described business update module upgrades service condition, processes the service request that described business receiver module receives; Or when described indication information instruction is without the need to upgrading service condition, process the service request that described business receiver module receives.
The embodiment of the present invention third aspect discloses a kind of client, comprising:
Return bag receiver module, for receive first server send return bag; The described handbag that returns is containing business critical state information and the complete temporal information of described Business Processing;
Information preserves module, for preserving the described business critical state information that receives and the complete temporal information of described Business Processing;
Temporal information receiver module, the temporal information that the Business Processing for receiving second server transmission is complete;
Time transfer receiver module, preserves in module the complete temporal information of Business Processing that the complete temporal information of the up-to-date Business Processing of preserving and described temporal information receiver module receive for information described in comparison;
Business information returns module, when being later than the time from the Business Processing of described temporal information receiver module reception is complete for the time complete when the up-to-date Business Processing of preserving in described information preservation module, returning described information to described second server and preserve the business critical state information preserved in module.
In conjunction with the third aspect, in the implementation that the first is possible, also comprise:
Indication information returns module, during for preserving the complete time consistency of Business Processing that the up-to-date Business Processing of preserving in module complete time and described temporal information receiver module receive when described information, send indication information to described second server, described indication information is used to indicate without the need to upgrading service condition.
In conjunction with the third aspect, or the first possible implementation of the third aspect, in the implementation that the second is possible, return in the public header of bag described in described business critical state information and the complete temporal information of described Business Processing are arranged on;
Described business information returns module when being later than the Business Processing that receives from described temporal information receiver module complete time specifically for preserving the up-to-date Business Processing of preserving in the module complete time when described information, returns described public header to described second server.
Embodiment of the present invention fourth aspect discloses a kind of data handling system, comprises first server, second server and client, wherein
After the service request that described first server sends in the described client that is disposed, the temporal information that record traffic is disposed, and generate comprise business critical state information and the complete temporal information of described Business Processing return bag; Temporal information complete for the described Business Processing of record is synchronized to described second server; The described bag that returns is sent to described client, preserves described business critical state information and the complete temporal information of described Business Processing to make described client;
Described second server receives and preserves the complete temporal information of Business Processing that described first server sends; When described first server generation business switches, receive the service request that described client sends, temporal information complete for the up-to-date Business Processing of preserving is sent to described client;
After described client receives the complete temporal information of Business Processing that described second server sends, the temporal information that the comparison local terminal up-to-date Business Processing of preserving is complete and the complete temporal information of the Business Processing that described second server sends; And when up-to-date Business Processing complete time that local terminal is preserved is later than the Business Processing that sends from described second server complete time, return the business critical state information of preservation to described second server;
After described second server receives the business critical state information that described client returns, upgrade service condition according to described business critical state information, and after renewal, trigger the described service request processing and receive.
The embodiment of the present invention the 5th aspect discloses a kind of data processing method, comprising:
After the service request that the client that is disposed sends, the temporal information that record traffic is disposed, and generate comprise business critical state information and the complete temporal information of described Business Processing return bag;
Temporal information complete for the described Business Processing of record is synchronized to second server; Wherein said second server is the standby server of described first server, when described first server generation business switches, described business is switched to described second server;
The described bag that returns is sent to described client, preserves described business critical state information and the complete temporal information of described Business Processing to make described client.
In conjunction with the 5th aspect, in the implementation that the first is possible, return in the public header of bag described in described business critical state information and the complete temporal information of described Business Processing are arranged on.
The embodiment of the present invention the 6th aspect discloses a kind of data processing method, comprising:
Receive and preserve the complete temporal information of Business Processing that first server sends;
When described first server generation business switches, receive the service request that client sends, temporal information complete for the up-to-date Business Processing of preserving is sent to client;
After receiving the business critical state information that the described client temporal information complete according to described up-to-date Business Processing return, upgrade service condition according to described business critical state information, and after renewal, trigger the service request processing and receive.
In conjunction with the 6th aspect, in the implementation that the first is possible, described the complete temporal information of up-to-date Business Processing of preserving sent to client after, also comprise:
Receive the indication information that described client returns;
When described indication information comprises described business critical state information, trigger and perform the described step upgrading service condition according to described business critical state information; When described indication information instruction is without the need to upgrading service condition, process the described service request received.
The embodiment of the present invention the 7th aspect discloses a kind of data processing method, comprising:
What receive first server transmission returns bag; The described handbag that returns is containing business critical state information and the complete temporal information of described Business Processing;
Preserve the described business critical state information that receives and the complete temporal information of described Business Processing;
Receive the temporal information that the Business Processing of second server transmission is complete;
The complete temporal information of up-to-date Business Processing that comparison is preserved and the complete temporal information of the Business Processing that described second server sends;
When up-to-date Business Processing complete time of preserving is later than the Business Processing that sends from described second server complete time, return the business critical state information of preservation to described second server.
In conjunction with the 7th aspect, in the implementation that the first is possible, also comprise:
When the time consistency that the Business Processing that up-to-date Business Processing complete time of preserving and described second server send is complete, to described second server transmission indication information, described indication information is used to indicate without the need to upgrading service condition.
In conjunction with the 7th aspect, or the first possible implementation of the 7th aspect, in the implementation that the second is possible, return in the public header of bag described in described business critical state information and the complete temporal information of described Business Processing are arranged on;
The described business critical state information returning preservation to described second server comprises: return described public header to described second server.
Embodiment of the present invention eighth aspect discloses a kind of computer-readable storage medium, described computer-readable storage medium has program stored therein, described program comprises the embodiment of the present invention third aspect when performing, or the first possible implementation of the third aspect, or fourth aspect, or the first possible implementation of fourth aspect, or the 5th aspect, or the first possible implementation of the 5th aspect, or the Overall Steps of data processing method disclosed in the possible implementation of the second of the 5th aspect.
Implement the embodiment of the present invention, there is following beneficial effect:
By implementing the embodiment of the present invention, the temporal information that first server record traffic is disposed, and generate comprise business critical state information and the complete temporal information of Business Processing return bag; Temporal information complete for this Business Processing is synchronized to second server, and this is returned bag sends to client; When first server generation business switches, this second server receives the service request that client sends, temporal information complete for the up-to-date Business Processing of preserving is sent to this client, when this client comparison go out up-to-date Business Processing complete time that local terminal preserves be later than the Business Processing that sends from this second server complete time time, return the business critical state information of preservation to this second server; Upgrade service condition with the business critical state information making this second server send according to client, and after renewal, trigger the service request processing and receive; Solve in prior art when the longer or open circuit of time delay appears in the link across machine room disaster tolerance synchrodata, master server is made to be switched to for data transformation during server is consistent and to cause the slack technical problem of business hand-off process, by going out to send the consistency ensureing data from client, make when active/standby server switches, user can't feel the inconsistent of any data, greatly reduce the complaint of user, save customer service resource, and improve the experience of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of High Availabitity framework in prior art;
Fig. 2 is the structural representation of the data handling system that the embodiment of the present invention provides;
Fig. 3 is the structural representation of the server that the embodiment of the present invention provides;
Fig. 4 is the structural representation of another embodiment of server provided by the invention;
Fig. 5 is the structural representation of another embodiment of server provided by the invention;
Fig. 6 is the structural representation of the client that the embodiment of the present invention provides;
Fig. 7 is the structural representation of another embodiment of client provided by the invention;
Fig. 8 is the schematic flow sheet of the data processing method that the embodiment of the present invention provides;
Fig. 9 is the schematic flow sheet of another embodiment of data processing method provided by the invention;
Figure 10 is the schematic flow sheet of another embodiment of data processing method provided by the invention;
Figure 11 is the schematic flow sheet of another embodiment of data processing method provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The structural representation of the data handling system that the embodiment of the present invention as shown in Figure 2 provides, the scene framework of data handling system 20 of the present invention is first described, data handling system 20 can comprise first server 200, multiple second server 202 and multiple client 204, wherein data handling system 20 is active/standby server framework, first server 200 is master server, second server 202 is standby server, business datum has master server to be synchronized to standby server, to comprise 1 second server 202 and 1 client 204 is described in Fig. 2:
After the service request that first server 200 sends in the client 204 that is disposed, the temporal information that record traffic is disposed, and generate comprise business critical state information and the complete temporal information of Business Processing return bag; Temporal information complete for the Business Processing of record is synchronized to second server 202; And bag will be returned send to client 204, preserve this business critical state information and the complete temporal information of Business Processing to make client 204;
Second server 202 receives and preserves the complete temporal information of Business Processing that first server 200 sends; When business switching occurs first server 200, second server 202 receives the service request that client sends, and temporal information complete for the up-to-date Business Processing of preserving is sent to client 204;
After client 204 receives the complete temporal information of Business Processing that second server 202 sends, the temporal information that the comparison local terminal up-to-date Business Processing of preserving is complete and the complete temporal information of the Business Processing that second server 202 sends; And when the time that the up-to-date Business Processing that local terminal is preserved is complete is later than the time from the Business Processing of second server 202 transmission is complete, return the business critical state information of preservation to second server 202;
After second server 202 receives the business critical state information that client 204 returns, upgrade service condition according to business critical state information, and after renewal, trigger the service request processing and receive.
Particularly, the business in the embodiment of the present invention includes but not limited to game service; Client in the embodiment of the present invention includes but not limited to that personal computer PC, mobile phone, removable computer, panel computer, personal digital assistant (PersonalDigitalAssistant, PDA), media player, intelligent television, intelligent watch, intelligent glasses, Intelligent bracelet etc. can be carried out alternately and the subscriber equipment of finishing service with server.For game service, the business critical state information in the embodiment of the present invention can comprise game crucial state information, game user information.Be that example is described below with game service:
User is connected by client 204 and first server 200 (i.e. master server), log in and enter game, this first server 200 receives the game request that this client 204 sends, to go forward side by side row relax, record the temporal information that this game request is disposed, and generate comprise temporal information that the crucial state information of game, game user information and this game request be disposed return bag; The temporal information that the game request of above-mentioned record is disposed is synchronized in second server 202 (i.e. standby server) by this first server 200, and this is returned bag and send to this client 204, this client 204 receives after this returns bag, preserves the temporal information that this state information returning the game key in bag, game user information and this game request are disposed.When this first server 200 breaks down or the business that occurs as required switches, active-standby switch can be carried out equally by zookeeper, business is switched to this second server 202, second server 202 receives the game request that this client 204 sends, but temporarily do not process this game request, but first temporal information complete for the up-to-date Business Processing of preserving is sent to this client 204, after this client 204 receives the complete temporal information of Business Processing that this second server 202 sends, the complete temporal information of up-to-date Business Processing that comparison local terminal is preserved and the complete temporal information of the Business Processing that second server 202 sends, and when the time that the up-to-date Business Processing that local terminal is preserved is complete is later than the time from the Business Processing of second server 202 transmission is complete, return state information, the game user information of the game key of preservation to second server 202, second server 202, after receiving the business critical state information that client 204 returns, upgrades service condition according to the state information of this game key, game user information, and after renewal, triggers the game request processing and receive.If when client 204 comparison goes out up-to-date Business Processing complete time that local terminal preserves and the Business Processing that second server 202 sends complete time consistency, this second server 202 then can be indicated to carry out service condition renewal, and second server 202 can directly process the game request received.
Can be solved in prior art when the longer or open circuit of time delay appears in the link across machine room disaster tolerance synchrodata by the embodiment of the present invention, master server is made to be switched to for data transformation during server is consistent and to cause the slack technical problem of business hand-off process, by going out to send the consistency ensureing data from client, make when active/standby server switches, user can't feel the inconsistent of any data, greatly reduce the complaint of user, save customer service resource, and improve the experience of user.
The following detailed description of the structure of the first server of data handling system in the embodiment of the present invention 20, the structural representation of the server that the embodiment of the present invention as shown in Figure 3 provides, server 30 is the first server 200 in above-mentioned Fig. 2 embodiment, server 30 can comprise: processing time logging modle 300, return bag generation module 302, writing time synchronization module 304 and service request return module 306, wherein
Processing time logging modle 300 for be disposed client send service request after, the temporal information that record traffic is disposed;
Particularly, after the main service processes of server 30 processes the game service request of client (i.e. game player), can at the up-to-date temporal information RecordTime be disposed of game state data lab setting one.Server 30 can pass through the complete temporal information of the up-to-date Business Processing of separate threads 5 ~ 10ms time recording.
Return bag generation module 302 for after the service request that sends in the client that is disposed, generate comprise business critical state information and the complete temporal information of described Business Processing return bag;
Particularly, the business critical state information of this generation and the complete temporal information of Business Processing can be arranged on and return in the public header of bag, that is, newly-increased public header can returned in bag, to arrange business critical state information and the complete temporal information of Business Processing.
Writing time, synchronization module 304 was for being synchronized to second server by temporal information complete for the described Business Processing of record;
Particularly, second server is the standby server (i.e. standby server) of this server 30, when described first server generation business switches, described business is switched to described second server; The game state data including the up-to-date RecordTime be disposed is synchronized to this second server by server 30.
Service request returns module 306 for the described bag that returns is sent to described client, preserves described business critical state information and the complete temporal information of described Business Processing to make described client.
Further, the structural representation of another embodiment of server provided by the invention as shown in Figure 4, server 40 is the second server 202 in above-mentioned Fig. 2 embodiment, server 40 can comprise: the time receives preserves module 400, business receiver module 402, temporal information sending module 404 and business update module 406, wherein
Time receives preserves module 400 for receiving and preserving the complete temporal information of Business Processing that first server sends;
Particularly, the time receives preserves after module 400 receives the complete temporal information of Business Processing that first server sends, and this information can be kept in the game state data storehouse of local terminal.
Business receiver module 402, for when described first server generation business switches, receives the service request that client sends;
Particularly, if sovereignty limit is surrendered in first server heartbeat timeout or active, sovereignty limit can be switched to provide service by known standby server, so first this second server 202 can arrange master server authority, and need the game state data lab setting of local terminal to be master server state, receive the service request that client sends.
Temporal information complete for the up-to-date Business Processing of preserving in described time reception preservation module, for when described first server generation business switches, is sent to client by temporal information sending module 404;
Particularly, server 40 reads RecordTime up-to-date in local terminal game state data storehouse, and this up-to-date RecordTime can be broadcast to all clients.
Business update module 406 is for after receiving the business critical state information that the described client temporal information complete according to described up-to-date Business Processing return, service condition is upgraded according to described business critical state information, and after renewal, trigger the service request that process business receiver module 402 receives.
Particularly, after the temporal information that the Business Processing that client reception second server sends is complete, by temporal information complete with the Business Processing received from server 40 for temporal information complete for the up-to-date Business Processing of comparison self preservation, and when the time that the up-to-date Business Processing that self preserves is complete is later than the time from the Business Processing of server 40 reception is complete, the up-to-date business critical state information preserved in self is returned to server 40, after business update module 406 receives this business critical state information, service condition is upgraded according to this business critical state information, and after renewal, trigger the service request that process business receiver module 402 receives.
Again further, the structural representation of another embodiment of server provided by the invention as shown in Figure 5, server 40 comprises time reception and preserves outside module 400, business receiver module 402, temporal information sending module 404 and business update module 406, return information receiver module 408 and Service Processing Module 4010 can also be comprised, wherein
Return information receiver module 408 for send at temporal information sending module 404 the complete temporal information of up-to-date Business Processing to described client after, receive the indication information that described client returns;
Particularly, after client receives the complete temporal information of up-to-date Business Processing that server 40 sends, the temporal information that Business Processing temporal information complete for the up-to-date Business Processing of comparison local terminal preservation and server 40 sent is complete, and return indication information to server 40; When the time that the up-to-date Business Processing that client local terminal is preserved is complete is later than the time from the Business Processing of server 40 transmission is complete, this indication information comprises the business critical state information that client local terminal is preserved, when client comparison goes out up-to-date Business Processing complete time that local terminal preserves and the complete time consistency of the Business Processing that server 40 sends, this indication information is used to indicate without the need to upgrading service condition.
Will be understood that, this business critical state information can be arranged in public header, namely, when the time that the up-to-date Business Processing that client local terminal is preserved is complete is later than the time from the Business Processing of server 40 transmission is complete, public header that can the time complete for the up-to-date Business Processing of this preservation is corresponding sends to server 40.
Service Processing Module 4010, for when described indication information comprises described business critical state information, after business update module 406 upgrades service condition, processes the service request that business receiver module 402 receives; Or when described indication information instruction is without the need to upgrading service condition, the service request that process business receiver module 402 receives.
Correspondingly, below in conjunction with the structural representation of the client that the embodiment of the present invention shown in Fig. 6 provides, the corresponding execution mode that client 60 in the embodiment of the present invention is described, client 60 can comprise return bag receiver module 600, information preserve module 602, temporal information receiver module 604, Time transfer receiver module 606 and business information return module 608, wherein
Return bag receiver module 600 for receive first server send return bag; The described handbag that returns is containing business critical state information and the complete temporal information of described Business Processing;
Particularly, after the main service processes of first server processes the game service request of client 60 (i.e. game player), can at the up-to-date temporal information RecordTime be disposed of game state data lab setting one.First server can pass through the complete temporal information of the up-to-date Business Processing of separate threads 5 ~ 10ms time recording; This is returned bag and sends to client 60 by first server, preserves this business critical state information and the complete temporal information of this Business Processing to make client 60.Client 60 return bag receiver module 600 receive first server send return bag.
Information preserves module 602 for preserving the described business critical state information that receives and the complete temporal information of described Business Processing;
Particularly, information is preserved module 602 and this business critical state information and the complete temporal information of this Business Processing can be kept in data mode database.
The complete temporal information of Business Processing that temporal information receiver module 604 sends for receiving second server;
Particularly, if sovereignty limit is surrendered in first server heartbeat timeout or active, sovereignty limit can be switched to provide service by known standby server, so first this second server can arrange master server authority, and need the game state data lab setting of local terminal to be master server state, receive the service request that client sends.Second server reads RecordTime up-to-date in local terminal game state data storehouse, and this up-to-date RecordTime can be broadcast to all clients.So temporal information receiver module 604 receives the complete temporal information of Business Processing that second server sends.
Time transfer receiver module 606 preserves the complete temporal information of Business Processing that the complete temporal information of the up-to-date Business Processing of preserving in module 602 and temporal information receiver module 604 receive for comparison information;
Business information returns module 608 when being later than the Business Processing that receives from temporal information receiver module 604 complete time for preserving the up-to-date Business Processing of preserving in the module 602 complete time when information, preserves the business critical state information preserved in module 602 to described second server return information.
Particularly, the temporal information that the complete temporal information of the Time transfer receiver module 606 up-to-date Business Processing of comparison self being preserved is complete with the Business Processing received from second server, and when the time that the up-to-date Business Processing that self preserves is complete is later than the time from the Business Processing of second server reception is complete, business information returns module 608 and returns the up-to-date business critical state information preserved in self to second server, after second server receives this business critical state information, service condition is upgraded according to this business critical state information, and after renewal, trigger the service request processing and receive.
Further, the structural representation of another embodiment of client provided by the invention as shown in Figure 7, client 60 comprises and returns bag receiver module 600, information preserves module 602, temporal information receiver module 604, Time transfer receiver module 606 and business information return outside module 608, indication information can also be comprised and return module 6010, during for preserving the complete time consistency of Business Processing that the up-to-date Business Processing of preserving in module 602 complete time and described temporal information receiver module receive when information, indication information is sent to described second server, described indication information is used to indicate without the need to upgrading service condition.
Will be understood that, return in the public header of bag described in this business critical state information and the complete temporal information of this Business Processing can be arranged on;
Business information returns module 608 when being later than the Business Processing that receives from temporal information receiver module 604 complete time specifically for preserving the up-to-date Business Processing of preserving in the module 602 complete time when information, returns this public header to this second server.
By implementing the embodiment of the present invention, the temporal information that first server record traffic is disposed, and generate comprise business critical state information and the complete temporal information of Business Processing return bag; Temporal information complete for this Business Processing is synchronized to second server, and this is returned bag sends to client; When first server generation business switches, this second server receives the service request that client sends, temporal information complete for the up-to-date Business Processing of preserving is sent to this client, when this client comparison go out up-to-date Business Processing complete time that local terminal preserves be later than the Business Processing that sends from this second server complete time time, return the business critical state information of preservation to this second server; Upgrade service condition with the business critical state information making this second server send according to client, and after renewal, trigger the service request processing and receive; Solve in prior art when the longer or open circuit of time delay appears in the link across machine room disaster tolerance synchrodata, master server is made to be switched to for data transformation during server is consistent and to cause the slack technical problem of business hand-off process, by going out to send the consistency ensureing data from client, make when active/standby server switches, user can't feel the inconsistent of any data, greatly reduce the complaint of user, save customer service resource, and improve the experience of user.
For the ease of implementing the such scheme of the embodiment of the present invention better, the present invention also correspondence provides a kind of data processing method, the schematic flow sheet of the data processing method that the embodiment of the present invention as shown in Figure 8 provides, first describe from master server (i.e. first server) side, comprising:
Step S800: after the service request that the client that is disposed sends, the temporal information that record traffic is disposed, and generate comprise business critical state information and the complete temporal information of described Business Processing return bag;
Step S802: temporal information complete for the described Business Processing of record is synchronized to second server;
Wherein said second server is the standby server of described first server, when described first server generation business switches, described business is switched to described second server;
Step S804: the described bag that returns is sent to described client, preserves described business critical state information and the complete temporal information of described Business Processing to make described client.
Particularly, the execution mode of the data processing method of Fig. 8 embodiment can be corresponding to the associated description to server 30 in above-mentioned Fig. 3 embodiment, repeats no more here.
Further, the schematic flow sheet of another embodiment of data processing method provided by the invention as shown in Figure 9, describes from standby server (i.e. second server) side, comprising:
Step S900: receive and preserve the complete temporal information of Business Processing that first server sends;
Step S902: when described first server generation business switches, receive the service request that client sends, temporal information complete for the up-to-date Business Processing of preserving is sent to client;
Step S904: after receiving the business critical state information that the described client temporal information complete according to described up-to-date Business Processing return, service condition is upgraded according to described business critical state information, and after renewal, trigger the service request processing and receive.
Particularly, after step S902, can also comprise: receive the indication information that described client returns; When described indication information comprises described business critical state information, trigger and perform the described step upgrading service condition according to described business critical state information; When described indication information instruction is without the need to upgrading service condition, process the described service request received.
Particularly, the execution mode of the data processing method of Fig. 9 embodiment can be corresponding to the associated description to server 40 in above-mentioned Fig. 4 and Fig. 5 embodiment, repeats no more here.
Again further, the schematic flow sheet of another embodiment of data processing method provided by the invention as shown in Figure 10, describes from client (i.e. user side) side, comprising:
Step S1000: what receive first server transmission returns bag; The described handbag that returns is containing business critical state information and the complete temporal information of described Business Processing;
Step S1002: preserve the described business critical state information that receives and the complete temporal information of described Business Processing;
Step S1004: receive the temporal information that the Business Processing of second server transmission is complete;
Step S1006: the complete temporal information of up-to-date Business Processing that comparison is preserved and the complete temporal information of the Business Processing that described second server sends;
Step S1008: when up-to-date Business Processing complete time of preserving is later than the Business Processing that sends from described second server complete time, return the business critical state information of preservation to described second server.
Particularly, the data processing method of the embodiment of the present invention can also comprise: when the time consistency that the Business Processing that up-to-date Business Processing complete time of preserving and described second server send is complete, send indication information to described second server, described indication information is used to indicate without the need to upgrading service condition.
Further, this business critical state information and the complete temporal information of this Business Processing are arranged on this and return in the public header of bag;
This business critical state information returning preservation to this second server comprises: return this public header to this second server.
Particularly, the execution mode of the data processing method of Figure 10 embodiment can be corresponding to the associated description to client 60 in above-mentioned Fig. 6 embodiment, repeats no more here.
Again further, the schematic flow sheet of another embodiment of data processing method provided by the invention as shown in Figure 11, describe from master server (i.e. first server), standby server (second server) and client three side, be described for 1 standby server and 1 client in figure, comprise:
Step S1100: after the service request that first server sends in the client that is disposed, the temporal information that record traffic is disposed, and generate comprise business critical state information and the complete temporal information of described Business Processing return bag;
Step S1102: temporal information complete for the described Business Processing of record is synchronized to second server by first server;
Step S1104: second server receives and preserves the complete temporal information of Business Processing that first server sends;
Step S1106: the described bag that returns is sent to described client by first server, preserves described business critical state information and the complete temporal information of described Business Processing to make described client;
Particularly, the execution sequence of step S1102 and step S1106 by successively performing arbitrarily, or can perform simultaneously.
Step S1108: what client reception first server sent returns bag; The described handbag that returns is containing business critical state information and the complete temporal information of described Business Processing;
Step S1110: client preserves the described business critical state information that receives and the complete temporal information of described Business Processing;
Step S1112: when described first server generation business switches, second server receives the service request that client sends, and temporal information complete for the up-to-date Business Processing of preserving is sent to client;
Step S1114: the temporal information that the Business Processing that client reception second server sends is complete;
Step S1116: the complete temporal information of up-to-date Business Processing that client comparison is preserved and the complete temporal information of the Business Processing that described second server sends;
Step S1118: when up-to-date Business Processing complete time that client is preserved is later than the Business Processing that sends from described second server complete time, client returns the business critical state information of preservation to described second server;
Step S1120: after second server receives the business critical state information that the described client temporal information complete according to described up-to-date Business Processing return, service condition is upgraded according to described business critical state information, and after renewal, trigger the service request processing and receive.
Will be understood that, when step S1118 can also be the time consistency when the Business Processing that the up-to-date Business Processing that client is preserved complete time and described second server send is complete, client sends indication information to described second server, and described indication information is used to indicate without the need to upgrading service condition; Second server will directly process the described service request received.
In sum, by implementing the embodiment of the present invention, the temporal information that first server record traffic is disposed, and generate comprise business critical state information and the complete temporal information of Business Processing return bag; Temporal information complete for this Business Processing is synchronized to second server, and this is returned bag sends to client; When first server generation business switches, this second server receives the service request that client sends, temporal information complete for the up-to-date Business Processing of preserving is sent to this client, when this client comparison go out up-to-date Business Processing complete time that local terminal preserves be later than the Business Processing that sends from this second server complete time time, return the business critical state information of preservation to this second server; Upgrade service condition with the business critical state information making this second server send according to client, and after renewal, trigger the service request processing and receive; Solve in prior art when the longer or open circuit of time delay appears in the link across machine room disaster tolerance synchrodata, master server is made to be switched to for data transformation during server is consistent and to cause the slack technical problem of business hand-off process, by going out to send the consistency ensureing data from client, make when active/standby server switches, user can't feel the inconsistent of any data, greatly reduce the complaint of user, save customer service resource, and improve the experience of user.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (16)

1. a server, is characterized in that, described server is first server, comprising:
Processing time logging modle, for after the service request of client transmission that is disposed, the temporal information that record traffic is disposed;
Return bag generation module, for after the service request that sends in the client that is disposed, generate comprise business critical state information and the complete temporal information of described Business Processing return bag;
Writing time synchronization module, for the complete temporal information of described Business Processing of record is synchronized to second server; Wherein said second server is the standby server of described first server, when described first server generation business switches, described business is switched to described second server;
Service request returns module, for the described bag that returns is sent to described client, preserves described business critical state information and the complete temporal information of described Business Processing to make described client.
2. server as claimed in claim 1, is characterized in that, returns in the public header of bag described in described business critical state information and the complete temporal information of described Business Processing are arranged on.
3. a server, is characterized in that, described server is second server, comprising:
Time receives preserves module, for receiving and preserving the complete temporal information of Business Processing that first server sends;
Business receiver module, for when described first server generation business switches, receives the service request that client sends;
Temporal information sending module, for when described first server generation business switches, sends to client by temporal information complete for the up-to-date Business Processing of preserving in described time reception preservation module;
Business update module, for after receiving the business critical state information that the described client temporal information complete according to described up-to-date Business Processing return, service condition is upgraded according to described business critical state information, and after renewal, trigger the service request that the described business receiver module of process receives.
4. server as claimed in claim 3, is characterized in that, also comprise:
Return information receiver module, for send at described temporal information sending module the complete temporal information of up-to-date Business Processing to described client after, receive the indication information that described client returns;
Service Processing Module, for when described indication information comprises described business critical state information, after described business update module upgrades service condition, processes the service request that described business receiver module receives; Or when described indication information instruction is without the need to upgrading service condition, process the service request that described business receiver module receives.
5. a client, is characterized in that, comprising:
Return bag receiver module, for receive first server send return bag; The described handbag that returns is containing business critical state information and the complete temporal information of described Business Processing;
Information preserves module, for preserving the described business critical state information that receives and the complete temporal information of described Business Processing;
Temporal information receiver module, the temporal information that the Business Processing for receiving second server transmission is complete;
Time transfer receiver module, preserves in module the complete temporal information of Business Processing that the complete temporal information of the up-to-date Business Processing of preserving and described temporal information receiver module receive for information described in comparison;
Business information returns module, when being later than the time from the Business Processing of described temporal information receiver module reception is complete for the time complete when the up-to-date Business Processing of preserving in described information preservation module, returning described information to described second server and preserve the business critical state information preserved in module.
6. client as claimed in claim 5, is characterized in that, also comprise:
Indication information returns module, during for preserving the complete time consistency of Business Processing that the up-to-date Business Processing of preserving in module complete time and described temporal information receiver module receive when described information, send indication information to described second server, described indication information is used to indicate without the need to upgrading service condition.
7. the client as described in claim 5 or 6, is characterized in that, returns in the public header of bag described in described business critical state information and the complete temporal information of described Business Processing are arranged on;
Described business information returns module when being later than the Business Processing that receives from described temporal information receiver module complete time specifically for preserving the up-to-date Business Processing of preserving in the module complete time when described information, returns described public header to described second server.
8. a data handling system, is characterized in that, comprises first server, second server and client, wherein
After the service request that described first server sends in the described client that is disposed, the temporal information that record traffic is disposed, and generate comprise business critical state information and the complete temporal information of described Business Processing return bag; Temporal information complete for the described Business Processing of record is synchronized to described second server; The described bag that returns is sent to described client, preserves described business critical state information and the complete temporal information of described Business Processing to make described client;
Described second server receives and preserves the complete temporal information of Business Processing that described first server sends; When described first server generation business switches, receive the service request that described client sends, temporal information complete for the up-to-date Business Processing of preserving is sent to described client;
After described client receives the complete temporal information of Business Processing that described second server sends, the temporal information that the comparison local terminal up-to-date Business Processing of preserving is complete and the complete temporal information of the Business Processing that described second server sends; And when up-to-date Business Processing complete time that local terminal is preserved is later than the Business Processing that sends from described second server complete time, return the business critical state information of preservation to described second server;
After described second server receives the business critical state information that described client returns, upgrade service condition according to described business critical state information, and after renewal, trigger the described service request processing and receive.
9. system as claimed in claim 8, it is characterized in that, described first server is server as claimed in claim 1 or 2, and described second server is the server as described in claim 3 or 4, and described client is the client as described in any one of claim 5-7.
10. a data processing method, is characterized in that, comprising:
After the service request that the client that is disposed sends, the temporal information that record traffic is disposed, and generate comprise business critical state information and the complete temporal information of described Business Processing return bag;
Temporal information complete for the described Business Processing of record is synchronized to second server; Wherein said second server is the standby server of described first server, when described first server generation business switches, described business is switched to described second server;
The described bag that returns is sent to described client, preserves described business critical state information and the complete temporal information of described Business Processing to make described client.
11. methods as claimed in claim 10, is characterized in that, return in the public header of bag described in described business critical state information and the complete temporal information of described Business Processing are arranged on.
12. 1 kinds of data processing methods, is characterized in that, comprising:
Receive and preserve the complete temporal information of Business Processing that first server sends;
When described first server generation business switches, receive the service request that client sends, temporal information complete for the up-to-date Business Processing of preserving is sent to client;
After receiving the business critical state information that the described client temporal information complete according to described up-to-date Business Processing return, upgrade service condition according to described business critical state information, and after renewal, trigger the service request processing and receive.
13. methods as claimed in claim 12, is characterized in that, described the complete temporal information of up-to-date Business Processing of preserving sent to client after, also comprise:
Receive the indication information that described client returns;
When described indication information comprises described business critical state information, trigger and perform the described step upgrading service condition according to described business critical state information; When described indication information instruction is without the need to upgrading service condition, process the described service request received.
14. 1 kinds of data processing methods, is characterized in that, comprising:
What receive first server transmission returns bag; The described handbag that returns is containing business critical state information and the complete temporal information of described Business Processing;
Preserve the described business critical state information that receives and the complete temporal information of described Business Processing;
Receive the temporal information that the Business Processing of second server transmission is complete;
The complete temporal information of up-to-date Business Processing that comparison is preserved and the complete temporal information of the Business Processing that described second server sends;
When up-to-date Business Processing complete time of preserving is later than the Business Processing that sends from described second server complete time, return the business critical state information of preservation to described second server.
15. methods as claimed in claim 14, is characterized in that, also comprise:
When the time consistency that the Business Processing that up-to-date Business Processing complete time of preserving and described second server send is complete, to described second server transmission indication information, described indication information is used to indicate without the need to upgrading service condition.
16. methods as described in claims 14 or 15, is characterized in that, return in the public header of bag described in described business critical state information and the complete temporal information of described Business Processing are arranged on;
The described business critical state information returning preservation to described second server comprises: return described public header to described second server.
CN201510528093.XA 2015-08-25 2015-08-25 A kind of data processing method, server, client and system Active CN105207809B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510528093.XA CN105207809B (en) 2015-08-25 2015-08-25 A kind of data processing method, server, client and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510528093.XA CN105207809B (en) 2015-08-25 2015-08-25 A kind of data processing method, server, client and system

Publications (2)

Publication Number Publication Date
CN105207809A true CN105207809A (en) 2015-12-30
CN105207809B CN105207809B (en) 2019-01-15

Family

ID=54955262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510528093.XA Active CN105207809B (en) 2015-08-25 2015-08-25 A kind of data processing method, server, client and system

Country Status (1)

Country Link
CN (1) CN105207809B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109308643A (en) * 2017-07-27 2019-02-05 阿里巴巴集团控股有限公司 A kind of bottoming data creation method, data disaster tolerance method and relevant device
CN109600430A (en) * 2018-11-29 2019-04-09 深圳市网心科技有限公司 A kind of data managing method, system and electronic equipment and storage medium
CN110019520A (en) * 2017-11-29 2019-07-16 财付通支付科技有限公司 Business executes method, system and device
CN113452665A (en) * 2020-07-10 2021-09-28 北京新氧科技有限公司 Authority processing method, system and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1533701A1 (en) * 2003-11-24 2005-05-25 TSX Inc. System and method for failover
CN1767520A (en) * 2004-10-26 2006-05-03 华为技术有限公司 Method for obtaining information in communication system
CN101030157A (en) * 2007-04-20 2007-09-05 北京搜狗科技发展有限公司 Method and system for updating user vocabulary synchronouslly
CN102263663A (en) * 2011-08-09 2011-11-30 北京佳讯飞鸿电气股份有限公司 Double-network management server data maintenance method
CN104252500A (en) * 2013-06-29 2014-12-31 北京新媒传信科技有限公司 Method and device for carrying out fault repairing on database management platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1533701A1 (en) * 2003-11-24 2005-05-25 TSX Inc. System and method for failover
CN1767520A (en) * 2004-10-26 2006-05-03 华为技术有限公司 Method for obtaining information in communication system
CN101030157A (en) * 2007-04-20 2007-09-05 北京搜狗科技发展有限公司 Method and system for updating user vocabulary synchronouslly
CN102263663A (en) * 2011-08-09 2011-11-30 北京佳讯飞鸿电气股份有限公司 Double-network management server data maintenance method
CN104252500A (en) * 2013-06-29 2014-12-31 北京新媒传信科技有限公司 Method and device for carrying out fault repairing on database management platform

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109308643A (en) * 2017-07-27 2019-02-05 阿里巴巴集团控股有限公司 A kind of bottoming data creation method, data disaster tolerance method and relevant device
CN109308643B (en) * 2017-07-27 2022-04-08 阿里巴巴集团控股有限公司 Backing data generation method, data disaster tolerance method and related equipment
CN110019520A (en) * 2017-11-29 2019-07-16 财付通支付科技有限公司 Business executes method, system and device
CN110019520B (en) * 2017-11-29 2022-09-23 财付通支付科技有限公司 Service execution method, system and device
CN109600430A (en) * 2018-11-29 2019-04-09 深圳市网心科技有限公司 A kind of data managing method, system and electronic equipment and storage medium
CN113452665A (en) * 2020-07-10 2021-09-28 北京新氧科技有限公司 Authority processing method, system and equipment
CN113452665B (en) * 2020-07-10 2022-09-16 北京新氧科技有限公司 Authority processing method, system and equipment

Also Published As

Publication number Publication date
CN105207809B (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN111090699A (en) Service data synchronization method and device, storage medium and electronic device
CN105207809A (en) Data processing method, server, client side and system
US11917023B2 (en) Fast session restoration for latency sensitive middleboxes
CN109547524B (en) User behavior storage method, device, equipment and storage medium based on Internet of things
CN105407117A (en) Distributed data backup method, device and system
CN108881955A (en) A kind of method and system for realizing the output of distributed node equipment audio video synchronization
CN103384211B (en) Data manipulation method with fault tolerance and distributed type data storage system
CN107770569A (en) Multimedia synchronous broadcast method, apparatus and system
CN106170968A (en) A kind of data compression storage method, device, and distributed file system
CN110391940A (en) Response method, device, system, equipment and the storage medium of address of service
CN111797173A (en) Alliance chain sharing system, method and device, electronic equipment and storage medium
CN110895469A (en) Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium
CN103064761A (en) Data synchronization method, device and system
CN111782473A (en) Distributed log data processing method, device and system
CN112612851A (en) Multi-center data synchronization method and device
CN113347257A (en) Communication method, communication device, server and storage medium
CN114866827B (en) Audio and video synchronization detection method and device, storage medium and electronic equipment
CN114237473A (en) Same-screen interaction method, device and system, storage medium and electronic device
CN103686300B (en) The synchronous method and system of business guide
CN109241128A (en) A kind of expired events automatic trigger method and system
CN109088830B (en) Port state synchronization method and device
CN111522650A (en) Service request processing method and device of distributed system and electronic equipment
CN106658155A (en) Method and device for switching and playing of player
CN112203314A (en) IP core-based method for adapting and testing IQ data of CPRI interface
CN106161431A (en) Call method for building up and system

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20151230

Assignee: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Contract record no.: X2021980000151

Denomination of invention: A data processing method, server, client and system

Granted publication date: 20190115

License type: Common License

Record date: 20210107

EE01 Entry into force of recordation of patent licensing contract