Skip to content

Refactor Pool to Reduce Nested Locking #205

@Shourya742

Description

@Shourya742

In our current Pool implementation, we rely heavily on nested locking. While this is functionally correct and provides the necessary atomic guarantees, it does not scale well under very high-throughput workloads. In such scenarios, contention increases significantly, along with the risk of lock poisoning. We recently migrated part of the tproxy implementation to use DashMap (a concurrent hash map), and the performance improvement was substantial.

Going forward, we should refactor the Pool to adopt more appropriate concurrent data structures and reduce our dependence on deeply nested locks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress 🏗️

Status

In Progress 🏗️

Relationships

None yet

Development

No branches or pull requests

Issue actions