Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the NOSQL Database of choice to use with Grails?

Tags:

grails

nosql

I'm about to start a project that has a DB that complies with what should be used in a NOSQL DB (Hadoop, MongoDB, Cassandra, etc). On the other hand I'd really like to use Grails as Web platform so if anyone could enlighten me with his/her expreriences I'd be grateful.

like image 597
xain Avatar asked Dec 17 '22 11:12

xain


2 Answers

Personally, I would limit my search to those NOSQL databases for which there are Grails plugins. Out of that list, I would strongly favour those that are officially supported (by SpringSource). This reduces your choice to:

  • Redis
  • Gemfire
  • MongoDB

To make the final choice, I'd consider factors such as:

  • community size
  • project maturity and adoption
  • your personal experience
like image 161
Dónal Avatar answered Jan 27 '23 23:01

Dónal


It depends on your requirements, type of your project, etc, not on grails. You specified really different technologies, and every have their own advantages and disadvantages.

First of all:

  • Hadoop is just a distributed files storage. But it has a key-value nosql db, called HBase on top of it, optimal for big data processing
  • MongoDB is a document oriented storage, good for situation where you need to store large amount of schema-less data
  • Cassandra is key-value columnar database, optimal when you have and defined structure of your data

So, it not about grails, it's about what you need to use, and only after you'd chosen appropriate storage, you'll have to look at web framework

Please read about CAP, about each storage, compare mongodb and cassandra, there is already a lot of questions about it

PS probably you can use any of NoSQL storages, that have Java driver, with Grails. But note that some grails features like GORM will be truncated. Just because GORM is optimised for relational model.

There is mongodb-morphia plugin, for example, that gives you gorm-like functionality for MongodDB, but it's very limited.

like image 30
Igor Artamonov Avatar answered Jan 27 '23 23:01

Igor Artamonov