Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Strong consistency read method of data, and terminal equipment

A consistency and data technology, applied in the computer field, can solve the problem that the data management mechanism cannot meet the needs of strong consistency, and achieve the effect of increasing resource sales revenue, ensuring strong consistency, and avoiding losses

Active Publication Date: 2018-12-07
深圳市远行科技股份有限公司
View PDF12 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of this, the embodiment of the present invention provides a method and terminal device for reading data with strong consistency, so as to solve the problem of data management only relying on the cloud object storage service itself for some enterprises that need to provide strong consistency. The mechanism cannot meet the needs of strong consistency

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
  • Strong consistency read method of data, and terminal equipment
  • Strong consistency read method of data, and terminal equipment
  • Strong consistency read method of data, and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

[0039] In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

[0040] see figure 1 , figure 1 It is a schematic flowchart of a method for reading data with strong consistency provided by an embodiment of the present invention. In this embodiment, the angle triggering of a terminal is used as an example for illustration. Here, the...

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 is suitable for the technical field of the computer, and provides a strong consistency read method of data, and terminal equipment. The method comprises the following steps: determininga data block from which data is to be read according to an IO request, redirecting a read operation to the local cache; if the data block is existent in the local cache, adding read locking; if a datastate in the data block is a first preset state, reading a MD5 value from the local cache; redirecting the read operation to an object storage unit; comparing the MD5 value with the MD5 value in theobject storage unit, if the MD5 value and the MD5 value are different, reading the data from the object storage unit, updating the data in the data block, setting the data state as the second preset stage, and updating the MD5 value in the local cache, removing the read locking, and ensuring the data strong consistency in the cache by adding a read lock; guaranteeing that the data in the cache isconsistent with the data in the object stage when being used as the first time through the MD5 value checking. The object storage service can be applied to an application with high data consistency requirement.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a method for reading data with strong consistency and a terminal device. Background technique [0002] With the rapid development of cloud computing technology and the advent of the era of big data, distributed object storage services featuring safety and reliability, flexible capacity expansion, ease of use, high performance, and low cost have been widely used in enterprise application systems. In order to enhance user experience, current object storage service providers implement high availability of the system and eventual consistency of data through asynchronous replication of multiple copies of data, ensuring the consistency perceived by users. However, for some enterprises that need to provide strong consistency (such as the medical field, financial field, etc.), relying solely on the data management mechanism of the cloud object storage service cannot meet th...

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): G06F17/30G06F9/52
CPCG06F9/52
Inventor 邹海锋
Owner 深圳市远行科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products