CN112642146A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN112642146A
CN112642146A CN202011561678.9A CN202011561678A CN112642146A CN 112642146 A CN112642146 A CN 112642146A CN 202011561678 A CN202011561678 A CN 202011561678A CN 112642146 A CN112642146 A CN 112642146A
Authority
CN
China
Prior art keywords
data
mirror image
login
terminal
full
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.)
Pending
Application number
CN202011561678.9A
Other languages
Chinese (zh)
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.)
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN202011561678.9A priority Critical patent/CN112642146A/en
Publication of CN112642146A publication Critical patent/CN112642146A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • A63F13/358Adapting the game course according to the network or server load, e.g. for reducing latency due to different connection speeds between clients
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2315Optimistic concurrency control
    • G06F16/2322Optimistic concurrency control using timestamps
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/283Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/5526Game data structure
    • A63F2300/554Game data structure by saving game or status data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a data processing method and a data processing device, wherein the data processing method comprises the following steps: receiving a login request sent by a login terminal, wherein the login request comprises a login account and first identification information of the login terminal, inquiring full mirror image data which are stored in a mirror image warehouse and are associated with the login account, acquiring terminal service data which are stored in the login terminal and are associated with the login account according to the first identification information, verifying whether the full mirror image data are consistent with the terminal service data, and synchronizing the full mirror image data to the login terminal under the condition that a verification result is inconsistent so as to use the full mirror image data to cover the terminal service data.

Description

Data processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, a computing device, and a computer-readable storage medium.
Background
With the rapid development of network technology, the online games gradually have a greater proportion in the leisure and entertainment lives of users, which greatly enriches the leisure and entertainment lives of users, and the online games can include online games for one person and for many people.
As the number of selectable game terminals is increased (such as mobile phones, computers and the like), game data generated by users using different terminals cannot be synchronized in real time at different terminals, and only when the game terminals are detected to be replaced by the users, the game service providers manually synchronize the historical game data of the users to the replaced game terminals; or after the user logs in the game account, if the historical game data of the user is detected to be damaged, the game service provider manually synchronizes the historical game data of the user to the game terminal, and because the data volume of the game data is continuously increased, the data synchronization is performed in such a way, although the requirements of the user can be solved to a certain extent, the problem of low data synchronization efficiency also exists, and the game experience of the user is influenced.
Disclosure of Invention
In view of this, embodiments of the present application provide a data processing method and apparatus, a computing device, and a computer-readable storage medium, so as to solve technical defects in the prior art.
According to a first aspect of embodiments of the present application, there is provided a data processing method, including:
receiving a login request sent by a login terminal, wherein the login request comprises a login account and first identification information of the login terminal;
inquiring the full mirror image data which is stored in a mirror image warehouse and is associated with the login account, and acquiring the terminal service data which is stored by the login terminal and is associated with the login account according to the first identification information;
verifying whether the total mirror image data is consistent with the terminal service data;
and under the condition that the verification result is inconsistent, synchronizing the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.
Optionally, before receiving the login request sent by the login terminal, the method further includes:
and acquiring and storing incremental service data which is generated in an offline state and is associated with the login account.
Optionally, the synchronizing the full volume mirror data to the login terminal to use the full volume mirror data to overlay the terminal service data includes:
pushing the incremental business data serving as a mirror image to be stored to the mirror image warehouse so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and generate updated full mirror image data;
and synchronizing the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.
Optionally, the data processing method further includes:
and under the condition that the verification result is consistent, pushing the incremental business data serving as the mirror image to be stored to the mirror image warehouse, and synchronizing the incremental business data to the login terminal.
Optionally, before receiving the login request sent by the login terminal, the method further includes:
acquiring incremental business data which are generated in an offline state and are associated with the login account, and adding a timestamp to the incremental business data;
and pushing the incremental business data and the timestamp as a mirror image to be stored to the mirror image warehouse, so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and the timestamp, and generate updated full mirror image data.
Optionally, the querying the full amount of mirror data associated with the login account stored in the mirror repository includes:
acquiring time information corresponding to the last log-out of the login account;
determining a target timestamp according to the time information, and inquiring mirror image data corresponding to the target timestamp stored in a mirror image warehouse;
correspondingly, the verifying whether the full volume mirror image data is consistent with the terminal service data includes:
and verifying whether the mirror image data is consistent with the terminal service data.
Optionally, the synchronizing the full volume mirror data to the login terminal to use the full volume mirror data to overlay the terminal service data includes:
and synchronizing the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.
Optionally, the data processing method further includes:
and synchronizing the incremental business data to the login terminal under the condition that the verification results are consistent.
Optionally, after receiving the login request sent by the login terminal, the method further includes:
inquiring second identification information of a login terminal used by the last login of the login account;
verifying whether the first identification information is consistent with the second identification information;
and under the condition that the verification result is inconsistent, inquiring the full mirror image data which is stored in a mirror image warehouse and is associated with the login account, and synchronizing the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.
Optionally, the data processing method further includes:
receiving a business operation request submitted by a user through the login terminal;
determining difference service data according to the service operation request;
and synchronizing the difference service data serving as incremental data to the login terminal.
According to a second aspect of embodiments of the present application, there is provided a data processing apparatus including:
the system comprises a receiving module, a login module and a display module, wherein the receiving module is configured to receive a login request sent by a login terminal, and the login request comprises a login account and first identification information of the login terminal;
the query module is configured to query full mirror image data which are stored in a mirror image warehouse and are associated with the login account, and acquire terminal service data which are stored by the login terminal and are associated with the login account according to the first identification information;
the verification module is configured to verify whether the full mirror image data is consistent with the terminal service data;
and the synchronization module is configured to synchronize the full amount of mirror image data to the login terminal under the condition that the verification result is inconsistent, so that the full amount of mirror image data is used for covering the terminal service data.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the data processing method when executing the instructions.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the data processing method.
In the embodiment of the application, a login request sent by a login terminal is received, the login request comprises a login account and first identification information of the login terminal, full mirror image data which is stored in a mirror image warehouse and is associated with the login account is inquired, terminal service data which is stored in the login terminal and is associated with the login account is obtained according to the first identification information, whether the full mirror image data is consistent with the terminal service data or not is verified, and the full mirror image data is synchronized to the login terminal under the condition that a verification result is inconsistent so as to cover the terminal service data with the full mirror image data;
the full-amount mirror image data are automatically synchronized to the login terminal by verifying whether the full-amount mirror image data in the mirror image warehouse are consistent with the terminal service data stored by the login terminal or not and under the condition that the verification result is inconsistent, so that the full-amount mirror image data are used for covering the terminal service data, and the full-amount mirror image data synchronization mode is automatically carried out, thereby being beneficial to improving the data synchronization efficiency and improving the game service experience of users.
Drawings
FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of a data processing method provided by an embodiment of the present application;
FIG. 3 is a flow chart of a data processing method provided by an embodiment of the present application;
FIG. 4 is an interaction diagram of a data processing method provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application.
In the present application, a data processing method and apparatus, a computing device, and a computer-readable storage medium are provided, which are described in detail in the following embodiments one by one.
FIG. 1 shows a block diagram of a computing device 100 according to an embodiment of the present application. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.
Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present application, the above-mentioned components of the computing device 100 and other components not shown in fig. 1 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.
A schematic diagram of a data processing method provided in an embodiment of the present description is shown in fig. 2, where a server receives a login request sent by a user through a login terminal, queries full mirror image data associated with a login account and stored in a mirror image warehouse, acquires terminal service data associated with the login account and stored in the login terminal according to identification information carried in the login request, and verifies whether the full mirror image data is consistent with the terminal service data; under the condition that the verification result is inconsistent, the server synchronizes the full amount of mirror image data to the login terminal so as to use the full amount of mirror image data to cover the terminal game data; or, under the condition that the verification results are consistent, the server receives an operation request submitted by a user through the login terminal, determines the difference data according to the operation request, and synchronizes the difference data serving as the incremental data to the login terminal.
The full-amount mirror image data are automatically synchronized to the login terminal by verifying whether the full-amount mirror image data in the mirror image warehouse are consistent with the terminal service data stored by the login terminal or not and under the condition that the verification result is inconsistent, so that the full-amount mirror image data are used for covering the terminal service data, and the full-amount mirror image data synchronization mode is automatically carried out, thereby being beneficial to improving the data synchronization efficiency and improving the service experience of a user.
Wherein the processor 120 may perform the steps of the data processing method shown in fig. 3. Fig. 3 shows a flow chart of a data processing method according to an embodiment of the present application, comprising steps 302 to 308.
Step 302, receiving a login request sent by a login terminal, where the login request includes a login account and first identification information of the login terminal.
As more and more game terminals (such as mobile phones, computers and the like) can be selected by users, the game data generated by the users using different terminals can not be synchronized in real time at different terminals, and the game service provider can only manually synchronize the historical game data of the users to the replaced game terminals under the condition that the game terminals are detected to be replaced by the users; or after the user logs in the game account, if the historical game data of the user is detected to be damaged, the game service provider manually synchronizes the historical game data of the user to the game terminal, and because the data volume of the game data is continuously increased, the data synchronization is performed in such a way, although the requirements of the user can be solved to a certain extent, the problem of low data synchronization efficiency also exists, and the game experience of the user is influenced.
Based on this, the data processing method provided by the embodiment of the application is applied to a server, and is used for querying full mirror image data stored in a mirror image warehouse and associated with a login account by receiving a login request sent by a login terminal, wherein the login request comprises the login account and first identification information of the login terminal, acquiring terminal service data stored in the login terminal and associated with the login account according to the first identification information, verifying whether the full mirror image data is consistent with the terminal service data, and synchronizing the full mirror image data to the login terminal under the condition that a verification result is inconsistent so as to use the full mirror image data to cover the terminal service data;
the full-amount mirror image data are automatically synchronized to the login terminal by verifying whether the full-amount mirror image data in the mirror image warehouse are consistent with the terminal service data stored by the login terminal or not and under the condition that the verification result is inconsistent, so that the full-amount mirror image data are used for covering the terminal service data, and the full-amount mirror image data synchronization mode is automatically carried out, thereby being beneficial to improving the data synchronization efficiency and improving the service experience of a user.
Specifically, the login account is an account obtained by a user through registration and related to a target service, where the target service may be a game service, a payment service, or a social service, and the like, and is not limited herein, the user may send a login request to a server through the login terminal, and after the login is successful, the user may perform a related operation on the target service through the login terminal.
In addition, a login request sent by a user to a server through a login terminal comprises a login account and first identification information of the login terminal, the server can inquire mirror image data which are stored in a mirror image warehouse and are associated with the login account through the login account, and inquire terminal service data which are stored in the login terminal and are associated with the login account through the first identification information.
Step 304, inquiring the full mirror image data stored in the mirror image warehouse and associated with the login account, and acquiring the terminal service data stored by the login terminal and associated with the login account according to the first identification information.
Specifically, Mirroring (Mirroring) is a type of redundancy, where data on one disk has an identical copy on another disk, i.e., Mirroring. In the application, the full amount of mirror image data associated with the login account stored in the mirror image warehouse of the server is a copy of the historical service data associated with the login account, so that the full amount of mirror image data stored in the mirror image warehouse should be substantially identical to the terminal service data stored in the login terminal.
However, considering that a user may replace a login terminal, or a situation that terminal service data is damaged or changed may occur, after receiving a login request sent by the user through the login terminal, the server may query, through the login account, mirror data associated with the login account stored in a mirror repository, query, through the first identification information, terminal service data associated with the login account stored in the login terminal, and verify the mirror data and the terminal service data to ensure consistency between the two.
Step 306, verifying whether the total mirror data is consistent with the terminal service data.
Specifically, the verification is to compare the full mirror image data with the terminal service data, as mentioned above, in order to avoid that the service operation of the user is affected due to the fact that the user changes the login terminal or the terminal service data stored in the login terminal is damaged or changed, the application obtains and verifies the consistency of the full mirror image data and the terminal service data after receiving the login request of the user, and the full mirror image data or the synchronous incremental mirror image data are selected to be synchronized to the login terminal according to the verification result.
And 308, synchronizing the full mirror image data to the login terminal under the condition that the verification result is inconsistent so as to use the full mirror image data to cover the terminal service data.
Specifically, the full volume mirror image data and the terminal service data are compared, and when the comparison result is that the full volume mirror image data stored in the mirror image warehouse in the server is not consistent with the terminal service data, the probability that the full volume mirror image data stored in the server is modified or damaged is low, so that the terminal service data stored in the login terminal is damaged or modified with a high probability, and in order not to affect the service operation of the user, the historical service data of the user, namely the full volume mirror image service data, needs to be synchronized to the login terminal so as to cover the terminal service data with the full volume mirror image data, and after the synchronization is completed, the user can perform related service operation based on the historical service data.
In addition, except that the comparison result is inconsistent due to the fact that the terminal service data stored in the login terminal is damaged or changed, the situation that the comparison is inconsistent also exists when the login terminal is replaced by the user, and therefore after the login request of the user is received, whether the login terminal is replaced by the user needs to be determined according to the identification information of the login terminal carried in the login request, and the method can be specifically realized by the following steps:
inquiring second identification information of a login terminal used by the last login of the login account;
verifying whether the first identification information is consistent with the second identification information;
and under the condition that the verification result is inconsistent, inquiring the full mirror image data which is stored in a mirror image warehouse and is associated with the login account, and synchronizing the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.
In particular, since the service data generated by the user using different login terminals cannot be synchronized in real time at each login terminal, therefore, in order to avoid the user from changing the login terminal, since the history service data associated with the login account is not stored in the changed login terminal, or the stored historical service data associated with the login account is lost, so that the service processing process of the user is not changed, the user experience is influenced, after the login request sent by the user is received, whether the user replaces the login terminal can be determined according to the identification information of the login terminal carried in the login request, the method comprises the steps of inquiring second identification information of a login terminal used by the last login of the login account, and determining whether the user changes the login terminal or not by comparing the first identification information with the second identification information.
If the fact that the user replaces the login terminal is determined according to the comparison result, the full amount of mirror image data which are stored in a mirror image warehouse of the server and are associated with the login account need to be inquired, the full amount of mirror image data are synchronized to the login terminal, and the efficiency of data synchronization is improved in a mode of automatically synchronizing the full amount of mirror image data, so that the service experience of the user is improved.
In addition, when the login account of the user is not logged in (offline), a part of service data may still be generated, and this part of service data may be regarded as offline data, because the login account is in an offline state, the login terminal of the user cannot receive the offline data, and this part of offline data is received and stored by the server, that is, before receiving the login request sent by the login terminal, the method further includes: and acquiring and storing incremental service data which is generated in an offline state and is associated with the login account.
Taking the service as a game service as an example, after a user goes offline (an account is not logged in), the generated game data is offline data, for example, after the user a goes offline, the user B sends an application for adding a game friend to the user a, and the application information is offline data for the user a.
Further, when the server receives a login request of a user and verifies that the full mirror image data is consistent with the terminal service data, the server synchronizes the offline data serving as the incremental service data to the login terminal, pushes the incremental service data serving as the mirror image to be stored to the mirror image warehouse, updates the full mirror image data by using the incremental service data, and verifies the terminal service data of the user login terminal by using the updated full mirror image data after receiving the login request of the user again.
In addition, when a server receives a login request of a user and verifies that the full-volume mirror image data is inconsistent with the terminal service data, the incremental service data can be pushed to the mirror image warehouse as a mirror image to be stored, so that the full-volume mirror image data stored in the mirror image warehouse is updated based on the incremental service data, updated full-volume mirror image data is generated, and the updated full-volume mirror image data is synchronized to the login terminal so as to cover the terminal service data with the updated full-volume mirror image data.
Through the mode of automatically carrying out full-volume mirror image data synchronization, the efficiency of data synchronization is favorably improved, and therefore the service experience of a user is improved.
In this embodiment of the present application, before receiving a login request sent by a login terminal, the method further includes:
acquiring incremental business data which are generated in an offline state and are associated with the login account, and adding a timestamp to the incremental business data;
and pushing the incremental business data and the timestamp as a mirror image to be stored to the mirror image warehouse, so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and the timestamp, and generate updated full mirror image data.
Specifically, as described above, a part of the service data may still be generated when the login account of the user is not logged in (offline), the part of the service data may be regarded as offline data, because the login account is offline, the login terminal of the user cannot receive the offline data, and the part of the offline data is received and stored by the server, and because the mirror image data associated with the login account and the timestamp corresponding to the generation time of the mirror image data are stored in the mirror image warehouse, after the server acquires the offline data, the server may add the timestamp corresponding to the generation time of the offline data to the offline data, and may transmit the incremental service data and the timestamp of the offline data to the mirror image warehouse for storage as the incremental service data, and updating the full mirror image data stored in the mirror image warehouse based on the incremental business data and the timestamp to generate updated full mirror image data.
Further, querying the full amount of mirror image data associated with the login account stored in the mirror image warehouse may specifically be implemented in the following manner:
acquiring time information corresponding to the last log-out of the login account;
determining a target timestamp according to the time information, and inquiring mirror image data corresponding to the target timestamp stored in a mirror image warehouse;
correspondingly, the verifying whether the full volume mirror image data is consistent with the terminal service data includes:
and verifying whether the mirror image data is consistent with the terminal service data.
Further, the full volume mirror image data is synchronized to the login terminal so as to use the full volume mirror image data to cover the terminal service data, which can be specifically realized by the following means:
and synchronizing the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.
Specifically, the full-volume mirror image data stored in the mirror image warehouse is updated based on the incremental business data and the timestamp of the incremental business data, after the updated full-volume mirror image data is generated, under the condition that a login request sent by a user through a login terminal is received, since the login terminal of the user cannot receive offline data when the login account is in an offline state, the business data generated before the login account of the user logs out from the login last time can be compared, namely, a target timestamp is determined according to the time information corresponding to the last login log out of the login account, and the mirror image data corresponding to the target timestamp stored in the mirror image warehouse is inquired, so that whether the mirror image data is consistent with the terminal business data stored in the login terminal or not is verified.
Under the condition that the verification results are inconsistent, synchronizing the updated full mirror image data stored in a mirror image warehouse of the server to the login terminal so as to use the updated full mirror image data to cover the terminal service data; or, synchronizing the incremental business data in the mirror repository of the server to the login terminal under the condition that the verification results are consistent.
By means of automatic synchronization of full mirror image data or incremental business data, data synchronization efficiency is improved, and service experience of users is improved.
In the embodiment of the application, after receiving a login request of a user and determining that the login state of the login account is successful, a service operation request of the user can be received, and after updating service data according to the service operation request, the changed service data is synchronized to a login terminal as incremental data, which can be specifically realized by the following modes:
receiving a business operation request submitted by a user through the login terminal;
determining difference service data according to the service operation request;
and synchronizing the difference service data serving as incremental data to the login terminal.
Still taking the service as a game service as an example, after a game account of a user a successfully logs in, if a game item purchase request sent by the user a through the login terminal is received, a server needs to calculate and update game item information owned by the user a and remaining game resource values of the user a according to game item identification information carried in the game item purchase request and game resource values consumed for purchasing the game items, and synchronize an update result to the game terminal as incremental game data.
According to the data processing method provided by the embodiment of the application, a login request sent by a login terminal is received, the login request comprises a login account and first identification information of the login terminal, full mirror image data which are stored in a mirror image warehouse and are associated with the login account are inquired, terminal service data which are stored in the login terminal and are associated with the login account are obtained according to the first identification information, whether the full mirror image data are consistent with the terminal service data or not is verified, and the full mirror image data are synchronized to the login terminal under the condition that the verification result is inconsistent, so that the full mirror image data are used for covering the terminal service data;
the full-amount mirror image data are automatically synchronized to the login terminal by verifying whether the full-amount mirror image data in the mirror image warehouse are consistent with the terminal service data stored by the login terminal or not and under the condition that the verification result is inconsistent, so that the full-amount mirror image data are used for covering the terminal service data, and the full-amount mirror image data synchronization mode is automatically carried out, thereby being beneficial to improving the data synchronization efficiency and improving the service experience of a user.
Fig. 4 shows an interaction diagram of a data processing method according to an embodiment of the present application, which is described by taking the game service as an example, and includes steps 402 to 416.
In step 402, the server obtains and stores incremental game data generated in an offline state and associated with the game account of the user.
In step 404, the server receives a game account login request sent by the user through the login terminal.
Specifically, the game account login request includes a game account and first identification information of the login terminal.
At step 406, the server queries the full amount of mirrored game data stored in the mirrored repository in association with the game account.
Step 408, the server obtains terminal game data associated with the game account stored by the login terminal according to the first identification information.
In step 410, the server verifies whether the full amount of mirror image game data is consistent with the terminal game data.
In step 412, the server receives the game operation request submitted by the user through the login terminal if the verification result is consistent.
In step 414, the server determines difference game data according to the game operation request.
Step 416, the server synchronizes the difference game data as incremental game data to the login terminal.
In addition, when the verification result is inconsistent, the server synchronizes the full amount of mirror image game data to the login terminal so as to use the full amount of mirror image game data to overwrite the terminal game data.
This application is through the terminal game data unanimity of the total amount mirror image recreation data in the verification mirror image warehouse with the storage of login terminal to under the inconsistent condition of verification result, will total amount mirror image recreation data automatic synchronization extremely login terminal, in order to use total amount mirror image recreation data covers terminal game data carries out the synchronous mode of total amount mirror image recreation data automatically, is favorable to promoting the synchronous efficiency of data, thereby promotes user's game service and experiences.
Corresponding to the above method embodiment, the present application further provides an embodiment of a data processing apparatus, and fig. 5 shows a schematic structural diagram of the data processing apparatus according to an embodiment of the present application. As shown in fig. 5, the apparatus 500 includes:
a receiving module 502, configured to receive a login request sent by a login terminal, where the login request includes a login account and first identification information of the login terminal;
the query module 504 is configured to query full mirror image data associated with the login account and stored in a mirror image warehouse, and acquire terminal service data associated with the login account and stored in the login terminal according to the first identification information;
a verification module 506 configured to verify whether the full volume mirror data is consistent with the terminal service data;
a synchronization module 508 configured to synchronize the full volume mirror data to the login terminal to use the full volume mirror data to overlay the terminal service data in case that the verification result is inconsistent.
Optionally, the data processing apparatus further includes:
and the incremental business data acquisition module is configured to acquire and store the incremental business data which is generated in an offline state and is associated with the login account.
Optionally, the synchronization module 508 includes:
the pushing submodule is configured to push the incremental business data serving as a mirror image to be stored to the mirror image warehouse, so that the full mirror image data stored in the mirror image warehouse is updated based on the incremental business data, and updated full mirror image data is generated;
and the synchronization submodule is configured to synchronize the updated full volume mirror image data to the login terminal so as to use the updated full volume mirror image data to cover the terminal service data.
Optionally, the data processing apparatus further includes:
and the first incremental business data synchronization module is configured to push the incremental business data serving as a mirror image to be stored to the mirror image warehouse and synchronize the incremental business data to the login terminal under the condition that the verification result is consistent.
Optionally, the data processing apparatus further includes:
the adding module is configured to acquire incremental business data which are generated in an offline state and are associated with the login account, and add a timestamp to the incremental business data;
and the data updating module is configured to push the incremental business data and the timestamp as a mirror image to be stored to the mirror image warehouse, so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and the timestamp, and generate updated full mirror image data.
Optionally, the query module 504 includes:
the time information acquisition sub-module is configured to acquire time information corresponding to the last login logout of the login account;
the query submodule is configured to determine a target timestamp according to the time information and query mirror image data corresponding to the target timestamp stored in a mirror image warehouse;
accordingly, the verification module 506 includes:
and the verification sub-module is configured to verify whether the mirror image data is consistent with the terminal service data.
Optionally, the synchronization module 508 includes:
and the full mirror image data synchronization submodule is configured to synchronize the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.
Optionally, the data processing apparatus further includes:
and the second incremental business data synchronization module is configured to synchronize the incremental business data to the login terminal under the condition that the verification result is consistent.
Optionally, the data processing apparatus further includes:
the second identification information query module is configured to query second identification information of a login terminal used by the last login of the login account;
an identification information verification module configured to verify whether the first identification information and the second identification information are consistent;
and the data query module is configured to query full mirror image data which is stored in a mirror image warehouse and is associated with the login account under the condition that the verification result is inconsistent, and synchronize the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.
Optionally, the data processing apparatus further includes:
the request receiving module is configured to receive a service operation request submitted by a user through the login terminal;
the difference business data determining module is configured to determine difference business data according to the business operation request;
and the difference service data synchronization module is configured to synchronize the difference service data to the login terminal as incremental data.
It should be noted that the components in the device claims should be understood as functional blocks which are necessary to implement the steps of the program flow or the steps of the method, and each functional block is not actually defined by functional division or separation. The device claims defined by such a set of functional modules are to be understood as a functional module framework for implementing the solution mainly by means of a computer program as described in the specification, and not as a physical device for implementing the solution mainly by means of hardware.
An embodiment of the present application further provides a computing device, which includes a memory, a processor, and computer instructions stored in the memory and executable on the processor, and the processor implements the steps of the data processing method when executing the instructions.
An embodiment of the present application further provides a computer readable storage medium, which stores computer instructions, and the instructions, when executed by a processor, implement the steps of the data processing method as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the data processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the data processing method.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (13)

1. A data processing method, comprising:
receiving a login request sent by a login terminal, wherein the login request comprises a login account and first identification information of the login terminal;
inquiring the full mirror image data which is stored in a mirror image warehouse and is associated with the login account, and acquiring the terminal service data which is stored by the login terminal and is associated with the login account according to the first identification information;
verifying whether the total mirror image data is consistent with the terminal service data;
and under the condition that the verification result is inconsistent, synchronizing the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.
2. The data processing method according to claim 1, wherein before receiving the login request sent by the login terminal, the method further comprises:
and acquiring and storing incremental service data which is generated in an offline state and is associated with the login account.
3. The data processing method of claim 2, wherein the synchronizing the full volume mirrored data to the login terminal to overlay the terminal traffic data with the full volume mirrored data comprises:
pushing the incremental business data serving as a mirror image to be stored to the mirror image warehouse so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and generate updated full mirror image data;
and synchronizing the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.
4. The data processing method of claim 2, further comprising:
and under the condition that the verification result is consistent, pushing the incremental business data serving as the mirror image to be stored to the mirror image warehouse, and synchronizing the incremental business data to the login terminal.
5. The data processing method according to claim 1, wherein before receiving the login request sent by the login terminal, the method further comprises:
acquiring incremental business data which are generated in an offline state and are associated with the login account, and adding a timestamp to the incremental business data;
and pushing the incremental business data and the timestamp as a mirror image to be stored to the mirror image warehouse, so as to update the full mirror image data stored in the mirror image warehouse based on the incremental business data and the timestamp, and generate updated full mirror image data.
6. The data processing method of claim 5, wherein querying the full amount of mirrored data stored in the mirrored repository in association with the login account comprises:
acquiring time information corresponding to the last log-out of the login account;
determining a target timestamp according to the time information, and inquiring mirror image data corresponding to the target timestamp stored in a mirror image warehouse;
correspondingly, the verifying whether the full volume mirror image data is consistent with the terminal service data includes:
and verifying whether the mirror image data is consistent with the terminal service data.
7. The data processing method of claim 6, wherein the synchronizing the full volume mirrored data to the login terminal to overlay the terminal traffic data with the full volume mirrored data comprises:
and synchronizing the updated full mirror image data to the login terminal so as to use the updated full mirror image data to cover the terminal service data.
8. The data processing method of claim 6, further comprising:
and synchronizing the incremental business data to the login terminal under the condition that the verification results are consistent.
9. The data processing method according to claim 1, further comprising, after receiving the login request sent by the login terminal:
inquiring second identification information of a login terminal used by the last login of the login account;
verifying whether the first identification information is consistent with the second identification information;
and under the condition that the verification result is inconsistent, inquiring the full mirror image data which is stored in a mirror image warehouse and is associated with the login account, and synchronizing the full mirror image data to the login terminal so as to use the full mirror image data to cover the terminal service data.
10. The data processing method of claim 1, further comprising:
receiving a business operation request submitted by a user through the login terminal;
determining difference service data according to the service operation request;
and synchronizing the difference service data serving as incremental data to the login terminal.
11. A data processing apparatus, comprising:
the system comprises a receiving module, a login module and a display module, wherein the receiving module is configured to receive a login request sent by a login terminal, and the login request comprises a login account and first identification information of the login terminal;
the query module is configured to query full mirror image data which are stored in a mirror image warehouse and are associated with the login account, and acquire terminal service data which are stored by the login terminal and are associated with the login account according to the first identification information;
the verification module is configured to verify whether the full mirror image data is consistent with the terminal service data;
and the synchronization module is configured to synchronize the full amount of mirror image data to the login terminal under the condition that the verification result is inconsistent, so that the full amount of mirror image data is used for covering the terminal service data.
12. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-10 when executing the instructions.
13. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 10.
CN202011561678.9A 2020-12-25 2020-12-25 Data processing method and device Pending CN112642146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011561678.9A CN112642146A (en) 2020-12-25 2020-12-25 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011561678.9A CN112642146A (en) 2020-12-25 2020-12-25 Data processing method and device

Publications (1)

Publication Number Publication Date
CN112642146A true CN112642146A (en) 2021-04-13

Family

ID=75362978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011561678.9A Pending CN112642146A (en) 2020-12-25 2020-12-25 Data processing method and device

Country Status (1)

Country Link
CN (1) CN112642146A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113209635A (en) * 2021-05-11 2021-08-06 腾讯科技(上海)有限公司 Data processing method and device based on cache queue and storage medium
CN114374555A (en) * 2021-12-31 2022-04-19 广州趣丸网络科技有限公司 Real-time interaction method and device based on anonymous message
CN116392805A (en) * 2023-06-09 2023-07-07 合肥中鸿嘉睿信息科技有限公司 Data storage method and system for online game in offline state

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202440A (en) * 2014-09-02 2014-12-10 腾讯科技(深圳)有限公司 Method for identifying terminal, server and system
CN108156003A (en) * 2016-12-02 2018-06-12 中国移动通信有限公司研究院 A kind of application upgrade method and terminal, server, system
CN111773730A (en) * 2020-07-03 2020-10-16 珠海金山网络游戏科技有限公司 Data processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202440A (en) * 2014-09-02 2014-12-10 腾讯科技(深圳)有限公司 Method for identifying terminal, server and system
CN108156003A (en) * 2016-12-02 2018-06-12 中国移动通信有限公司研究院 A kind of application upgrade method and terminal, server, system
CN111773730A (en) * 2020-07-03 2020-10-16 珠海金山网络游戏科技有限公司 Data processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马国华: "《监控组态软件及其应用》", 31 August 2001 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113209635A (en) * 2021-05-11 2021-08-06 腾讯科技(上海)有限公司 Data processing method and device based on cache queue and storage medium
CN113209635B (en) * 2021-05-11 2024-04-19 腾讯科技(上海)有限公司 Data processing method, device and storage medium based on cache queue
CN114374555A (en) * 2021-12-31 2022-04-19 广州趣丸网络科技有限公司 Real-time interaction method and device based on anonymous message
CN114374555B (en) * 2021-12-31 2024-06-07 广州趣丸网络科技有限公司 Real-time interaction method and device based on anonymous message
CN116392805A (en) * 2023-06-09 2023-07-07 合肥中鸿嘉睿信息科技有限公司 Data storage method and system for online game in offline state

Similar Documents

Publication Publication Date Title
CN112642146A (en) Data processing method and device
CN103825950B (en) A kind of method and system based on the synchronous contact person of cloud platform
EP2783501B1 (en) Contact information synchronization system and method
EP2766869A1 (en) Automatically aggregating contact information
CN105978948A (en) Cloud service method and system thereof
CN111985857A (en) Auditing method and device
US20170187800A1 (en) File synchronization method, electronic device
WO2020042823A1 (en) Binding and migration method and apparatus, computing device, and storage medium
CN114629867A (en) On-line inquiry instant communication system and message processing method
CN108600076A (en) A kind of social networks method for building up and system
CN113297236A (en) Method, device and system for electing main node in distributed consistency system
CN113297229A (en) Method for routing read request and feedback message, respective device and database
CN116450595A (en) Document consistency verification method and system
CN112637351B (en) File downloading method and device
CN112206540B (en) Data processing method and device
CN112597419A (en) Data synchronization method and device
CN110837476A (en) Application program testing method and device
CN114900478B (en) Resource processing system and method
WO2016150220A1 (en) Method for updating nuisance contact information, terminal device, server and system
CN112221119A (en) Game prop processing system, method and device
CN112990979B (en) Data processing method and device
CN114676145A (en) Data processing method and data collation system
CN114527944A (en) Resource file processing method and device
CN112671913B (en) Service registration method and device
CN113239055A (en) Target object verification method and device based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Address before: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20210413

RJ01 Rejection of invention patent application after publication