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

Data writing and reading method and device

A technology of data writing and data reading, applied in the field of financial technology, which can solve the problems of client impact, the inability of standby clusters to provide services, and huge synchronization costs.

Pending Publication Date: 2021-08-31
WEBANK (CHINA)
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, under this technical scheme of asynchronous replication of active and standby clusters, if users write frequently and have a huge amount of data, asynchronous replication across clusters will cause huge synchronization costs, such as very high bandwidth requirements
When there is high latency in asynchronous replication, once the main cluster goes down, the standby cluster will not be able to provide services for a long time, which will have a great impact on the client; in addition, this technical solution has requirements for the versions of the main and standby clusters. Generally, it is mandatory that the relevant storage engine versions of the primary cluster and the standby cluster must be the same, otherwise it is likely to cause the primary cluster to copy the synchronized data, and the standby cluster cannot parse normally; further, once an exception occurs in the primary cluster, the user will switch to the standby cluster , at this time, the standby cluster provides services as the primary cluster. After the original primary cluster recovers, a manual switchback is required to initiate asynchronous data replication and synchronization from the new primary cluster (original standby cluster) to the new standby cluster (original primary cluster), resulting in Huge operation and maintenance costs

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 writing and reading method and device
  • Data writing and reading method and device
  • Data writing and reading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the purpose, technical solution and advantages of the application clearer, the application will be further described in detail below in conjunction with the accompanying drawings. 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.

[0047] like figure 1 As shown, it is a schematic diagram of a system architecture provided by the embodiment of the present application. The system includes a client 110, a data read-write server 111 and at least two databases, such as figure 1 As shown, it is assumed that a database 112 and a database 113 are included.

[0048] Wherein, the client 110 may be a terminal device such as a smart phone, a computer, or an iPad, or an application program or a component that...

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 relates to the field of finance science and technology, and discloses a data writing and reading method and a device, and the method comprises the steps: carrying out the grammar analysis of a received copying request of first data, and determining an abstract syntax tree, wherein the abstract syntax tree comprises N first write task nodes; for each first write task node, determining a written first database and a corresponding converter; converting the first write task node into a first write task node in an execution tree of the copying request through a converter; when N first write task nodes of the execution tree are executed, sending N first write tasks to N first databases respectively; wherein the first writing task is used for writing the first data into the corresponding first database. Through the mode, the corresponding first writing task can be generated for the first data in any business scene, the dependence on the storage engine of the first database corresponding to each first writing task is reduced, and the efficiency and the flexibility of synchronous copying of different business data are improved.

Description

technical field [0001] The embodiments of the present application relate to the field of financial technology (Fintech), and in particular, to a data writing and reading method and device. Background technique [0002] With the development of computer technology, more and more technologies (such as big data, cloud computing or blockchain) are applied in the financial field, and the traditional financial industry is gradually transforming into financial technology. In the context of big data technology, it is necessary to Store massive data based on the database. [0003] In order to ensure the high availability of data, one way is to write to the primary cluster and then synchronize the data of the primary cluster to the standby cluster through asynchronous replication to achieve the final consistency of data. However, under this technical scheme of asynchronous replication of active and standby clusters, if users write frequently and have a huge amount of data, asynchronou...

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/22G06F16/25G06F16/27
CPCG06F16/22G06F16/258G06F16/273
Inventor 尹强王和平黄山杨峙岳刘有杨永坤华德义白乐徐嘉杨饶进阳邸帅卢道和
Owner WEBANK (CHINA)
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