MongoDB: This is one of the NoSQL DB. It’s a NoSQL solution. This is also called as Document Database. Basic architecture is as follows:
MongoDB will have multiple databases; Each Database will have multiple Collections; Each collections will have set of documents. This is where data will be stored in case of MongoDB
MongoDB stores the data in documents and these documents are in JSON format – Java Script Object Notation. There is no schema concept for mongodb
- In Mongo DB world you will have one or more databases on your MongoDB server
- Each Database will hold one or more collections
- A collection is equivalent to a table in RDBMS database world
- Each collection can have n-number of documents. It can have multiple documents
- Documents will have actual data
- Following diagram shows how mongodb database works
