Use neo4j server instead of native mode

I am working on a webapp running on Tomcat that uses spring-data to connect to neo4j graphics in native mode. I would like to use the neo4j server instead of the built-in mode, and I am looking for some help to be sure how to do this. Some of my applications are very complex and combine the result of several cypher dto requests sent back to the user in one transaction.

At first, I thought that I needed to create an unmanaged server extension, and I think I should follow these steps. - Store my webapp with springMVC and spring function to store and protect user sessions. - Regroup all my transactional services in a specific bank my-app.jar - Use Jax-RS to add a REST access point for each of my my-app.jar services - use something like spring restTemplate from my spring controller to call services from my-app.jar

First question: is this way of doing things a good way? Second question: I have many spring injections at the level of my services. How can I make them work (how can I add dependencies to the server extension?

Then I discovered GraphAware, and I wonder if it should be used instead.

And finally, I just read this post http://jexp.de/blog/2014/12/spring-data-neo4j-improving-remoting-performance/ , and it seems like I should use SpringCypherRestGraphDatabase (as explained in bold in end of article).

Well, I got a little lost and I would appreciate any help using the neo4j server instead of the native mode for my application, which contains some complex transactions.

+2
source share
2 answers

You have several options here, and you are on the right track with your thinking.

Option 1:

-, , , .

, Java API Cypher ( ) . , , SDN, , - ? , /Cypher .

REST API, Spring, Spring MVC, Spring , . RestTemplate Spring .

, GraphAware Framework " " Spring MVC. , /.

2:

SDN (v4), . , Spring MVC, Security, et al. (CRUD .) Cypher Neo4j, ( ). Java.

Milestone 1 SDN v4. . , - Milestone, . GA (ish).

SDN v4 . : https://github.com/spring-projects/spring-data-neo4j, , 4.0 mvn clean install . , Angular JS Spring Boot.

, // ( Graphaware dot com). !

+3

, SDN4 Milestone 1 ( GraphAware), Neo4j-Server.

0

All Articles