Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CouchDB or MongoDB for Lift Web application?

I'm building a web application using Lift (scala) and unsure whether to use CouchDB or MongoDB for the database.

My application will consist of:

  • User accounts
  • User profiles
  • Internal messaging
  • Comments
  • Postings
  • Embedding videos, pictures etc on the app

Which implementation would be better, CouchDB or MongoDB?

like image 434
Santiago Avatar asked May 21 '11 19:05

Santiago


People also ask

Is CouchDB better than MongoDB?

At first, CouchDB looks like a compelling solution for the web world since it's built on top of the JSON document model and HTTP rest API interface. However, it lacks in security, performance, ease of use, query language, data types support, and cloud offerings when compared to MongoDB Atlas.

What is difference between CouchDB vs MongoDB?

CouchDB accepts queries via a RESTful HTTP API, while MongoDB uses its own query language. CouchDB prioritizes availability, while MongoDB prioritizes consistency. MongoDB has a much larger user base than CouchDB, making it easier to find support and hire employees for this database solution.


2 Answers

While I do think CouchDB is very well suited for Web applications, I have found it not well suited for use with Lift.

Lift makes it hard to do things "the CouchDB way", and I have not found any Lift user using CouchDb in production (please correct me if I am wrong).

Here is my rule:

  • if you want to use Lift then use MongoDB
  • if you want to use CouchDB then do not use Lift.
like image 82
Marcello Nuccio Avatar answered Sep 30 '22 10:09

Marcello Nuccio


I'd go with MongoDB, it tends to be well suited for web applications in general, but of course it depends on your level of experience with both products and how you'll be accessing and querying the data.

Lift can integrate with MongoDB using:

  • lift-mongodb: base code and a lightweight ODM library
  • lift-mongodb-record: back-end implementation of the Record framework
like image 44
Chris Fulstow Avatar answered Sep 30 '22 10:09

Chris Fulstow