Check patentability & draft patents in minutes with Patsnap Eureka AI!

Data synchronization method and device

A data synchronization and data technology, applied in the direction of database update, digital data processing, structured data retrieval, etc., can solve the problems of inconsistency between cache and database data, poor user experience, etc.

Pending Publication Date: 2022-01-28
HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above-mentioned problems, this application provides a data synchronization method and device, through the asynchronous serialization of database and cache update and read operations, to solve the problem caused by the inconsistency of cache and database data in high concurrency scenarios. The problem of poor experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data synchronization method and device
  • Data synchronization method and device
  • Data synchronization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0048] Please see attached figure 1 , is a schematic flowchart of a data synchronization method provided in the embodiment of the present application. Such as figure 1 As shown, the embodiment of the present application provides a data synchronization method, deploying request routing of multiple service instances on the application server, the method includes the following steps:

[0049] S101: Receive a data request sent by a user, where the data request is a data read request o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a data synchronization method and device, and the method comprises the steps: deploying a request route of multiple service instances in an application server, and receiving a data request (a data reading request or a data updating request) sent by a user; if the request is a data reading request, generating a first queue (a queue from a task for refreshing a cache to a task for refreshing the cache); acquiring corresponding data from the cache according to a first preset rule, acquiring corresponding data from the database when the data in the cache is expired or cleared, and asynchronously storing the corresponding data in the cache; if the request is a data updating request, generating a second queue (routing the request for updating the database to a queue for updating the database); and performing data synchronization on the data in the cache and the database according to a second preset rule. On the premise that new middleware is not introduced, through asynchronous serialization of database and cache updating and reading operation, the problem of poor user experience caused by inconsistency of cache and database data in a high-concurrency scene is solved.

Description

technical field [0001] The present application relates to the technical field of Internet data processing, and in particular, to a data synchronization method and device. Background technique [0002] With the continuous growth of Internet users, the performance bottleneck of relational databases is highlighted. Therefore, caching has become an important middleware to break through this problem. But the cache is mostly based on memory, and memory is expensive. Therefore, it is impossible to store the data of the entire database in the cache. When the database changes and synchronizes to the cache, first modify the database and then update the cache. If the update cache fails , then there will be new data in the database and old data in the cache, which will easily cause inconsistency between the cache and the database data, affect the user experience and even cause property losses to the company. [0003] In order to avoid the inconsistency between the cache and database da...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/2455G06F16/27G06F16/23G06F16/172
CPCG06F16/24552G06F16/275G06F16/172G06F16/2365
Inventor 张超彭一易桂
Owner HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More