Data Model
- MongoDB is a document store. Data is stored as JSON-like (BSON Binary JSON) documents with flexible schema.
- Documents within a collection can have different structures.
Scalability
Note
MongoDB supports CP -> Consistency + Partition Tolerance
- Scalable, but scaling can be more complex, especially for write-heavy workloads.
- Sharding is required for horizontal scaling.
- MongoDB prioritizes consistency over availability in its default configuration.
- It offers strong read and write operations consistency and Partition Tolerance.