Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java collections over arangoDB

Tags:

java

arangodb

I am relatively new to ArangoDB. Is there any library written which implements java collections over ArangoDB. i.e creates an Arangodb server that stores the value in the database and extracts the values as and when needed. I am looking for something similar to Redisson (https://github.com/mrniko/redisson) which is implemented over Redis.

like image 505
TheWatch Avatar asked Jul 11 '26 20:07

TheWatch


2 Answers

Sadly it is not possible at the moment. But if you want to you can modify the ArangoDB Java Driver (github.com/arangodb/arangodb-java-driver). Everyone can contribute to the project and if you need any help with the work just ask the ArangoDB Team.

like image 98
13abylon Avatar answered Jul 14 '26 12:07

13abylon


It's important to note that Redis is an in-memory (but persistent-on-disk) database. This makes for screaming fast read/write operations, but at a high memory cost. ArangoDB, on the other hand, compromises some speed to limit the memory footprint, and does so quite well.

However, because of this difference, it does not necessarily make sense to do for ArangoDB what Redisson does for Redis - that is, expose its own Java Collection implementations which allow more direct interaction with the in-memory entities. You would most likely run into unwanted memory issues. Since memory optimization is an important (and nice!) feature of ArangoDB, I would avoid going down this path.

That being said, there are newer Java libraries available to help you easily integrate with ArangoDB.

  • JNoSQL is a solid "JPA or ORM-like" framework written specifically for NoSQL databases. ArangoDB is one of many that is supported. It exposes convenient annotations and easily supports classic DAO/Repository patterns. There are some good code examples that'll help point you in the right direction.
like image 37
g_param Avatar answered Jul 14 '26 12:07

g_param



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!