Skip to content

Reduce number of ROUTE requests when routing table is stale #1119

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

Merged

Conversation

bigmontz
Copy link
Contributor

@bigmontz bigmontz commented Aug 1, 2023

The driver was starting a rediscovery process of each acquireConnection causing more load than needed in the cluster. Keeping track of the ongoing requests and use it when possible reduces the load in the process and speeds up the connection acquisition.

The driver was starting a rediscovery process of each `acquireConnection` causing more load than needed in the cluster.
Keeping track of the ongoing requests and use it when possible reduces the load in the process and speeds up the connection acquisition.
Co-authored-by: Robsdedude <dev@rouvenbauer.de>
Copy link
Member

@robsdedude robsdedude left a comment

Choose a reason for hiding this comment

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

💾

@bigmontz bigmontz merged commit a6a2fda into neo4j:5.0 Aug 3, 2023
@bigmontz bigmontz deleted the 5.x-fix-spamming-routing-table-requests branch August 3, 2023 11:29
bigmontz added a commit to bigmontz/neo4j-javascript-driver that referenced this pull request Aug 3, 2023
…1119)

The driver was starting a rediscovery process of each acquireConnection causing more load than needed in the cluster. Keeping track of the ongoing requests and use it when possible reduces the load in the process and speeds up the connection acquisition.

Co-authored-by: Robsdedude <dev@rouvenbauer.de>
bigmontz added a commit to bigmontz/neo4j-javascript-driver that referenced this pull request Aug 3, 2023
…1119)

The driver was starting a rediscovery process of each acquireConnection causing more load than needed in the cluster. Keeping track of the ongoing requests and use it when possible reduces the load in the process and speeds up the connection acquisition.

Co-authored-by: Robsdedude <dev@rouvenbauer.de>
bigmontz added a commit that referenced this pull request Aug 4, 2023
The driver was starting a rediscovery process of each acquireConnection causing more load than needed in the cluster. Keeping track of the ongoing requests and use it when possible reduces the load in the process and speeds up the connection acquisition.

Co-authored-by: Robsdedude <dev@rouvenbauer.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants