Skip to content

Conversation

@JojiiOfficial
Copy link
Contributor

@JojiiOfficial JojiiOfficial commented Sep 3, 2025

Implements connection pooling. We now use 3 connections by default.

Todo

  • Implementation
  • Deciding on default values
  • Undraft

@JojiiOfficial JojiiOfficial changed the title [WIP] Connection pooling Connection pooling Sep 5, 2025
@JojiiOfficial JojiiOfficial marked this pull request as ready for review September 5, 2025 08:31
Copy link
Member

@timvisee timvisee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

I changed the way we track what (round robin) channel to use next, replacing the mutex with an atomic integer.

@timvisee timvisee merged commit 46f6cdb into dev Nov 12, 2025
2 checks passed
timvisee added a commit that referenced this pull request Nov 12, 2025
* Add support for connection pooling

* Optimizations

* Update comments

* Add config setter

* Specify how to disable connection pools

* Fix pooling-enabled check

* Set default pool size to 3

* Use atomic integer for selecting channels in round robin way

---------

Co-authored-by: timvisee <tim@visee.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants