What is the NOSQL database for use with Grails?

I am going to start a project with a database that matches what should be used in the NOSQL database (Hadoop, MongoDB, Cassandra, etc.). On the other hand, I would really like to use Grails as a web platform, so if someone could enlighten me with their experiments, I would be grateful.

+4
source share
2 answers

It depends on your requirements, type of your project, etc., and not on grails. You have indicated really different technologies, and each has its own advantages and disadvantages.

Primarily:

  • Hadoop is only a distributed file storage. But it has the key value of nosql db, called HBase on top of it, optimal for big data processing.
  • MongoDB is document-oriented storage, good for situations where you need to store a lot of data without a schema.
  • Cassandra is a key column database, optimal when you have a specific structure for your data.

So, this is not about grails, about what you need to use, and only after you have chosen the appropriate storage, you will have to look at the web framework

Read about CAP , about each repository, compare mongodb and cassandra , there are already a lot of questions

PS, perhaps you can use any of the NoSQL repositories that have a Java driver with Grails. But note that some Grails features, such as GORM, will be truncated. Just because GORM is optimized for the relational model.

There is a mongodb-morphia plugin, for example, which gives you functions similar to gorm for MongodDB, but very limited.

+5
source

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

  • Redis
  • Gemfire
  • Mongodb

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

  • Community size
  • maturity and acceptance of the project
  • your personal experience
+7
source

All Articles