Embedded neo4j in the cloud?

188 views
Skip to first unread message

hansbrattberg

unread,
Apr 6, 2012, 11:06:01 AM4/6/12
to Neo4j
Hi!

I have deployed a webbapplication with an embedded neo4j instance in
heroku and it works nicely, exept that the database is stored in the
tmp directory... :)

I realize that one way forward is to use the REST api and to use the
neo4j REST add-on to heroku, but I really would prefere to continue
use the embedded database instead.

Is it possible to use the embedded neo4j in any way in heroku? How?

and/or

Does anyone use embedded neo4j on any other "cloud service"?
Wich one?

/Hans

Andreas Kollegger

unread,
Apr 6, 2012, 11:30:45 AM4/6/12
to ne...@googlegroups.com
Heroku isn't intended to be used in this way, which is why you can only write to a tmp directory. You should take a look at deploying to Engine Yard, which I think gives you file-system access. 

Can I ask why you'd prefer to not use REST, and what language/stack you're developing with?

Thanks,
Andreas

hansbrattberg

unread,
Apr 6, 2012, 11:49:30 AM4/6/12
to Neo4j
Hi Andreas!

I'm using the neo4j inside a web application based on the
playframework 2.0 (mixed scala and java)

Currently I'm prototyping and don't care much about fault tolerance or
a good architecture, I just want my feedback cycle to be short and to
have a flow while I develop.
The embedded api is (for me at least) so much easier to use and so
much less verbose.

I am also not convinced that my application ever is going to need to
separate the database server from the webapplication, so the REST
layer is just adding complexity.

/Hans

Michael Hunger

unread,
Apr 6, 2012, 12:34:22 PM4/6/12
to ne...@googlegroups.com
Hans,

openshift supports a local data directory, where you can store your data.

See this blog post: http://tomasmuller.com.br/2012/03/29/10-steps-to-run-neo4j-at-redhat-openshift-cloud

Michael

hansbrattberg

unread,
Apr 12, 2012, 5:34:30 PM4/12/12
to ne...@googlegroups.com
Tank you, it works great!

I have an playframework 2.0 application with an embedded neo4j database.

I got it play running by following theses instructions:

Michael Hunger

unread,
Apr 12, 2012, 5:43:29 PM4/12/12
to ne...@googlegroups.com
Hans,

would you be so kind as to write it up with a blog post?

Thanks a lot

Michael
Reply all
Reply to author
Forward
0 new messages