Tenant-Aware Connection Pooling for Multi-Tenant Database Scaling

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Multi-tenant database architectures face challenges in managing connection pools efficiently, leading to performance bottlenecks and data security risks due to dynamic scaling of replicas in pods, which require significant computing and networking resources.

Innovation Solution

A tenant-aware proxy system that intelligently manages connection pooling by detecting tenant information, multiplexing requests, and using adaptive and predictive pooling strategies to optimize database connections, reducing the burden on the database server and enhancing throughput.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If separate connection pools are maintained for each tenant to ensure data isolation and security, then data security and isolation are improved, but device complexity and resource overhead increase significantly

Engineering Contradiction:
Improvedata securityVSAvoidconnection pool management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

A proxy server is introduced as an intermediary layer between applications and the database. The proxy manages connection pools centrally, assigning connections to tenants based on incoming request analysis. This eliminates the need for each application to maintain separate connection pools while preserving data isolation through tenant-aware connection assignment.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The proxy server implements a universal connection pool that serves multiple tenants simultaneously. Instead of creating dedicated connection pools for each tenant, the system uses a single shared pool managed by the proxy, which dynamically assigns connections based on tenant identification from incoming requests, reducing overall system complexity.

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

2Speed

If connection pools are pre-established to eliminate repeated setup overhead, then connection establishment speed is improved, but adaptability to dynamic scaling requirements deteriorates

Engineering Contradiction:
Improveconnection establishment speedVSAvoidadaptability to dynamic scaling
Core Design Contradiction:
SpeedVSAdaptability or versatility

Solution Approach 1:

The connection pool configuration is made dynamic through the proxy server, which adjusts the number and distribution of connections based on real-time tenant demand. When replicas scale dynamically, the proxy detects changes and redistributes connections accordingly, maintaining optimal performance without requiring fixed pre-established pools.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system implements feedback mechanisms where the proxy monitors tenant traffic patterns and connection utilization. Based on this feedback, the proxy dynamically adjusts connection allocation, creating or closing connections as needed to match current demand while maintaining the benefits of connection pooling.

Inventive Principle:
Principle #23Feedback

3Productivity

If the number of database connections is increased to handle high-traffic scenarios, then throughput and performance are improved, but resource consumption and setup overhead increase

Engineering Contradiction:
Improvedatabase throughputVSAvoidnumber of database connections
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

Multiple tenants share a common connection pool managed by the proxy server, rather than each tenant having dedicated connections. This consolidation reduces the total number of connections required while maintaining high throughput, as connections can be reused across different tenants based on demand.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The system dynamically changes connection parameters such as pool size and assignment policies based on traffic conditions. During high-traffic periods, the proxy increases connection utilization; during low-traffic periods, it reduces active connections, optimizing resource usage while maintaining productivity when needed.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20260059016A1Adaptive connection pooling for multi-tenant applications
Publication Date: 2026.02.26 MICRO FOCUS LLC
  • US20260059016A1 patent drawing
  • US20260059016A1 patent drawing
  • US20260059016A1 patent drawing

AI summary

Communication connections with databases, such as when deployed as a database layer of a system architecture, are resource intensive to establish, take down, and maintain. However, from the applications' perspective, deployed in a business logic layer, more database connections result in less delay interacting with the databases. In order to optimize system resources, systems and methods are disclosed that create an optimized number of database connections and/or application connections, that are then maintained and shared by the applications via a proxy intercepting the communications and forwarding the communications to the database via the optimized number of pooled database connections. The connections may be multiplex so that simultaneous communications may be hosted concurrently.