java - connecting to neo4j HA Cluster -


what proper way connecting neo4j ha cluster using neo4j-ogm , allowing high availability , reads scale-out?

i have seen few solutions involves haproxy.

the first 1 neo4j ogm-manual shows how configure haproxy transfer connections current master. solution allowing high availability, disallowing scale-out reads.

the second 1 stefan armbruster blog "neo4j , haproxy: best practices , tricks" configuring haproxy routing reads operations whole cluster , write operations master server.

i have few problems stefan solution:

  1. i cannot use bolt protocol, must use http driver.
  2. i'm going use transactions of queries, , i'm afraid cause issues because according neo4j developer manual:

    open transactions not shared among members of ha cluster. therefore, if use endpoint in ha cluster, must ensure requests given transaction sent same neo4j instance.

at moment, neo4j ogm not distinguish between reads , writes , hence unable decide whether send read request slave example. feature on roadmap, now, safest direct transactions master.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -