Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fl/connection pool #97

Merged
merged 4 commits into from
Oct 18, 2022
Merged

Fl/connection pool #97

merged 4 commits into from
Oct 18, 2022

Conversation

lemaitre-aneo
Copy link
Contributor

Use a connection pool and remove the mutex in order to fix some "Go Away" errors while improving performance.

@lemaitre-aneo lemaitre-aneo added the enhancement New feature or request label Oct 7, 2022
@lemaitre-aneo lemaitre-aneo self-assigned this Oct 7, 2022
@lemaitre-aneo
Copy link
Contributor Author

This continues to fix the GoAway issue. Preliminary tests show a 20% improvements on performance compared to the mutex.

Copy link
Contributor

@ddubuc ddubuc left a comment

Choose a reason for hiding this comment

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

Except Log verbosity and function renaming, it's ok

}

channel = channelFactory_();
logger_?.LogInformation("Created and acquired new channel {channel} from pool",
Copy link
Contributor

Choose a reason for hiding this comment

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

LogDebug rather than LogInformation ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Those events should be really rare as they happen only when the pool is empty. I think it is useful to have the log at the information level.

@aneojgurhem aneojgurhem merged commit 071f392 into next Oct 18, 2022
@aneojgurhem aneojgurhem deleted the fl/connection-pool branch October 18, 2022 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection Pool
3 participants