Database Connection Agent Multiplexing for Scalability

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In large-scale database systems, the limited number of database connections restricts the linear scalability of applications, leading to inefficient resource utilization and performance bottlenecks, especially as applications access multiple types of databases and partition nodes simultaneously.

Innovation Solution

A database access control method and apparatus that manages connections through a data access layer, allowing applications to establish high-speed direct connections or use connection agents based on access speed requirements and load thresholds, optimizing the use of database connections and improving scalability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If the quantity of database connections is increased to support more applications, then the scalability of applications is improved, but the response speed of the database deteriorates and performance bottlenecks occur

Engineering Contradiction:
Improvescalability of applicationsVSAvoidresponse speed of database
Core Design Contradiction:
Adaptability or versatilityVSSpeed

Solution Approach 1:

A connection agent is introduced as an intermediary component between applications and databases. The connection agent manages and multiplexes database connections, allowing multiple applications to share a limited number of connections. This mediator enables application scaling without requiring proportional increases in database connections, thus maintaining database response speed while supporting increased application quantity.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If each application occupies a dedicated database connection, then the reliability of connection is improved, but the resource utilization of database connections deteriorates

Engineering Contradiction:
Improveconnection reliabilityVSAvoidwaste of connection resources
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

Multiple application connections are merged and multiplexed through a single connection agent to access the database. Instead of each application having a dedicated connection, the connection agent combines multiple connection requests and manages a pooled set of database connections. This merging approach maintains reliable connectivity for all applications while significantly improving resource utilization by allowing connections to be shared and reused across multiple applications.

Inventive Principle:
Principle #5Merging (Combining)

3Speed

If the quantity of database connections is limited to ensure performance, then the response speed is improved, but the scalability of applications deteriorates

Engineering Contradiction:
Improveresponse speed of databaseVSAvoidscalability of applications
Core Design Contradiction:
SpeedVSAdaptability or versatility

Solution Approach 1:

The connection agent serves as a mediator that decouples the relationship between application quantity and database connection quantity. By introducing this intermediary layer, the system can maintain a limited number of database connections to ensure performance while the connection agent enables scalable application support through connection multiplexing and sharing mechanisms.

Inventive Principle:
Principle #24Intermediary (Mediator)

4Adaptability or versatility

If multiple types of databases are accessed simultaneously to support complex services, then the adaptability of the system is improved, but the complexity of connection management deteriorates

Engineering Contradiction:
Improveadaptability to multiple database typesVSAvoidcomplexity of connection management
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The connection agent is designed with multi-functionality to handle multiple types of databases (relational, in-memory, NoSQL) through a unified interface. This universal connection management approach allows the system to access diverse database types while the connection agent abstracts and simplifies the underlying connection complexity, providing consistent connection pooling and multiplexing capabilities across different database technologies.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentEP3343426B1Database access control method and apparatus
Publication Date: 2020.07.29 HUAWEI TECH CO LTD
  • EP3343426B1 patent drawingFigure 1
  • EP3343426B1 patent drawingFigure 2
  • EP3343426B1 patent drawingFigure 3~4

AI summary

A database access control method and apparatus are disclosed. The method is applied to a database system. The database system has at least two databases, and the at least two databases include a first database and a second database. A database connection is established between an application and the first database. The method includes: receiving, by a data access layer, an access request from the application, and determining that a target database to which the access request is sent is the second database; and establishing, by the data access layer, a database connection between a connection agent and the second database, and sending the access request to the second database by using the connection agent; or determining, by the data access layer, that a target database to which the access request is sent is the first database; and sending, by the data access layer, the access request to the first database by using the database connection between the application and the first database. Linear scale-out of database applications can be implemented, and database connection resources can be saved.