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

Method and system for read-write splitting database

A read-write separation and database technology, applied in the field of network communication, can solve problems such as poor transaction support, transaction interference, and complex coding

Inactive Publication Date: 2012-08-01
杭州闪亮科技有限公司
View PDF2 Cites 68 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantages of this scheme are: 1) The transaction support is poor, because the phenomenon of transaction interference will occur when the write operation is performed on the agent side, if you want to support the transaction, you must use at least two connection pools on the business logic side, and one connection pool is responsible for The end reads data, and another connection pool is responsible for directly writing data on the database, which is very complicated in the coding process; 2) It must be implemented between the same database software, such as only MySQL and the same version Read and write separation can only be done between software, poor compatibility

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
  • Method and system for read-write splitting database
  • Method and system for read-write splitting database
  • Method and system for read-write splitting database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The implementation of the present invention is described below through specific examples and in conjunction with the accompanying drawings, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific examples, and various modifications and changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention.

[0033] figure 2 It is a system architecture diagram of a read-write separation database system in the present invention. Such as figure 1 As shown, a system for reading and writing separate databases in the present invention includes at least: an application server layer 110 , a database access interface 111 , a database agent layer 112 and a database layer 113 .

[0034] Among them, 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 discloses a method and a system for a read-write splitting database. The system comprises an application server layer, a database access interface layer, a database agent layer and a database layer. The database agent layer is arranged between the database access interface layer and the database layer to conduct data communication, switch data sources and provide route service, data definition language (DDL) statement analysis, database state monitoring, high availability, data source switching and transaction control service. The method and the system achieve the aim that read-write splitting can be conducted between any database software and versions by conducting read-write splitting on a business layer.

Description

technical field [0001] The invention relates to the field of network communication, in particular to a method and system for separating read and write databases. Background technique [0002] With the development of the Internet, the business of each website continues to expand, the data continues to increase, the pressure on the database is increasing, and the reading and writing mechanism of the database is becoming more and more important. pressure. [0003] The basic principle of Read / Write Splitting in the traditional sense is to let the master database (master) handle transactional queries, while the slave database (slave) handles SELECT queries, and database replication is used to Changes are synchronized to the slave database in the cluster. For websites with a large number of visits, read-write separation is generally used. For example, the read-write ratio of eBay is 260:1. [0004] figure 1 It is a schematic diagram of the traditional MySQL read-write separatio...

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
IPC IPC(8): G06F17/30
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