Is it possible to use Neo4j database in an Android

2019-06-23 16:28发布

问题:

Will it make any error if I use Neo4j database for my Android Application? If so, can anyone suggest me any other Graph database to use as back end for Android application..

回答1:

Yes. While Neo4J offers a REST API to query the database with the Cypher language, I would recommend to build your own layer on top of that to deal with the requests from Android and then filter and forward to Neo4J.

This layer will let you to use your own business logic between the Android app and the server, logic that will be "translated" in the Cypher syntax later.

If you want to expose instead your DB to the world directly, you can start a Neo4J server on a server (perhaps in read-only mode?) and maybe enable the HTTPS mode and some more security stuff. There are already some Neo4JaaS providers out there, so probably you can have a look to that.