WO2019228034A1 - Procédé et appareil de synchronisation de données - Google Patents

Procédé et appareil de synchronisation de données Download PDF

Info

Publication number
WO2019228034A1
WO2019228034A1 PCT/CN2019/079739 CN2019079739W WO2019228034A1 WO 2019228034 A1 WO2019228034 A1 WO 2019228034A1 CN 2019079739 W CN2019079739 W CN 2019079739W WO 2019228034 A1 WO2019228034 A1 WO 2019228034A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
data
updated
data identifier
synchronized
Prior art date
Application number
PCT/CN2019/079739
Other languages
English (en)
Chinese (zh)
Inventor
姚佳
Original Assignee
杭州海康威视数字技术股份有限公司
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 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2019228034A1 publication Critical patent/WO2019228034A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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

Definitions

  • the present application relates to the field of computer technology, and in particular, to a data synchronization method and device.
  • Page display information is limited by the size of the display device.
  • the user needs to switch back and forth between multiple pages when browsing.
  • multiple video sources are output from the computer. This allows users to browse multiple pages at the same time.
  • Each page is an independent process, and data between pages cannot be shared.
  • users mainly synchronize data between different pages through manual operations. For example, users manually import data that needs to be synchronized on one page to other related pages through manual operations to achieve data synchronization between pages.
  • the present application provides a data synchronization method and device to solve the problem of data synchronization between multiple pages through manual operation, thereby improving the efficiency of data synchronization.
  • the specific technical solutions are as follows:
  • an embodiment of the present application provides a data synchronization method, which is applied to a server, and the method includes:
  • the step of determining pages to be synchronized from a plurality of pages logged in by the user includes:
  • the target page is a retrieval page, determining a page to be synchronized from the function page logged in by the user;
  • a page to be synchronized is determined from other function pages registered by the user except the target page.
  • the update information further includes an operation type
  • the step of generating synchronization information for data corresponding to the data identifier to be updated includes:
  • the operation type is an import operation
  • the step of generating synchronization information for data corresponding to the data identifier to be updated according to the operation type and whether the data identifier to be updated is stored in the target data identifier list includes:
  • the operation type is a delete operation
  • the step of generating synchronization information for data corresponding to the data identifier to be updated according to the operation type and whether the data identifier to be updated is stored in the target data identifier list includes:
  • Second synchronization information for the data to be deleted, where the data to be deleted is data corresponding to the data identifier to be updated, and the second synchronization information is used to remove the data to be deleted from the page to be synchronized Delete.
  • the operation type is a selection operation
  • the step of generating synchronization information for data corresponding to the data identifier to be updated according to the operation type and whether the data identifier to be updated is stored in the target data identifier list includes:
  • third synchronization information for the data to be selected, where the data to be selected is data corresponding to the data identifier to be updated, and the third synchronization information is used to select the to be selected in the page to be synchronized data;
  • the pages where the user has logged in include: a function page and a retrieval page; the method further includes:
  • the step of determining a page status of the function page according to the received heartbeat packet includes:
  • next heartbeat packet is received within a preset time period, determining that the page status of the function page is an open state, and the preset time period starts from the time when the heartbeat packet is received;
  • the connection to the function page is terminated, and the page state of the function page is determined to be closed.
  • the heartbeat packet includes the user information
  • the step of determining a page status of the function page according to the received heartbeat packet includes:
  • an embodiment of the present application provides a data synchronization device, which is applied to a server, and the device includes:
  • a first receiving module configured to receive update information sent by a target page, where the update information includes user information and a data identifier to be updated of a user who logs in to the target page;
  • a first determining module configured to determine a page to be synchronized from a plurality of pages logged in by the user
  • a generating module configured to generate synchronization information for data corresponding to the data identifier to be updated
  • a first sending module is configured to send the synchronization information to the page to be synchronized, so that the page to be synchronized updates data corresponding to the data identifier to be updated according to the synchronization information.
  • the first determining module is specifically configured to:
  • the target page is a retrieval page, determining a page to be synchronized from the function page logged in by the user;
  • a page to be synchronized is determined from other function pages registered by the user except the target page.
  • the update information further includes an operation type
  • the generating module includes:
  • An acquisition submodule configured to acquire a target data identifier list corresponding to the page to be synchronized according to a preset correspondence between a page and a data identifier list, wherein the data identifier list is used to record each data included in the corresponding page Identification
  • a generating sub-module is configured to generate synchronization information for data corresponding to the data identifier to be updated according to the operation type and whether the data identifier to be updated is stored in the target data identifier list.
  • the operation type is an import operation
  • the generating sub-module is specifically configured to:
  • the operation type is a delete operation
  • the generating sub-module is specifically configured to:
  • Second synchronization information for the data to be deleted, where the data to be deleted is data corresponding to the data identifier to be updated, and the second synchronization information is used to remove the data to be deleted from the page to be synchronized Delete.
  • the operation type is a selection operation
  • the generating sub-module is specifically configured to:
  • third synchronization information for data to be selected, where the data to be selected is data corresponding to the data identifier to be updated, and the third synchronization information is used to select the to be selected in the page to be synchronized data;
  • the pages that the user has logged in include: a function page and a retrieval page; the device further includes:
  • a second receiving module configured to receive a heartbeat packet sent by the function page
  • a second determining module configured to determine a page state of the function page according to the received heartbeat packet
  • a second sending module is configured to send information used to indicate the page status to the search page, so that the search page updates the page status of the function page.
  • the second determining module is specifically configured to:
  • next heartbeat packet is received within a preset time period, determining that the page status of the function page is an open state, and the preset time period starts from the time when the heartbeat packet is received;
  • the connection to the function page is terminated, and the page state of the function page is determined to be closed.
  • the heartbeat packet includes the user information; the second determining module is specifically configured to:
  • an embodiment of the present application provides a data synchronization system including a server and at least two pages; a target page of the at least two pages is used to obtain update information input by a user, and the update information is Send to the server, the update information includes user information of the user and an identifier of data to be updated;
  • the server is configured to receive the update information sent by the target page, determine pages to be synchronized from a plurality of pages logged in by the user, generate synchronization information for data corresponding to the data identifier to be updated, and Sending the synchronization information to the page to be synchronized;
  • the page to be synchronized is configured to receive the synchronization information sent by the server, and update data corresponding to the data identifier to be updated according to the synchronization information.
  • the at least two pages include a retrieval page and a function page; when the target page is a retrieval page,
  • the target page is further configured to obtain information of a designated function page input by the user; detect whether a page status of the designated function page is an open state; if not, create the designated function page, and based on the user information To open the specified function page.
  • an embodiment of the present application provides a server including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
  • the processor is configured to implement any one of the data synchronization method steps described above when executing a program stored in the memory.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements any one of the data synchronization methods described above. step.
  • the server receives the update information sent by the target page, determines the pages to be synchronized from multiple pages logged in by the user, generates synchronization information for the data corresponding to the data identifier to be updated, and synchronizes the synchronization information.
  • Send to the page to be synchronized, and the page to be updated updates the data corresponding to the data identifier to be updated according to the synchronization information.
  • the server can determine the pages to be synchronized, and the pages to be synchronized are updated according to the synchronization information of the server, thereby achieving data synchronization between multiple pages, and solving the problem of manual operation for updating, and improving the efficiency of data synchronization.
  • FIG. 1 is a flowchart of a data synchronization method according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a data synchronization apparatus according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a data synchronization system according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a server according to an embodiment of the present application.
  • the embodiments of the present application further provide a data synchronization method and device, which are applied to a server.
  • the data synchronization method includes the following steps:
  • the server receives the update information sent by the target page, determines the pages to be synchronized from multiple pages logged in by the user, generates synchronization information for the data corresponding to the data identifier to be updated, and synchronizes the synchronization information.
  • Send to the page to be synchronized, and the page to be updated updates the data corresponding to the data identifier to be updated according to the synchronization information.
  • the server can determine the pages to be synchronized, and the pages to be synchronized are updated according to the synchronization information of the server, thereby achieving data synchronization between multiple pages, and solving the problem of manual operation for updating, and improving the efficiency of data synchronization.
  • the data synchronization method may be applied to a server.
  • the server may be an HTTP server that provides HTTP protocol and WebSocket protocol communication.
  • the server may also have Other servers with corresponding functions described in the application examples are not limited herein.
  • the data synchronization method includes the following steps.
  • S101 Receive update information sent by a target page.
  • the target page can be a retrieval page or a function page.
  • the retrieval page is a data entry page based on a multi-screen page. After the user logs in to the retrieval page, he can enter the required retrieval information on the retrieval page for retrieval.
  • Function pages are pages other than search pages, and each function page has a corresponding function. In one implementation, the function of each function page may be an independent function.
  • the function page may include a relationship network page, a map analysis page, and a comprehensive research and judgment page.
  • the relationship network page is used to display the relationship diagram of other people who are related to the retrieved target object. For example, if the user searches for suspect A, the relationship network page will show the relationship between the person and the suspect A: family relationship , Friends, colleagues, etc.
  • the map analysis page is used to display the address information associated with the retrieved target object.
  • the comprehensive research and judgement page is used to display the conclusion after comprehensive judgment according to the relevant information of the retrieved target object.
  • connection may be a WebSocket connection.
  • the retrieval page and the function page are connected to the server through WebSocket, so that the page and the server can perform two-way communication.
  • the connection method between the server and the retrieval page and the function page may also be other methods, which are not limited herein.
  • the update information includes user information of a user who logs in to the target page and an identifier of data to be updated.
  • the user information may include at least one of the following: a user name, a user ID, and the like that the user logs in to.
  • the correspondence between the data and the identifier can be preset, that is, for each data, there can be a corresponding identifier.
  • the identifier of the data to be updated is the identifier corresponding to the data updated by the user on the target page, that is, the user who logged in to the target page has updated the data of the identifier of the data to be updated.
  • the page is updated the same. For example, if the user deletes the data of the suspect A on the relationship network page, and the identifier corresponding to the suspect A is A, the A is the identifier of the data to be updated.
  • the user is a user who logs in to the target page.
  • the user can log in to one page or multiple pages. If the user has logged in to other pages in addition to the target page, the pages to be synchronized can be determined from the other pages.
  • the server can monitor the page status of each page where the same user logs in.
  • the page status can be divided into a closed state and an open state.
  • the closed page can be manually closed, or it can be closed abnormally.
  • the closed state of a page means that the connection between the page and the server is broken, and the page cannot be displayed and cannot provide corresponding functions.
  • the open state of the page means that the page is connected to the server, and the page can be displayed to the user and provide corresponding functions.
  • the server determines, from multiple pages logged in by the user, the page whose page status is on as the page to be synchronized.
  • determining the pages to be synchronized can be divided into the following two cases.
  • the page to be synchronized is determined from the function pages logged in by the user.
  • the user is a user who logs in to the target page, and the function page that the user logs in to is a function page in an open state.
  • the target page is a retrieval page
  • a user who logs in to the retrieval page also logs in a function page
  • the function pages that the user logs in include page A, page B, and page C.
  • page A and page B are both on and page C is off, the server determines page A and page B as pages to be synchronized.
  • all function pages logged in by the user may be determined as pages to be synchronized, and some of the function pages logged in by the user may be determined as pages to be synchronized. It is not limited here.
  • the page to be synchronized may be determined from other function pages logged in by the user except the target page.
  • the user is a user who logs in to the target page, and the function pages other than the target page that the user logs in are function pages in an open state.
  • the function page that the user logs in includes page A, page B, and page C, where the target page is page A, and page B and page C are both open, the server determines page B and page C as pages to be synchronized.
  • all the function pages except the target page that the user logs in to may be determined as pages to be synchronized, and some of the function pages logged in by the user other than the target page may be determined as pages to be synchronized. It is not limited here.
  • the synchronization information is used to indicate that the data corresponding to the data identifier to be updated is updated. Updating data includes operations such as importing, deleting, and selecting data. Depending on the type of operation performed by the user on the target page, the update method indicated by the synchronization information generated by the server will be different.
  • the update information may further include an operation type, where the operation type may include an import operation, a delete operation, a selection operation, and the like.
  • the operation type included in the update information is an import operation, it means that the user has imported the data corresponding to the data identifier to be updated into the target page.
  • the server may obtain a target data identifier list corresponding to the page to be synchronized according to a preset correspondence between the pages and the data identifier list.
  • the server can determine whether the data identifier to be updated is stored in the target data identifier list by querying the obtained target data identifier list.
  • Each page may correspond to a data identification list.
  • the data identification list is used to record the identification of each data included in the corresponding page, that is, the identification recorded in the data identification list is consistent with the data included in the page corresponding to the data identification list. .
  • first synchronization information for importing data to be updated into a page to be synchronized may be generated.
  • second synchronization information for deleting data to be deleted from a page to be synchronized may be generated.
  • third synchronization information for selecting data to be selected in a page to be synchronized may be generated.
  • the page to be synchronized may update the data corresponding to the data identifier to be updated according to the synchronization information.
  • the data to be synchronized is updated based on the synchronization information, and the generation of the synchronization information is based on the operation type.
  • the following describes the process of generating and sending synchronization information according to different operation types.
  • the operation type when the operation type is an import operation, it can be considered that the user has performed the data import operation on the target page.
  • the server After obtaining the target data identifier list corresponding to the page to be synchronized, it can be determined whether the target data identifier list stores the data identifier to be updated.
  • the server may not perform data synchronization on the page to be synchronized corresponding to the target data identifier list. . If the data identifier to be updated is not stored in the target data identifier list, the server may obtain data corresponding to the data identifier to be updated from a preset database and use the data as the data to be updated.
  • the preset database is used to store various data and the corresponding relationship between the data and the data identifier. Data corresponding to each data identifier can be obtained from the database.
  • the server may generate first synchronization information including the data to be updated, and send the first synchronization information including the data to be updated to the page to be synchronized.
  • the first synchronization information is used to import the data to be updated into the page to be synchronized.
  • data to be updated may be obtained from the first synchronization information, and the data to be updated may be imported into its own page to achieve data synchronization with the target page.
  • the page to be synchronized is a relational network page.
  • the operation type is an import operation
  • the ID of the data to be updated is A
  • A is not stored in the target data ID list.
  • the server can obtain the data A corresponding to A from the database and generate The first synchronization information of the data A, and the first synchronization information including the data A is sent to the relationship network page.
  • the relational network page imports the data A into the relational network page.
  • the operation type is a delete operation
  • the server may not perform data synchronization on the page to be synchronized corresponding to the target data identifier list. If it is stored, the server generates second synchronization information for the data to be deleted, and sends the second synchronization information to the page to be synchronized.
  • the data to be deleted is data corresponding to the data identifier to be updated, and the second synchronization information is used to delete the data to be deleted from the page to be synchronized.
  • the to-be-deleted data in the own page can be deleted according to the second synchronization information to achieve data synchronization with the target page.
  • the operation type is a selection operation
  • the to-be-updated data identifier is stored in the target data identifier list, it indicates that data corresponding to the to-be-updated data identifier exists in the page to be synchronized.
  • third synchronization information for the data to be selected can be generated, and the third synchronization information Sent to the page to be synchronized.
  • the data to be selected is data corresponding to the data identifier to be updated, and the third synchronization information is used to select the data to be selected in the page to be synchronized.
  • the data to be selected in the own page can be selected according to the third synchronization information to achieve data synchronization with the target page.
  • the server may first obtain the data corresponding to the data identifier to be updated, and the data is to be selected. data.
  • the data to be selected may be obtained from a database preset by the server, or may be obtained by other methods, which is not limited herein.
  • the server may generate third synchronization information including the data to be synchronized, and may send the third synchronization information including the data to be synchronized to the page to be synchronized.
  • the data to be synchronized can be obtained from the third synchronization information, the data to be selected is imported into its own page, and the Select data to synchronize data with the target page.
  • the server can monitor each function page.
  • the pages that the user has logged in may include a function page and a retrieval page.
  • the function pages are connected to the server and can communicate with the server in both directions.
  • a heartbeat packet can be set to be sent to the server at a preset time interval, and the heartbeat packet can include status information of the function page itself.
  • the preset time interval may be customized. For example, it may be set to send a heartbeat packet to the server every half a second.
  • the page status of the function page for sending heartbeat packets is open.
  • the server can receive the heartbeat packet sent by the function page, which is any function page connected to the server.
  • the server can receive the heartbeat packet sent by the function page at a preset interval.
  • the page status of the function page may be determined, which may include at least the following two implementation manners.
  • the page state of the function page is an open state.
  • the preset duration may be set by user.
  • the preset duration starts from the time when the heartbeat packet is received, and the implementation of the preset duration may be controlled by a timer.
  • the timer starts to count.
  • the page status of the function page can be determined as On.
  • the connection to the function page can be interrupted, and the page status of the function page is determined to be closed.
  • the server may interrupt the connection by deleting the WebSocket connection with the function page.
  • the heartbeat packet may include user information, and a user corresponding to the user information is a user who logs in to the function page.
  • the server After the server receives the heartbeat packet sent from the function page, it can obtain user information from the heartbeat packet. According to the user information, the server establishes a connection with the function page. Among them, the established connection corresponds to user information.
  • the page status of the function page is determined to be open, which can include the following two situations: If the function page sends a heartbeat packet for the first time, and the current page status of the function page is closed, then The page state of the function page is determined to be an open state; if the current page state of the function page is already an open state, the page state of the function page is maintained unchanged and remains open.
  • the server receives the update information sent by the target page, determines the pages to be synchronized from multiple pages logged in by the user, generates synchronization information for the data corresponding to the data identifier to be updated, and synchronizes the synchronization information.
  • Send to the page to be synchronized, and the page to be updated updates the data corresponding to the data identifier to be updated according to the synchronization information.
  • the server can determine the pages to be synchronized, and the pages to be synchronized are updated according to the synchronization information of the server, thereby achieving data synchronization between multiple pages, and solving the problem of manual operation for updating, and improving the efficiency of data synchronization.
  • an embodiment of the present application further provides a data synchronization device.
  • the data synchronization device shown in FIG. 2 may be applied to a server.
  • the data synchronization device includes:
  • the first receiving module 210 is configured to receive update information sent by a target page, where the update information includes user information of a user who logs in to the target page and an identifier of data to be updated;
  • a first determining module 220 configured to determine pages to be synchronized from a plurality of pages logged in by the user
  • a generating module 230 configured to generate synchronization information for data corresponding to the data identifier to be updated
  • the first sending module 240 is configured to send synchronization information to a page to be synchronized, so that the page to be synchronized updates data corresponding to the data identifier to be updated according to the synchronization information.
  • the first determining module 220 is specifically configured to:
  • the target page is a retrieval page, determine the page to be synchronized from the function page logged in by the user;
  • the page to be synchronized is determined from the function pages other than the target page logged in by the user.
  • the update information further includes an operation type;
  • the generating module 230 includes:
  • An acquisition submodule configured to acquire a target data identifier list corresponding to a page to be synchronized according to a preset correspondence between a page and a data identifier list, wherein the data identifier list is used to record identifiers of each data included in the corresponding page;
  • a generating submodule is configured to generate synchronization information for data corresponding to the data identifier to be updated according to an operation type and whether a data identifier to be updated is stored in a target data identifier list.
  • the operation type is an import operation
  • the generation submodule is specifically configured to:
  • the operation type is a delete operation
  • the generating submodule is specifically configured to:
  • second synchronization information is generated for the data to be deleted, the data to be deleted is data corresponding to the data identifier to be updated, and the second synchronization information is used to delete the data to be deleted from the page to be synchronized.
  • the operation type is a selection operation; the generating submodule is specifically configured to:
  • the data to be selected is data corresponding to the data identifier to be updated, and the third synchronization information is used to select the data to be selected in the page to be synchronized;
  • the pages that the user has logged in include: a function page and a retrieval page; the device further includes:
  • a second receiving module configured to receive a heartbeat packet sent by a function page
  • a second determining module configured to determine a page state of the function page according to the received heartbeat packet
  • the second sending module is configured to send information indicating the page status of the user to the search page, so that the search page updates the page status of the function page.
  • the second determining module is specifically configured to:
  • next heartbeat packet is received within a preset time period, determine that the page status of the function page is open, and the preset time period starts from the time when the heartbeat packet is received;
  • the connection to the function page is terminated, and the page state of the function page is determined to be closed.
  • the heartbeat packet includes user information; the second determining module is specifically configured to:
  • the server receives the update information sent by the target page, determines the pages to be synchronized from multiple pages logged in by the user, generates synchronization information for the data corresponding to the data identifier to be updated, and synchronizes the synchronization information.
  • Send to the page to be synchronized, and the page to be updated updates the data corresponding to the data identifier to be updated according to the synchronization information.
  • the server can determine the pages to be synchronized, and the pages to be synchronized are updated according to the synchronization information of the server, thereby achieving data synchronization between multiple pages, and solving the problem of manual operation for updating, and improving the efficiency of data synchronization.
  • an embodiment of the present application further provides a data synchronization system, such as the data synchronization system 300 shown in FIG. 3, including a server 310 and at least two pages;
  • the target page of the at least two pages is used to obtain update information input by the user and send the update information to the server.
  • the update information includes the user information of the user and an identifier of the data to be updated.
  • the target page can be a retrieval page or a function page.
  • the server 310 is configured to receive update information sent by a target page, determine pages to be synchronized from multiple pages logged in by the user, generate synchronization information for data corresponding to the data identifier to be updated, and send the synchronization information to the pages to be synchronized.
  • the page to be synchronized is used to receive synchronization information sent by the server 310, and update data corresponding to the data identifier to be updated according to the synchronization information.
  • At least two pages include a retrieval page and a function page.
  • the target page is a retrieval page
  • the target page is further used to obtain information of the specified function page input by the user, where the information of the specified function page may be the specified Information such as the identity page and URL of the function page.
  • the designated function page is a user-defined function page to be synchronized.
  • the page status of each function page is stored in the search page.
  • the user who logs in to the search page and the user who logs in to the function page are the same user.
  • the retrieval page can detect whether the page status of the specified function page is open. If it is not, the retrieval page can create and open the specified function page according to the user information.
  • the creation of the designated function page can be created by manually entering the address in the address bar of the browser, or by retrieving the page and importing the data identifier to be updated to the designated function page.
  • the server 310 can obtain user information from the designated function page, and based on the obtained user information, the designated function page establishes a connection with the server 310. That is, for the server 310, the user corresponding to the user information is The user logged in to the specified function page.
  • the server 310 is successfully connected, the synchronization data of the user is sent to the designated function page through the connection.
  • the designated function page After receiving the synchronized data, the designated function page performs corresponding import and synchronization processing. At this time, the designated function page is open.
  • the designated function page After the designated function page is successfully opened, the designated function page sends a heartbeat packet to the server 310 at a preset time interval, so that the server 310 knows the page status of the designated function page in real time. If the designated function page is manually closed or terminated abnormally, the server 310 notifies the retrieval page that the page status of the designated function page is in a closed state, and the retrieval page timely updates the stored page status of the designated function page.
  • the server receives the update information sent by the target page, determines the pages to be synchronized from multiple pages logged in by the user, generates synchronization information for the data corresponding to the data identifier to be updated, and synchronizes the synchronization information.
  • Send to the page to be synchronized, and the page to be updated updates the data corresponding to the data identifier to be updated according to the synchronization information.
  • the server can determine the pages to be synchronized, and the pages to be synchronized are updated according to the synchronization information of the server, thereby achieving data synchronization between multiple pages, and solving the problem of manual operation for updating, and improving the efficiency of data synchronization.
  • An embodiment of the present application further provides a server.
  • the server includes a processor 410, a communication interface 420, a memory 430, and a communication bus 440.
  • the processor 410, the communication interface 420, and the memory 430 are implemented through the communication bus 440.
  • Mutual communication ;
  • a memory 430 configured to store a computer program
  • the processor 410 is configured to execute the following steps when executing a program stored in the memory 430:
  • the server receives the update information sent by the target page, determines the pages to be synchronized from multiple pages logged in by the user, generates synchronization information for the data corresponding to the data identifier to be updated, and synchronizes the synchronization information.
  • Send to the page to be synchronized, and the page to be updated updates the data corresponding to the data identifier to be updated according to the synchronization information.
  • the server can determine the pages to be synchronized, and the pages to be synchronized are updated according to the synchronization information of the server, thereby achieving data synchronization between multiple pages, and solving the problem of manual operation for updating, and improving the efficiency of data synchronization.
  • a server provided in the embodiment of the present application may also execute a data synchronization method described in any of the foregoing embodiments. For details, see FIG. 1 and the embodiment corresponding to FIG. 1, and details are not described herein again.
  • a computer-readable storage medium stores instructions, and when the computer-readable storage medium runs on the computer, the computer executes the foregoing FIG. 1 and FIG. 1.
  • a data synchronization method according to any one of the corresponding embodiments.
  • the communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, the figure only uses a thick line, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used for communication between the server and other devices.
  • the memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory.
  • NVM non-Volatile Memory
  • the memory may also be at least one storage device located far from the foregoing processor.
  • the above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc .; it may also be a digital signal processor (Digital Signal Processing, DSP), special integration Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP network processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array

Abstract

Dans un mode de réalisation, l'invention concerne un procédé et un appareil de synchronisation de données, appliqués à un serveur. Le procédé selon l'invention consiste : à recevoir des informations de mise à jour envoyées par une page cible et à déterminer une page à synchroniser parmi une pluralité de pages auxquelles s'est connecté un utilisateur ; à générer des informations de synchronisation pour des données correspondant à un identifiant de données à mettre à jour ; à envoyer les informations de synchronisation à la page à synchroniser, de sorte que ladite page mette à jour les données correspondant à l'identifiant de données à mettre à jour, en fonction des informations de synchronisation. Ainsi, la page à synchroniser est déterminée par un serveur et ladite page est mise à jour en fonction des informations de synchronisation du serveur, ce qui permet non seulement de réaliser la synchronisation de données entre une pluralité de pages, mais également de résoudre le problème lié à la nécessité d'opérations manuelles pour effectuer des mises à jour et d'améliorer ainsi l'efficacité de la synchronisation de données.
PCT/CN2019/079739 2018-05-30 2019-03-26 Procédé et appareil de synchronisation de données WO2019228034A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810541503.8 2018-05-30
CN201810541503.8A CN110557412A (zh) 2018-05-30 2018-05-30 一种数据同步方法及装置

Publications (1)

Publication Number Publication Date
WO2019228034A1 true WO2019228034A1 (fr) 2019-12-05

Family

ID=68697803

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/079739 WO2019228034A1 (fr) 2018-05-30 2019-03-26 Procédé et appareil de synchronisation de données

Country Status (2)

Country Link
CN (1) CN110557412A (fr)
WO (1) WO2019228034A1 (fr)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459612A (zh) * 2020-03-27 2020-07-28 新浪网技术(中国)有限公司 针对Kubernetes系统中Pod的更新方法及装置
CN111488151A (zh) * 2020-04-17 2020-08-04 上海数禾信息科技有限公司 Android各模块间页面交互的方法、装置
CN111782728A (zh) * 2020-06-30 2020-10-16 北京金山云网络技术有限公司 一种数据同步方法、装置、电子设备及介质
CN112565455A (zh) * 2020-12-23 2021-03-26 深圳市和讯华谷信息技术有限公司 多事件同步处理方法、计算机设备及存储介质
CN112817830A (zh) * 2021-03-01 2021-05-18 北京车和家信息技术有限公司 设置项的展示方法、装置、介质、设备、显示系统及车辆
CN113127239A (zh) * 2019-12-31 2021-07-16 深圳云天励飞技术有限公司 页面状态监控方法、装置、终端及存储介质
CN113704212A (zh) * 2020-05-22 2021-11-26 深信服科技股份有限公司 服务器的数据同步方法、装置、设备及计算机存储介质
CN113949894A (zh) * 2021-10-18 2022-01-18 上海哔哩哔哩科技有限公司 直播相关时长记录方法及装置
CN114281434A (zh) * 2021-12-15 2022-04-05 创优数字科技(广东)有限公司 小程序用户信息管理方法、装置、计算机设备和存储介质
CN115729592A (zh) * 2022-11-21 2023-03-03 上海秉匠信息科技有限公司 一种页面更新的方法、装置、电子设备及介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020089659A (ko) * 2001-05-24 2002-11-30 주식회사 비즈모델라인 클라이언트간 데이터 직접 통신을 이용한 다자간웹브라우저 동기화 방법 및 시스템
EP1501024A1 (fr) * 2003-07-23 2005-01-26 France Telecom Procédé de pointage synchronisé d'un objet du contenu d'une page web affichée simultanément dans une pluralité de terminaux utilisateurs connectés à un réseau de type internet
US20050108299A1 (en) * 2003-11-19 2005-05-19 Nec Corporation Real-time Web sharing system
CN102882762A (zh) * 2011-07-11 2013-01-16 腾讯科技(深圳)有限公司 一种在多页面间同步聊天状态信息的方法及系统
CN103218461A (zh) * 2013-05-14 2013-07-24 百度在线网络技术(北京)有限公司 浏览页面的分类管理方法、系统、终端和云端服务器
CN104104575A (zh) * 2013-04-03 2014-10-15 腾讯科技(深圳)有限公司 一种即时通讯群的通讯方法及系统
US20160085661A1 (en) * 2014-09-18 2016-03-24 Antoine Clement Multi-Browser Testing For Web Applications

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7000008B2 (en) * 2001-04-16 2006-02-14 Sun Microsystems, Inc. Method, system, and program for providing data updates to a page including multiple regions of dynamic content
CN102185875A (zh) * 2011-01-30 2011-09-14 北京开心人信息技术有限公司 一种信息同步更新的方法与系统
CN102270133A (zh) * 2011-07-18 2011-12-07 百度在线网络技术(北京)有限公司 一种用于展现页面窗口的状态的方法与设备
WO2011157241A2 (fr) * 2011-08-12 2011-12-22 华为终端有限公司 Procédé de synchronisation de données, serveur, terminal mobile et système de synchronisation de données
US9015062B2 (en) * 2013-06-20 2015-04-21 Aol Advertising Inc. Systems and methods for cross-browser advertising ID synchronization
CN105027120B (zh) * 2014-02-24 2019-01-18 华为技术有限公司 多页面管理方法和装置
CN105099686B (zh) * 2014-05-13 2019-08-23 腾讯科技(深圳)有限公司 数据同步的方法、服务器、终端及系统
CN105808702B (zh) * 2016-03-04 2019-07-02 华自科技股份有限公司 页面内容刷新方法、系统及页面内容同步刷新的管理系统
CN106161629B (zh) * 2016-07-13 2020-08-04 广州新博庭网络信息科技股份有限公司 一种业务对象同步的方法、客户端和服务器

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020089659A (ko) * 2001-05-24 2002-11-30 주식회사 비즈모델라인 클라이언트간 데이터 직접 통신을 이용한 다자간웹브라우저 동기화 방법 및 시스템
EP1501024A1 (fr) * 2003-07-23 2005-01-26 France Telecom Procédé de pointage synchronisé d'un objet du contenu d'une page web affichée simultanément dans une pluralité de terminaux utilisateurs connectés à un réseau de type internet
US20050108299A1 (en) * 2003-11-19 2005-05-19 Nec Corporation Real-time Web sharing system
CN102882762A (zh) * 2011-07-11 2013-01-16 腾讯科技(深圳)有限公司 一种在多页面间同步聊天状态信息的方法及系统
CN104104575A (zh) * 2013-04-03 2014-10-15 腾讯科技(深圳)有限公司 一种即时通讯群的通讯方法及系统
CN103218461A (zh) * 2013-05-14 2013-07-24 百度在线网络技术(北京)有限公司 浏览页面的分类管理方法、系统、终端和云端服务器
US20160085661A1 (en) * 2014-09-18 2016-03-24 Antoine Clement Multi-Browser Testing For Web Applications

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127239A (zh) * 2019-12-31 2021-07-16 深圳云天励飞技术有限公司 页面状态监控方法、装置、终端及存储介质
CN111459612A (zh) * 2020-03-27 2020-07-28 新浪网技术(中国)有限公司 针对Kubernetes系统中Pod的更新方法及装置
CN111488151B (zh) * 2020-04-17 2023-09-26 上海数禾信息科技有限公司 Android各模块间页面交互的方法、装置
CN111488151A (zh) * 2020-04-17 2020-08-04 上海数禾信息科技有限公司 Android各模块间页面交互的方法、装置
CN113704212A (zh) * 2020-05-22 2021-11-26 深信服科技股份有限公司 服务器的数据同步方法、装置、设备及计算机存储介质
CN111782728A (zh) * 2020-06-30 2020-10-16 北京金山云网络技术有限公司 一种数据同步方法、装置、电子设备及介质
CN111782728B (zh) * 2020-06-30 2024-02-02 北京金山云网络技术有限公司 一种数据同步方法、装置、电子设备及介质
CN112565455A (zh) * 2020-12-23 2021-03-26 深圳市和讯华谷信息技术有限公司 多事件同步处理方法、计算机设备及存储介质
CN112565455B (zh) * 2020-12-23 2023-01-20 深圳市安数科技有限责任公司 多事件同步处理方法、计算机设备及存储介质
CN112817830A (zh) * 2021-03-01 2021-05-18 北京车和家信息技术有限公司 设置项的展示方法、装置、介质、设备、显示系统及车辆
CN113949894B (zh) * 2021-10-18 2023-06-20 上海哔哩哔哩科技有限公司 直播相关时长记录方法及装置
CN113949894A (zh) * 2021-10-18 2022-01-18 上海哔哩哔哩科技有限公司 直播相关时长记录方法及装置
CN114281434A (zh) * 2021-12-15 2022-04-05 创优数字科技(广东)有限公司 小程序用户信息管理方法、装置、计算机设备和存储介质
CN114281434B (zh) * 2021-12-15 2022-11-29 创优数字科技(广东)有限公司 小程序用户信息管理方法、装置、计算机设备和存储介质
CN115729592A (zh) * 2022-11-21 2023-03-03 上海秉匠信息科技有限公司 一种页面更新的方法、装置、电子设备及介质

Also Published As

Publication number Publication date
CN110557412A (zh) 2019-12-10

Similar Documents

Publication Publication Date Title
WO2019228034A1 (fr) Procédé et appareil de synchronisation de données
US9369520B2 (en) Enhancement of upload and/or download performance based on client and/or server feedback information
US10567841B2 (en) Information interception processing method, terminal, and computer storage medium
US9729675B2 (en) Enhancement of upload and/or download performance based on client and/or server feedback information
US9910895B2 (en) Push subscriptions
AU2015280414B2 (en) Cross-device notifications
US20140310241A1 (en) Virtual file system for automated data replication and review
US20160330208A1 (en) Method and apparatus for implementing document sharing between user groups
CN103227786B (zh) 一种网站登录信息填入方法及装置
KR20140022464A (ko) 네트워크 리소스 다운로드 정보에 대한 공유 제어 시스템 및 그 제어 방법
WO2019109518A1 (fr) Procédé de téléchargement vers l'amont d'une liste de données et terminal associé
WO2017167132A1 (fr) Procédé et appareil servant à mettre en œuvre une messagerie instantanée
US9800488B2 (en) Method for setting heartbeat timer, terminal and server
CN108469972B (zh) 支持web页面中显示多窗口的方法和装置
US9876776B2 (en) Methods for generating and publishing a web site based on selected items and devices thereof
US20240020305A1 (en) Systems and methods for automatic archiving, sorting, and/or indexing of secondary message content
US11178160B2 (en) Detecting and mitigating leaked cloud authorization keys
WO2016169438A1 (fr) Procédé et appareil d'acquisition de compte d'utilisateur
EP2990947A1 (fr) Procédé et appareil de sauvegarde de données et dispositif électronique
WO2016082616A1 (fr) Procédé et dispositif pour fournir des données d'authentification de site web à un moteur de recherche
US20150026274A1 (en) Method and apparatus for routing a message
CN105052165B (zh) 业务处理方法、装置和系统
WO2017080198A1 (fr) Procédé et dispositif de mise à jour de mémo
CN109213955B (zh) 数据处理方法及相关设备
CN103680257A (zh) 通信软件自动录制课程的方法及其系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19810250

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19810250

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19810250

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/06/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19810250

Country of ref document: EP

Kind code of ref document: A1