My question is regarding scaling, speed and what is the best way to use Neo4j Backend with Java.
There are currently 2 options which I have used myself and both seem good enough but I do not know how much would it scale.
Java OGM connected to Neo4j Database using Spring. Here I write Cypher queries and use the results. Here I really have to know what I am getting as output from Cypher queries and then I design the output. Paths become hard to parse.
Neo4j Java Embedded api where we can use Node, Relationships, Path. Here I can use GraphAlgoFactory which seems like a positive. Also I have more control over the output than the first approach. Nonetheless here I can also use all methods provided by GraphAlgoFactory directly. But I believe all these methods are also available directly via cypher using using apoc
I have gone through this question1 and question2 which is 3 years old which gives me an idea but a lot has changed ever since.
- OGM connected to Neo4j
- Neo4j Java Embedded api