是否可以在Android应用程序中使用Neo4j数据库? [英] Is it possible to use Neo4j database in an Android application?

查看:560
本文介绍了是否可以在Android应用程序中使用Neo4j数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我为我的Android应用程序使用Neo4j数据库,它会产生任何错误吗?如果是这样,任何人都可以建议我任何其他Graph数据库用作Android应用程序的后端。

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..

推荐答案


Neo4J提供REST API以使用Cypher语言查询数据库,我会建议建立自己的层,以处理来自Android的请求,然后过滤和转发到Neo4J。

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.

您可以在Android应用程序和服务器之间使用自己的业务逻辑,稍后将在Cypher语法中翻译逻辑。

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.

如果要公开DB直接到世界,你可以在服务器上启动一个Neo4J服务器(可能是只读模式?),也许启用HTTPS模式以及其他一些安全措施
已经有一些 Neo4JaaS 提供程序,所以可能你可以看看

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.

这篇关于是否可以在Android应用程序中使用Neo4j数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆