neo4j / neo4j-javascript-driver

Neo4j Bolt driver for JavaScript
https://neo4j.com/docs/javascript-manual/current/
Apache License 2.0
839 stars 148 forks source link

Reduce number of `ROUTE` requests when routing table is stale (#1119) #1121

Closed bigmontz closed 11 months ago

bigmontz commented 11 months ago

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.

Backports #1119