MongoDB
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.