Unlock instant, AI-driven research and patent intelligence for your innovation.

Data gateway method and system based on distributed database

A data gateway and database technology, applied in the field of data gateways, can solve the problems of data load, processing, and load balancing software that cannot be perceived, and achieve the effect of speeding up and improving availability.

Pending Publication Date: 2022-03-04
上海沄熹科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the switch will require the client to re-establish the connection, and the data cannot be directly loaded to other database nodes. This requires the client to reconnect, which increases the processing difficulty of the client.
And the traditional load balancing software is based on the connection layer for load balancing, the load is the database connection, when the database connection is created according to the load balancing calculation result, the channel through which the data flows has been fixed, that is to say, the client All request data on the client side will be transmitted through this existing connection, and the database node receiving the request data is responsible for parsing the request data and generating scheduled tasks, which does not fully utilize the distributed database capabilities, because all the connections in a client The requested data is finally calculated on a database node. When the pressure is too high, the processing of this database node will be slow
In addition, the load balancing algorithm of traditional load balancing software is a relatively fixed algorithm and will not be adjusted according to the actual load pressure on the backend. When the pressure on a node is too high, the load balancing software cannot perceive it, or because of connection-based Load, there is no way to load data to other nodes for processing

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 gateway method and system based on distributed database
  • Data gateway method and system based on distributed database
  • Data gateway method and system based on distributed database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] A data gateway method based on a distributed database, the specific steps of the method are as follows:

[0044] S1 establishes connections between the client and all database nodes of the back-end distributed database;

[0045] The S2 data gateway analyzes the SQL request data sent by the client to the database protocol;

[0046] S3 combines the parsed SQL request data with the working status of each node of the back-end distributed database for load balancing calculation, and splits the SQL request data;

[0047] S4 distributes the SQL request data to the corresponding database nodes for processing according to the calculation result of load balancing, and obtains the response data;

[0048] S5 aggregates and sorts the response data according to the original distribution order, and returns it to the client;

[0049]The solution of the present invention performs database protocol analysis and SQL analysis on the request data of the client, analyzes the content of the...

Embodiment 2

[0065] A data gateway system based on a distributed database, the system specifically includes a node connection module, a protocol analysis module, a load calculation module, a data distribution module and a response return module:

[0066] Node connection module: establish connections between the client and all database nodes of the back-end distributed database;

[0067] Protocol analysis module: the data gateway analyzes the SQL request data sent by the client to the database protocol;

[0068] Load calculation module: combine the parsed SQL request data with the working status of each node of the back-end distributed database for load balancing calculation, and split the SQL request data;

[0069] Data distribution module: distribute the SQL request data to the corresponding database nodes for processing according to the calculation results of load balancing, and obtain the response data;

[0070] Response return module: aggregate and sort the response data according to ...

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 data gateway method and system based on a distributed database, and belongs to the field of distributed database systems. The method comprises the following specific steps: S1, establishing connection between a client and all database nodes of a back-end distributed database; s2, the data gateway carries out database protocol analysis on the SQL request data sent by the client; s3, combining the analyzed SQL request data with the working state of each node of the back-end distributed database to carry out load balancing calculation, and splitting the SQL request data; s4, distributing the SQL request data to corresponding database nodes for processing according to a calculation result of load balancing to obtain response data; s5, aggregating and sorting the response data according to the original distribution sequence, and returning the response data to the client; and when a fault occurs in a database node, the fault node is ignored by load balancing calculation, and request data is distributed to the normally working node, so that the client does not perceive the fault of the database.

Description

technical field [0001] The invention discloses a distributed database-based data gateway method and system, and relates to the technical field of distributed database systems. Background technique [0002] In a general peer-to-peer distributed database with Shared Nothing architecture, each node can work as an independent working node, and the client can connect to any node to access the database. When a node fails and cannot work, the client can Switch to another node to access the database, but the switch needs to be processed by the client. The database is not responsible for disaster recovery and fault migration functions, and the distributed database does not provide a unified access entry, so the client is required to achieve high availability. Increased user difficulty. If you use load balancing software, although you can provide a unified access portal, when a database node fails and cannot work, it will switch to other database nodes to work. However, the switchin...

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): H04L67/1001H04L67/141G06F16/27
CPCH04L67/141G06F16/27
Inventor 王皓王瀚墨周恒
Owner 上海沄熹科技有限公司
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