[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105407148A - Network data synchronization method, device and system based on client - Google Patents

Network data synchronization method, device and system based on client Download PDF

Info

Publication number
CN105407148A
CN105407148A CN201510711508.7A CN201510711508A CN105407148A CN 105407148 A CN105407148 A CN 105407148A CN 201510711508 A CN201510711508 A CN 201510711508A CN 105407148 A CN105407148 A CN 105407148A
Authority
CN
China
Prior art keywords
data
client
user operation
operation data
server
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
CN201510711508.7A
Other languages
Chinese (zh)
Other versions
CN105407148B (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 Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shirui Electronics 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 Shirui Electronics Co Ltd filed Critical Guangzhou Shirui Electronics Co Ltd
Priority to CN201510711508.7A priority Critical patent/CN105407148B/en
Publication of CN105407148A publication Critical patent/CN105407148A/en
Priority to PCT/CN2016/093084 priority patent/WO2017071356A1/en
Application granted granted Critical
Publication of CN105407148B publication Critical patent/CN105407148B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

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

Abstract

The embodiment of the invention discloses a network data synchronization method based on a client, which comprises the following steps: the server receives user operation data recorded by the client; when a data synchronization request for synchronizing server data of a client is received, acquiring data to be synchronized from received user operation data recorded by the client according to the priority of the user operation data; and sending the acquired data to be synchronized to the client as synchronous data. The embodiment of the invention also discloses a device and a system for network data synchronization based on the client. By implementing the embodiment of the invention, the data synchronization efficiency can be improved.

Description

A kind of method of client-based network data synchronizing, device and system
Technical field
The present invention relates to Computer Applied Technology field, particularly relate to a kind of method of client-based network data synchronizing, device and system.
Background technology
Along with the development of computer technology and the universal of network application, the requirement of people to the promptness of obtaining information is more and more higher, that is, require more and more higher to network data synchronizing.In prior art, all data record of client are got up by server, when receiving recovery request, asking all data and synchronously reducing.Find in practice, when the data volume of server record is excessive, plays up at Internet Transmission and client the time consuming wait longer, delay data syn-chronization, reduce the real-time that people obtain message.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, a kind of method of client-based network data synchronizing, device and system are provided, data syn-chronization can be carried out rapidly, improve data synchronization efficiency, also improve the real-time that people obtain message simultaneously, improve Consumer's Experience.
Embodiment of the present invention first aspect discloses a kind of method of client-based network data synchronizing, and described method comprises:
Service end receives the user operation data of client records;
When receiving the data synchronization request for synchronization server data of client, the priority according to user operation data obtains data to be synchronized from the user operation data of the described client records received;
The data described to be synchronized got are sent to described client as synchrodata.
Embodiment of the present invention second aspect discloses a kind of method of client-based network data synchronizing, and described method comprises:
The user operation data of client records user, and described user operation data are sent to service end;
Generate and send the data synchronization request being used for synchronous service end data to described server;
Receive the synchrodata that described server sends, and process the described synchrodata received.
The embodiment of the present invention third aspect discloses a kind of device of client-based network data synchronizing, and described device comprises:
Receiver module, for receiving the user operation data of client records;
Acquisition module, for when receiving the data synchronization request for synchronization server data of client, the priority according to user operation data obtains data to be synchronized from the user operation data of the described client records received;
Sending module, for sending to described client using the data to be synchronized got in described acquisition module as synchrodata.
Embodiment of the present invention fourth aspect discloses a kind of device of client-based network data synchronizing, and described device comprises:
Logging modle, for the user operation data of recording user;
Sending module, for generating and sending the data synchronization request for synchronous service end data to described service end;
Receiving processing module, for receiving the synchrodata that described service end sends, processes the described synchrodata received.
The embodiment of the present invention the 5th aspect discloses a kind of system of client-based network data synchronizing, and described system comprises: server and client side, wherein:
Described server, for receiving the user operation data of client records; When receiving the data synchronization request for synchronization server data of client, the priority according to user operation data obtains data to be synchronized from the user operation data of the described client records received; The data described to be synchronized got are sent to described client as synchrodata;
Described user operation data for the user operation data of recording user, and are sent to service end by described client; Generate and send the data synchronization request being used for synchronous service end data to described service end; Receive the synchrodata that described server sends, and process the described synchrodata received.
In the embodiment of the present invention, data syn-chronization operation can be carried out selectively fast according to the priority of user operation data, improve data synchronization efficiency, also improve the real-time that people obtain message simultaneously, improve Consumer's Experience.
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 flow sheet of a kind of client-based network data synchronizing method in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of a kind of client-based network data synchronizing method in another embodiment of the present invention;
Fig. 3 is the schematic flow sheet of a kind of client-based network data synchronizing method in another embodiment of the present invention;
Fig. 4 is the schematic flow sheet of a kind of client-based network data synchronizing method in another embodiment of the present invention;
Fig. 5 is the structural representation of a kind of client-based network data synchronizing device in the embodiment of the present invention;
Fig. 6 is the structural representation of a kind of client-based network data synchronizing device in another embodiment of the present invention;
Fig. 7 is the structural representation of a kind of client-based network data synchronizing system in another embodiment of the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, 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.
Term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing different object, instead of for describing particular order.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.Such as contain the process of series of steps or unit, method, system, product or equipment and be not defined in the step or unit listed, but also comprise the step or unit do not listed alternatively, or also comprise alternatively for other intrinsic steps of these processes, method, product or equipment or unit.
Mention that " embodiment " means in this article, the special characteristic in conjunction with the embodiments described, structure or characteristic can comprise at least one embodiment of the present invention.Each position in the description occurs that this phrase might not all refer to identical embodiment, neither with other embodiment mutual exclusion independently or alternative embodiment.Those skilled in the art's explicitly and implicitly understanding, embodiment described herein can combine with other embodiment.
The system of the terminal described in the embodiment of the present invention refers to the operating system of equipment, can include but not limited to: android system, Windows system, IOS (Mobile operating system of Apple's exploitation) etc., the embodiment of the present invention does not specifically limit.
Above-mentioned terminal can be any equipment possessing communication and memory function, such as: panel computer, mobile phone, electronic reader, remote controller, personal computer (PersonalComputer, PC), notebook computer, mobile unit, Web TV, wearable device etc. have the equipment of volume key.
Fig. 1 is the schematic flow sheet of a kind of client-based network data synchronizing method in the embodiment of the present invention, and the client-based network data synchronizing method as shown in the figure in the present embodiment can comprise:
S101, service end receives the user operation data of client records.
In the embodiment of the present invention, service end receives the user operation data of multiple client records user operation process and user operation result, user operation process can comprise: the operations such as the selection of object, the movement of object, the convergent-divergent of object, the switching of object, the embodiment of the present invention is not construed as limiting.
User operation result can comprise: the positional information etc. at the increase of object, the deletion of object, attribute modification, object place, the embodiment of the present invention is not construed as limiting.
The quantity of described client can be one or more, and especially, when the quantity of client is more than one, the type of all clients can be identical, also can not be identical, and the embodiment of the present invention is not construed as limiting.
For example, user A just draws a horizontal line in customer end A, user B just draws a vertical line in customer end B.In whole operating process, customer end A recording user A draws the whole operating process of horizontal line and the user operation data of operating result, and customer end B recording user B draws the whole operating process of vertical line and the user operation data of operating result.Each self-recording described user operation data are all sent to server by customer end A and customer end B, carry and show that it is the mark of client identity while transmission user operation data.Server receives client A recording user A draws the user operation data of horizontal line and the user operation data of customer end B recording user B picture vertical line.
S102, when receiving the data synchronization request for synchronization server data of client, the priority according to user operation data obtains data to be synchronized from the user operation data of the described client records received.
In the embodiment of the present invention, server is when receiving the data synchronization request for synchronization server data of client, can according to the priority of user operation data, the data of current operation position are obtained, using the data of current operation position that obtain as data to be synchronized the user operation data of the client records received from S101.
In specific implementation, the data priority due to diverse location is different.Suppose that the priority level initializing of the data of current operation position is for highest, for highest, the priority of the data of other operating positions is lower.When server receives the data synchronization request for synchronization server data of client, server can according to the priority of user operation data, obtains the data of the highest current operation position of priority as data to be synchronized the user operation data of the multiple client records received from S101.
According to the example of S101, in same data syn-chronization scene, existing customer holds C to send the data synchronization request for synchronous service end data to server, described server is when receiving the data synchronization request for synchronization server data of client C, according to the priority of user operation data, draw the user operation data of horizontal line and the user operation data of customer end B recording user B picture vertical line from S101 server receives client A recording user A, obtain client current just in the data of operating position, using the data of the current operation position of acquisition as data to be synchronized.Suppose that server more first receives the user operation data that customer end A recording user A draws horizontal line, now server is drawn the user operation data of horizontal line from receiving customer end A recording user A, obtain customer end A current user operation data of drawing horizontal line position, and the current user operation data of drawing horizontal line position of the customer end A this got are as data to be synchronized.
The data described to be synchronized got are sent to described client as synchrodata by S103.
In the embodiment of the present invention, the data to be synchronized got in S102 are sent to described client as synchrodata by server.In specific implementation, server is drawn in S102 the user operation data of horizontal line and the user operation data of customer end B recording user B picture vertical line from customer end A recording user A, and the data to be synchronized got send to client C as synchrodata.Suppose that server more first receives the user operation data that customer end A recording user A draws horizontal line, the current data to be synchronized of drawing the user operation data of horizontal line position of customer end A that so S102 just gets by server send to described client C as synchrodata.
In the embodiment of the present invention, data syn-chronization operation can be carried out selectively fast according to the priority of user operation data, improve data synchronization efficiency, also improve the real-time that people obtain message simultaneously, improve Consumer's Experience.
Fig. 2 is the schematic flow sheet of a kind of client-based network data synchronizing method in another embodiment of the present invention, and the client-based network data synchronizing method as shown in the figure in the present embodiment can comprise:
S201, service end receives the user operation data of client records.
In the embodiment of the present invention, service end receives the user operation data of multiple client records user operation process and user operation result, user operation process can comprise: the operations such as the selection of object, the movement of object, the convergent-divergent of object, the switching of object, the embodiment of the present invention is not construed as limiting.
User operation result can comprise: the positional information etc. at the increase of object, the deletion of object, attribute modification, object place, the embodiment of the present invention is not construed as limiting.
The quantity of described client can be one or more, and especially, when the quantity of client is more than one, the type of all clients can be identical, also can not be identical, and the embodiment of the present invention is not construed as limiting.
For example, user A just draws a horizontal line in customer end A, user B just draws a vertical line in customer end B.In whole operating process, customer end A recording user A draws the whole operating process of horizontal line and the user operation data of operating result, and customer end B recording user B draws the whole operating process of vertical line and the user operation data of operating result.Each self-recording described user operation data are all sent to server by customer end A and customer end B, carry and show that it is the mark of client identity while transmission user operation data.Server receives client A recording user A draws the user operation data of horizontal line and the user operation data of customer end B recording user B picture vertical line.
S202, when receiving the data synchronization request for synchronization server data of client, the priority according to user operation data obtains data to be synchronized from the user operation data of the described client records received.
In the embodiment of the present invention, server is when receiving the data synchronization request for synchronization server data of client, can according to the priority of user operation data, the data of current operation position are obtained, using the data of current operation position that obtain as data to be synchronized the user operation data of the multiple client records received from S201.
In specific implementation, the data priority due to diverse location is different.Suppose that the priority level initializing of the data of current operation position is for highest, for highest, the priority of the data of other operating positions is lower.When server receives the data synchronization request for synchronization server data of client, server can according to the priority of user operation data, obtains the data of the highest current operation position of priority as data to be synchronized the user operation data of the multiple client records received from S201.
According to the example of S201, in same data syn-chronization scene, existing customer holds C to send the data synchronization request for synchronous service end data to server, described server is when receiving the data synchronization request for synchronization server data of client C, according to the priority of user operation data, draw the user operation data of horizontal line and the user operation data of customer end B recording user B picture vertical line from S201 server receives client A recording user A, obtain client current just in the data of operating position, using the data of the current operation position of acquisition as data to be synchronized.Suppose that server more first receives the user operation data that customer end A recording user A draws horizontal line, now server is drawn the user operation data of horizontal line from receiving customer end A recording user A, obtain customer end A current user operation data of drawing horizontal line position, and the current user operation data of drawing horizontal line position of the customer end A this got are as data to be synchronized.
The data described to be synchronized got are sent to described client as synchrodata by S203.
In the embodiment of the present invention, the data to be synchronized got in S202 are sent to described client as synchrodata by server.In specific implementation, server is drawn in S202 the user operation data of horizontal line and the user operation data of customer end B recording user B picture vertical line from customer end A recording user A, and the data to be synchronized got send to client C as synchrodata.Suppose that server more first receives the user operation data that customer end A recording user A draws horizontal line, the current user operation data of drawing horizontal line position of customer end A that so S202 just gets by server send to described client C as synchrodata.
The data of other operating positions are sent to described client by S204.
In the embodiment of the present invention, the data getting current operation position from S202 are sent to described client as data to be synchronized by S203, do not send the data of other operating positions to described client, the data of other operating positions are sent to described client by S204 server.According to the example of S201, after S203 sends by S204, remaining user operation data send to described client C.In specific implementation, the user operation data of other operating positions of customer end A and the user operation data of customer end B are first sent to described client C by server.
S205, is sending to client in the process of synchrodata, is continuing to receive and the user operation data of other clients of buffer memory.
In the embodiment of the present invention, send in the process of synchrodata to client at S203, other clients may send user operation data to server, and in order to ensure the integrality of data, server continues to receive and the user operation data of other clients of buffer memory.According to the example of S201, at server just in the user operation data of sync client A and customer end B in the process of client C, existing customer holds D and client E to send client D recording user D to server and inputs the user operation data that the user operation data of passage and client E recording user E drawing, and has carried and show that it is the mark of client identity while transmission user operation data.Now, server still continues to receive and cache client D recording user D inputs the user operation data that the user operation data of passage and client E recording user E are drawing.
It should be noted that, at server just in the user operation data of sync client A and customer end B in the process of client C, client D and client E increase enters in the scene of synchrodata, the client D newly added and client E also can send the data synchronization request for synchronization server data, accelerates to enter in the scene of synchrodata.
At server just in the user operation data of sync client A and customer end B in the process of client C, customer end B is because data manipulation amount is excessive or other reasons surprisingly exits in the scene of synchrodata, it is so unexpected that the customer end B exiting the scene of synchrodata can send data synchronization request for synchronization server data, to get back to fast in the scene of synchrodata to server.
In the embodiment of the present invention, data syn-chronization operation can be carried out selectively fast according to the priority of user operation data, improve data synchronization efficiency, also improve the real-time that people obtain message simultaneously, improve Consumer's Experience.
Fig. 3 is the schematic flow sheet of a kind of client-based network data synchronizing method in the embodiment of the present invention, and the client-based network data synchronizing method as shown in the figure in the present embodiment can comprise:
The user operation data of S301, client records user, and described user operation data are sent to service end.
In the embodiment of the present invention, the user operation data of client records user operation process and user operation result, and described user operation data are sent to server.
Wherein, user operation process can comprise: the operations such as the selection of object, the movement of object, the convergent-divergent of object, the switching of object, the embodiment of the present invention is not construed as limiting.
User operation result can comprise: the positional information etc. at the increase of object, the deletion of object, attribute modification, object place, the embodiment of the present invention is not construed as limiting.
For example, user A just draws a horizontal line in customer end A, user B just draws a vertical line in customer end B.In whole operating process, customer end A recording user A draws the whole operating process of horizontal line and the user operation data of operating result, and customer end B recording user B draws the whole operating process of vertical line and the user operation data of operating result.Each self-recording described user operation data are all sent to server by customer end A and customer end B, carry and show that it is the mark of client identity while transmission user operation data.
S302, generation send the data synchronization request being used for synchronous service end data to described server.
In the embodiment of the present invention, client generates and sends the data synchronization request being used for synchronous service end data to described server.In specific implementation, realizing in network data synchronizing, client needs to send one or more data synchronization request for synchronous service end data to service end.For example, in same data syn-chronization scene, the data that existing customer holds C to want in synchronization server, so client C needs first to generate one or more data synchronization request for synchronous service end data, and the above-mentioned data synchronization request for synchronous service end data is sent to service end, request synchronous service end data.
S303, receive the synchrodata that described server sends, and process the described synchrodata that receives.
In the embodiment of the present invention, at S302 to after described server sends the data synchronization request being used for synchronous service end data, service end sends service end data to described client, that is to say synchrodata, described client receives the synchrodata that described server sends, and processes the synchrodata received.
In specific implementation, the data priority due to diverse location is different.Suppose that the priority level initializing of the data of current operation position is for highest, for highest, the priority of the data of other operating positions is lower.According to the example of S301, when client is to after described server sends the data synchronization request being used for synchronous service end data, if when server receives the data synchronization request for synchronization server data of client C, server is according to the priority of user operation data, the customer end A recording user A received from 301 servers draws the user operation data of horizontal line and customer end B recording user B and draws that to obtain client the user operation data of vertical line current just in the data of operating position, the data of the current operation position of acquisition are sent to client C as synchrodata.Suppose that client C more first receives the user operation data of the customer end A recording user A picture horizontal line that described server sends, namely be that to draw the user operation data of horizontal line be synchrodata to customer end A recording user A, and client C needs to process the synchrodata received, that is to say and need to process the user operation data that the customer end A recording user A received draws horizontal line.
It should be noted that, at server just in the user operation data of sync client A and customer end B in the process of client C, client D and client E increase enters in the scene of synchrodata, the client D newly added and client E also can send the data synchronization request for synchronization server data, accelerates to enter in the scene of synchrodata.
At server just in the user operation data of sync client A and customer end B in the process of client C, customer end B is because data manipulation amount is excessive or other reasons surprisingly exits in the scene of synchrodata, it is so unexpected that the customer end B exiting the scene of synchrodata can send data synchronization request for synchronization server data, to get back to fast in the scene of synchrodata to server.
In the embodiment of the present invention, data syn-chronization operation can be carried out selectively fast according to the priority of user operation data, improve data synchronization efficiency, also improve the real-time that people obtain message simultaneously, improve Consumer's Experience.
Fig. 4 is the schematic flow sheet of a kind of client-based network data synchronizing method in the embodiment of the present invention, and the client-based network data synchronizing method as shown in the figure in the present embodiment can comprise:
The user operation data of S401, client records user, and described user operation data are sent to service end.
In the embodiment of the present invention, the user operation data of client records user operation process and user operation result, and described user operation data are sent to server.
Wherein, user operation process can comprise: the operations such as the selection of object, the movement of object, the convergent-divergent of object, the switching of object, the embodiment of the present invention is not construed as limiting.
User operation result can comprise: the positional information etc. at the increase of object, the deletion of object, attribute modification, object place, the embodiment of the present invention is not construed as limiting.
For example, user A just draws a horizontal line in customer end A, user B just draws a vertical line in customer end B.In whole operating process, customer end A recording user A draws the whole operating process of horizontal line and the user operation data of operating result, and customer end B recording user B draws the whole operating process of vertical line and the user operation data of operating result.Each self-recording described user operation data are all sent to server by customer end A and customer end B, carry and show that it is the mark of client identity while transmission user operation data.
S402, generation send the data synchronization request being used for synchronous service end data to described server.
In the embodiment of the present invention, client generates and sends the data synchronization request being used for synchronous service end data to described server.In specific implementation, realizing in network data synchronizing, client needs to send one or more data synchronization request for synchronous service end data to service end.For example, in same data syn-chronization scene, the data that existing customer holds C to want in synchronization server, so client C needs first to generate one or more data synchronization request for synchronous service end data, and the above-mentioned data synchronization request for synchronous service end data is sent to service end, request synchronous service end data.
S403, receive the synchrodata that described server sends, and process the described synchrodata that receives.
In the embodiment of the present invention, at S402 to after described server sends the data synchronization request being used for synchronous service end data, service end sends service end data to described client, that is to say synchrodata, described client receives the synchrodata that described server sends, and processes the synchrodata received.
In specific implementation, the data priority due to diverse location is different.Suppose that the priority level initializing of the data of current operation position is for highest, for highest, the priority of the data of other operating positions is lower.According to the example of S401, when client is to after described server sends the data synchronization request being used for synchronous service end data, if when server receives the data synchronization request for synchronization server data of client C, server is according to the priority of user operation data, the customer end A recording user A received from 401 servers draws the user operation data of horizontal line and customer end B recording user B and draws that to obtain client the user operation data of vertical line current just in the data of operating position, the data of the current operation position of acquisition are sent to client C as synchrodata.Suppose that client C more first receives the user operation data of the customer end A recording user A picture horizontal line that described server sends, namely be that to draw the user operation data of horizontal line be synchrodata to customer end A recording user A, and client C needs to process the synchrodata received, that is to say and need to process the user operation data that the customer end A recording user A received draws horizontal line.
S404, receive the data of other operating positions that described server sends, and process the data of other operating positions described received.
In the embodiment of the present invention, S403, receiving the user operation data of the current operation position that described server sends, that is to say synchrodata, and after processing the synchrodata received; The user operation data of other operating positions that described server sends can also be received, and process the data of other operating positions described received.According to the example of S401, at S402 to after described server sends the data synchronization request being used for synchronous service end data, S404 receives the data of other operating positions, and the data of other operating positions received described in process.In specific implementation, S404 receives the user operation data of other operating positions of customer end A and the user operation data of customer end B of the transmission of described server, and the user operation data of other operating positions of customer end A needing process to receive and the user operation data of customer end B.
S405, receive the user operation data of other clients of described server buffer, and process the user operation data of other clients described received.
In the embodiment of the present invention, receive described server at S403 and S404 and send the data of current operation position and the data of other operating positions, and process outside the data of current operation position that receive and the data of other operating positions, in the process of synchrodata, other clients may send user operation data to described server, in order to ensure the integrality of data, the user operation data of other clients of described server buffer can also be received, and process the user operation data of other clients described received.According to the example of S401, at server just in the user operation data of sync client A and customer end B in the process of client C, existing customer holds D and client E to send client D recording user D to server and inputs the user operation data that the user operation data of passage and client E recording user E drawing, and has carried and show that it is the mark of client identity while transmission user operation data.Described server also needs to continue to receive and cache client D recording user D inputs the user operation data that the user operation data of passage and client E recording user E are drawing.Client C is to after described server sends the data synchronization request being used for synchronous service end data, still the user operation data needing the client D recording user D receiving described server buffer inputting the user operation data of passage and client E recording user E to draw, and process the client D recording user D received and input the user operation data that the user operation data of passage and client E recording user E drawing.
It should be noted that, at server just in the user operation data of sync client A and customer end B in the process of client C, client D and client E increase enters in the scene of synchrodata, the client D newly added and client E also can send the data synchronization request for synchronization server data, accelerates to enter in the scene of synchrodata.
At server just in the user operation data of sync client A and customer end B in the process of client C, customer end B is because data manipulation amount is excessive or other reasons surprisingly exits in the scene of synchrodata, it is so unexpected that the customer end B exiting the scene of synchrodata can send data synchronization request for synchronization server data, to get back to fast in the scene of synchrodata to server.
In the embodiment of the present invention, data syn-chronization operation can be carried out selectively fast according to the priority of user operation data, improve data synchronization efficiency, also improve the real-time that people obtain message simultaneously, improve Consumer's Experience.
Fig. 5 is the structural representation of a kind of client-based network data synchronizing device in the embodiment of the present invention, and the client-based network data synchronizing device 50 as shown in the figure in the present embodiment can comprise:
Receiver module 501, for receiving the user operation data of client records;
Acquisition module 502, for when receiving the data synchronization request for synchronization server data of client, the priority according to user operation data obtains data to be synchronized from the user operation data of the described client records received;
Sending module 503, for sending to described client using the data to be synchronized got in described acquisition module 502 as synchrodata.
In the embodiment of the present invention, server is when receiving the data synchronization request for synchronization server data of client, the data of current operation position are obtained, using the data of the current operation position of acquisition as data to be synchronized the user operation data of multiple client records that can receive from receiver module 501 according to the priority of user operation data.The data to be synchronized got in described acquisition module 502 are sent to described client as synchrodata by sending module 503.
In specific implementation, the data priority due to diverse location is different.Suppose that the priority level initializing of the data of current operation position is for highest, for highest, the priority of the data of other operating positions is lower.When server receives the data synchronization request for synchronization server data of client, server can according to the priority of user operation data, obtains the data of the highest current operation position of priority as data to be synchronized the user operation data of the multiple client records received from receiver module 501.
For example, user A just draws a horizontal line in customer end A, user B just draws a vertical line in customer end B.In whole operating process, customer end A recording user A draws the whole operating process of horizontal line and the user operation data of operating result, and customer end B recording user B draws the whole operating process of vertical line and the user operation data of operating result.
Receiver module 501 receives customer end A and customer end B all by each self-recording described user operation data, and the user operation data received carry and show that it is the mark of client identity.In same data syn-chronization scene, existing customer holds C to send the data synchronization request for synchronous service end data to server, acquisition module 50 is when receiving the data synchronization request for synchronization server data of client C, according to the priority of user operation data, receiving customer end A recording user A from receiver module 501 draws the user operation data of horizontal line and the user operation data of customer end B recording user B picture vertical line, obtain client current just in the data of operating position, using the data of the current operation position of acquisition as data to be synchronized.The data to be synchronized got in described acquisition module 502 are sent to described client C as synchrodata by sending module 503.
Suppose that server more first receives the user operation data that customer end A recording user A draws horizontal line, now server receives the user operation data of customer end A recording user A picture horizontal line from receiver module 501, obtain customer end A current user operation data of drawing horizontal line position, and the current user operation data of drawing horizontal line position of the customer end A this got are as data to be synchronized.Current for the customer end A got in described acquisition module 502 user operation data of drawing horizontal line position are sent to described client C as synchrodata by sending module 503.
Alternatively,
Sending module 503, also for the data of other operating positions are sent to described client.
In specific implementation, the user operation data of other operating positions of customer end A and the user operation data of customer end B are first sent to described client C by server.
Alternatively,
Sending module 503, also for sending in the process of synchrodata to client, continues to receive and the user operation data of other clients of buffer memory.
In the embodiment of the present invention, in the process of synchrodata, other clients may send user operation data to described server, and in order to ensure the integrality of data, sending module 503 can also receive the user operation data of other clients of described server buffer.For example, at server just in the user operation data of sync client A and customer end B in the process of client C, existing customer holds D and client E to send client D recording user D to server and inputs the user operation data that the user operation data of passage and client E recording user E drawing, and has carried and show that it is the mark of client identity while transmission user operation data.Now, server still continues to receive and cache client D recording user D inputs the user operation data that the user operation data of passage and client E recording user E are drawing.
It should be noted that, at server just in the user operation data of sync client A and customer end B in the process of client C, client D and client E increase enters in the scene of synchrodata, the client D newly added and client E also can send the data synchronization request for synchronization server data, accelerates to enter in the scene of synchrodata.
At server just in the user operation data of sync client A and customer end B in the process of client C, customer end B is because data manipulation amount is excessive or other reasons surprisingly exits in the scene of synchrodata, it is so unexpected that the customer end B exiting the scene of synchrodata can send data synchronization request for synchronization server data, to get back to fast in the scene of synchrodata to server.
In the embodiment of the present invention, data syn-chronization operation can be carried out selectively fast according to the priority of user operation data, improve data synchronization efficiency, also improve the real-time that people obtain message simultaneously, improve Consumer's Experience.
Fig. 6 is the structural representation of a kind of client-based network data synchronizing device in another embodiment of the present invention, and the client-based network data synchronizing device 60 as shown in the figure in the present embodiment can comprise:
Logging modle 601, for the user operation data of recording user;
Sending module 602, for generating and sending the data synchronization request for synchronous service end data to described service end;
Receiving processing module 603, for receiving the synchrodata that described service end sends, processes the described synchrodata that described receiver module receives.
In the embodiment of the present invention, the data priority due to diverse location is different.Suppose that the priority level initializing of the data of current operation position is for highest, for highest, the priority of the data of other operating positions is lower.At sending module 602 to after described service end sends the data synchronization request being used for synchronous service end data, if when described server receives the data synchronization request for synchronous service end data, described server obtains synchrodata according to the priority of user operation data and sends to described client, receiving processing module 603 receives the synchrodata that described service end sends, and processes the synchrodata that described receiver module receives.
For example, user A just draws a horizontal line in customer end A, user B just draws a vertical line in customer end B.In whole operating process, customer end A recording user A draws the whole operating process of horizontal line and the user operation data of operating result, and customer end B recording user B draws the whole operating process of vertical line and the user operation data of operating result.Each self-recording described user operation data are all sent to server by customer end A and customer end B, carry and show that it is the mark of client identity while transmission user operation data.In same data syn-chronization scene, the data that existing customer holds C to want in synchronization server, so the sending module 602 of client C needs to generate one or more data synchronization request for synchronous service end data, the above-mentioned data synchronization request for synchronous service end data is also sent to service end by sending module 602, request synchronous service end data.
When the sending module 602 of client C is to after described server sends the data synchronization request being used for synchronous service end data, if when server receives the data synchronization request for synchronization server data of client C, server is according to the priority of user operation data, the customer end A recording user A received from 301 servers draws the user operation data of horizontal line and customer end B recording user B and draws that to obtain client the user operation data of vertical line current just in the data of operating position, the data of the current operation position of acquisition are sent to client C as synchrodata by sending module 602.Suppose that the receiving processing module 603 of client C more first receives the user operation data of the customer end A recording user A picture horizontal line that described server sends, namely be that to draw the user operation data of horizontal line be synchrodata to customer end A recording user A, so the receiving processing module 603 of client C needs to process the synchrodata received, and that is to say and needs to process the user operation data that the customer end A recording user A received draws horizontal line.
Alternatively,
Sending module 602, the user operation data also for described logging modle 601 being recorded send to service end.
In specific implementation, each self-recording described user operation data are all sent to server by customer end A and customer end B, carry and show that it is the mark of client identity while transmission user operation data.
Alternatively,
Receiving processing module 603, also for receiving the data of other operating positions that described server sends, and processes the data of other operating positions described received.
In the embodiment of the present invention, receiving processing module 603, receiving the user operation data of the current operation position that described server sends, that is to say synchrodata, and after processing the synchrodata received; The user operation data of other operating positions that described server sends can also be received, and process the data of other operating positions described received.According to the example of Fig. 6, at sending module 602 to after described server sends the data synchronization request being used for synchronous service end data, receiving processing module 603 receives the data of other operating positions, and the data of other operating positions received described in process.In specific implementation, receiving processing module 603 receives the user operation data of other operating positions of customer end A and the user operation data of customer end B of the transmission of described server, and the user operation data of other operating positions of customer end A needing process to receive and the user operation data of customer end B.
Alternatively,
Receiving processing module 603, also for receiving the user operation data of other clients of described server buffer, and processes the user operation data of other clients described received.
In the embodiment of the present invention, in order to ensure the integrality of data, receiving processing module 603 finally can also receive the user operation data of other clients of described server buffer, and processes the user operation data of other clients described received.According to the example of Fig. 6, at server just in the user operation data of sync client A and customer end B in the process of client C, existing customer holds D and client E to send client D recording user D to server and inputs the user operation data that the user operation data of passage and client E recording user E drawing, and has carried and show that it is the mark of client identity while transmission user operation data.Described server also needs to continue to receive and cache client D recording user D inputs the user operation data that the user operation data of passage and client E recording user E are drawing.The sending module 602 of client C is to after described server sends the data synchronization request being used for synchronous service end data, the user operation data that receiving processing module 603 still needs the client D recording user D receiving described server buffer inputting the user operation data of passage and client E recording user E to draw, and process the client D recording user D received and input the user operation data that the user operation data of passage and client E recording user E drawing.
It should be noted that, at server just in the user operation data of sync client A and customer end B in the process of client C, client D and client E increase enters in the scene of synchrodata, the client D newly added and client E also can send the data synchronization request for synchronization server data, accelerates to enter in the scene of synchrodata.
At server just in the user operation data of sync client A and customer end B in the process of client C, customer end B is because data manipulation amount is excessive or other reasons surprisingly exits in the scene of synchrodata, it is so unexpected that the customer end B exiting the scene of synchrodata can send data synchronization request for synchronization server data, to get back to fast in the scene of synchrodata to server.
In the embodiment of the present invention, data syn-chronization operation can be carried out selectively fast according to the priority of user operation data, improve data synchronization efficiency, also improve the real-time that people obtain message simultaneously, improve Consumer's Experience.
Fig. 7 is the structural representation of a kind of client-based network data synchronizing system in another embodiment of the present invention, and the client-based network data synchronizing system 70 as shown in the figure in the present embodiment can comprise: server 701 and client 702, wherein:
Described server 701, for receiving the user operation data of client records; When receiving the data synchronization request for synchronization server data of client, the priority according to user operation data obtains data to be synchronized from the user operation data of the described client records received; The data described to be synchronized got are sent to described client as synchrodata.
In the embodiment of the present invention, server 701 is when receiving the data synchronization request for synchronization server data of client 702, described server 701 can obtain the data of current operation position from the user operation data of the multiple client records received according to the priority of user operation data, described server 701 using the data of current operation position that obtain as data to be synchronized.The data to be synchronized got are sent to described client 702 as synchrodata by described server 701.
In specific implementation, the data priority due to diverse location is different.Suppose that the priority level initializing of the data of current operation position is for highest, for highest, the priority of the data of other operating positions is lower.When server 701 receives the data synchronization request for synchronization server data of client 702, server 701 according to the priority of user operation data, can obtain the data of the highest current operation position of priority as data to be synchronized from the user operation data of the multiple client records received.
Alternatively,
Described server 701, also for the data of other operating positions are sent to described client.
In the embodiment of the present invention, the data of other operating positions can also be sent to described client by described server 701.
Alternatively,
Described server 701, also for sending in the process of synchrodata to client, continues to receive and the user operation data of other clients of buffer memory.
In the embodiment of the present invention, sending in the process of synchrodata to client, other clients may send user operation data to described server 701, and in order to ensure the integrality of data, described server 701 continues to receive and the user operation data of other clients of buffer memory.
Described user operation data for the user operation data of recording user, and are sent to service end by described client 702; Generate and send the data synchronization request being used for synchronous service end data to described service end; Receive the synchrodata that described server sends, and process the described synchrodata received.
In the embodiment of the present invention, client 702 is after sending to described service end 701 data synchronization request being used for synchronous service end data, if when described server 701 receives the data synchronization request for synchronous service end data, described server obtains synchrodata according to the priority of user operation data and sends to described client, client 702 receives the synchrodata that described service end sends, and processes the synchrodata that described receiver module receives.
Alternatively,
Described client 702, also for receiving the data of other operating positions that described server sends, and processes the data of other operating positions described received.
In the embodiment of the present invention, described client 702, receiving the user operation data of the current operation position that described server sends, that is to say synchrodata, and after processing the synchrodata received; The user operation data of other operating positions that described server sends can also be received, and process the data of other operating positions described received.
Alternatively,
Described client 702, also for receiving the user operation data of other clients of described server buffer, and processes the user operation data of other clients described received.
In the embodiment of the present invention, in order to ensure the integrality of data, described client 702 finally can also receive the user operation data of other clients of described server buffer, and processes the user operation data of other clients described received.
In the embodiment of the present invention, data syn-chronization operation can be carried out selectively fast according to the priority of user operation data, improve data synchronization efficiency, also improve the real-time that people obtain message simultaneously, improve Consumer's Experience.
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 (10)

1. a method for client-based network data synchronizing, is characterized in that, described method comprises:
Service end receives the user operation data of client records;
When receiving the data synchronization request for synchronization server data of client, the priority according to user operation data obtains data to be synchronized from the user operation data of the described client records received;
The data described to be synchronized got are sent to described client as synchrodata.
2. the method for claim 1, is characterized in that, the described priority according to user operation data obtains data to be synchronized from the user operation data of the described client records received, and comprising:
According to the priority of user operation data, from the user operation data of the described client records received, obtain the data of current operation position;
Using the data of the described current operation position of acquisition as data to be synchronized.
3. the method for claim 1, is characterized in that, described method also comprises:
The data of other operating positions are sent to described client.
4. method as claimed in claim 3, it is characterized in that, described method also comprises:
Sending to client in the process of synchrodata, continuing to receive and the user operation data of other clients of buffer memory.
5. a method for client-based network data synchronizing, is characterized in that, described method comprises:
The user operation data of client records user, and described user operation data are sent to service end;
Generate and send the data synchronization request being used for synchronous service end data to described server;
Receive the synchrodata that described server sends, and process the described synchrodata received.
6. method as claimed in claim 5, it is characterized in that, described method also comprises:
Receive the data of other operating positions that described server sends, and process the data of other operating positions described received.
7. method as claimed in claim 6, it is characterized in that, described method also comprises:
Receive the user operation data of other clients of described server buffer, and process the user operation data of other clients described received.
8. a device for client-based network data synchronizing, is characterized in that, described device comprises:
Receiver module, for receiving the user operation data of client records;
Acquisition module, for when receiving the data synchronization request for synchronization server data of client, the priority according to user operation data obtains data to be synchronized from the user operation data of the described client records received;
Sending module, for sending to described client using the data to be synchronized got in described acquisition module as synchrodata.
9. a device for client-based network data synchronizing, is characterized in that, described device comprises:
Logging modle, for the user operation data of recording user;
Sending module, for generating and sending the data synchronization request for synchronous service end data to described service end;
Receiving processing module, for receiving the synchrodata that described service end sends, processes the described synchrodata received.
10. a system for client-based network data synchronizing, is characterized in that, described system comprises: server and client side, wherein:
Described server, for receiving the user operation data of multiple client records; When receiving the data synchronization request for synchronization server data of client, the priority according to user operation data obtains data to be synchronized from the user operation data of the described client records received; The data described to be synchronized got are sent to described client as synchrodata;
Described user operation data for the user operation data of recording user, and are sent to service end by described client; Generate and send the data synchronization request being used for synchronous service end data to described service end; Receive the synchrodata that described server sends, and process the described synchrodata received.
CN201510711508.7A 2015-10-26 2015-10-26 Network data synchronization method, device and system based on client Active CN105407148B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510711508.7A CN105407148B (en) 2015-10-26 2015-10-26 Network data synchronization method, device and system based on client
PCT/CN2016/093084 WO2017071356A1 (en) 2015-10-26 2016-08-03 Client-based network data synchronization method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510711508.7A CN105407148B (en) 2015-10-26 2015-10-26 Network data synchronization method, device and system based on client

Publications (2)

Publication Number Publication Date
CN105407148A true CN105407148A (en) 2016-03-16
CN105407148B CN105407148B (en) 2019-06-14

Family

ID=55472394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510711508.7A Active CN105407148B (en) 2015-10-26 2015-10-26 Network data synchronization method, device and system based on client

Country Status (2)

Country Link
CN (1) CN105407148B (en)
WO (1) WO2017071356A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071356A1 (en) * 2015-10-26 2017-05-04 广州视睿电子科技有限公司 Client-based network data synchronization method, apparatus and system
WO2019148981A1 (en) * 2018-01-30 2019-08-08 深圳阿凡达智控有限公司 Data synchronization method and apparatus, and electronic cigarette
CN112839067A (en) * 2019-11-22 2021-05-25 腾讯科技(深圳)有限公司 Data synchronization method and device
CN116016491A (en) * 2022-12-26 2023-04-25 山东华方智联科技股份有限公司 Intelligent building design system and design method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039971B (en) * 2020-08-26 2023-11-24 蚂蚁胜信(上海)信息技术有限公司 Data recording method and device, and data storage method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976275A (en) * 2006-12-15 2007-06-06 深圳市戴文科技有限公司 Data synchronizing system and method
CN103873567A (en) * 2014-03-03 2014-06-18 北京智谷睿拓技术服务有限公司 Task-based data transmission method and device
US20140278716A1 (en) * 2013-03-15 2014-09-18 Mark William NIX Management and sharing of segments from workflows and business processes
CN104580454A (en) * 2014-12-31 2015-04-29 乐视网信息技术(北京)股份有限公司 Data synchronizing method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916423A (en) * 2012-12-31 2014-07-09 华为技术有限公司 Data synchronization method and device
CN103237074A (en) * 2013-04-24 2013-08-07 东莞宇龙通信科技有限公司 Data interactive method and data interactive system between intelligent terminals
CN105407148B (en) * 2015-10-26 2019-06-14 广州视睿电子科技有限公司 Network data synchronization method, device and system based on client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976275A (en) * 2006-12-15 2007-06-06 深圳市戴文科技有限公司 Data synchronizing system and method
US20140278716A1 (en) * 2013-03-15 2014-09-18 Mark William NIX Management and sharing of segments from workflows and business processes
CN103873567A (en) * 2014-03-03 2014-06-18 北京智谷睿拓技术服务有限公司 Task-based data transmission method and device
CN104580454A (en) * 2014-12-31 2015-04-29 乐视网信息技术(北京)股份有限公司 Data synchronizing method, device and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071356A1 (en) * 2015-10-26 2017-05-04 广州视睿电子科技有限公司 Client-based network data synchronization method, apparatus and system
WO2019148981A1 (en) * 2018-01-30 2019-08-08 深圳阿凡达智控有限公司 Data synchronization method and apparatus, and electronic cigarette
CN112839067A (en) * 2019-11-22 2021-05-25 腾讯科技(深圳)有限公司 Data synchronization method and device
CN116016491A (en) * 2022-12-26 2023-04-25 山东华方智联科技股份有限公司 Intelligent building design system and design method
CN116016491B (en) * 2022-12-26 2023-09-05 山东华方智联科技股份有限公司 Intelligent building design system and design method

Also Published As

Publication number Publication date
WO2017071356A1 (en) 2017-05-04
CN105407148B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN103546453B (en) A kind of method and apparatus of striding equipment play multimedia
CN105407148A (en) Network data synchronization method, device and system based on client
EP3447631B1 (en) Writing trajectory synchronization method and system for multiple clients
CN103475572B (en) Method, device and system for sending multiple pictures in instant messaging application
CN103024062A (en) Data sharing method, clients and data sharing system
EP2770668B1 (en) Apparatus and Method for Controlling a Messenger Service in a Terminal
US20210303521A1 (en) Device searching system and method for data transmission
CN105530535A (en) Method and system capable of realizing multi-person video watching and real-time interaction
CN104185039A (en) Method and device for audio and video synchronous playing
EP3073731B1 (en) Video conference method, terminal, and system
CN104253741A (en) Information sending method and device and system thereof
JP6081037B1 (en) Image receiving and reproducing apparatus, image generating and transmitting apparatus, display system, image receiving and reproducing method, image generating and transmitting method, image receiving and reproducing program, and image generating and transmitting program
CN109474512B (en) Background updating method for instant messaging, terminal equipment and storage medium
CN110019058B (en) Sharing method and device for file operation
CN113660153A (en) Message processing method, device, equipment and storage medium
CN105631970A (en) One-button type information sharing method and system based on automobile data recorder
CN104301755A (en) Television information obtaining method, television set, background server and system
CN103167100B (en) Share method and the communication terminal of user action
CN104639973B (en) Information pushing method and device
CN104837046A (en) Multi-media file processing method and device
CN104683854A (en) Multimedia playing control method and device
CN114237473A (en) Same-screen interaction method, device and system, storage medium and electronic device
CN103685191A (en) Data synchronizing system and method
US20120281066A1 (en) Information processing device and information processing method
CN104424228A (en) Method for inquiring multimedia data in multimedia file and electronic device

Legal Events

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