Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-08-2021 03:54 AM
I'm trying to update Neo4J support for the Apache NiFi graph bundle and can't find much on Google about how to configure the 4.X client to do load balancing. If someone could point me to documentation that covers the changes from the previous v1 Neo4J API, I'd appreciate it.
08-09-2021 02:17 AM
Hi, I believe it's partly covered in Client applications - Neo4j Java Driver Manual.
08-09-2021 07:31 AM
Thanks. I'm looking for any sort of documentation that says what to do about this class. Our Neo4J 3.X and earlier code uses a block of code that looks like this:
String loadBalancingStrategyValue = context.getProperty(LOAD_BALANCING_STRATEGY).getValue();
if ( ! StringUtils.isBlank(loadBalancingStrategyValue) ) {
configBuilder = configBuilder.withLoadBalancingStrategy(
Config.LoadBalancingStrategy.valueOf(loadBalancingStrategyValue));
}
What I need to know is if that load-balancing strategy configuration has something analogous in terms of being manually-specified in the 4.X drivers or if the load-balancing behavior is now just implied by the connection string that is provided.
08-09-2021 09:04 AM
My Java colleagues told me this API has been removed 2 years ago, and this is not configurable anymore.
08-09-2021 11:44 AM
Good to know. Thanks!
All the sessions of the conference are now available online