Document / NoSQL Database
What is Document / NoSQL Database?
Document / NoSQL Database: Flexible document or key-value stores — schema-less JSON documents. No JOINs, but horizontal scale and fast lookups by key. (AWS: DynamoDB; GCP: Firestore; Azure: Cosmos DB) Document databases store data as flexible documents, usually JSON, instead of rows in fixed tables. Examples include MongoDB, AWS DynamoDB, Google Firestore and Azure Cosmos DB.
Frequently asked questions about Document / NoSQL Database
How is Document / NoSQL Database used in practice?
They shine when data naturally comes in self-contained chunks, such as a user profile with its settings, or when you need very high write volume and simple lookups by key. Adding a field does not require a schema migration.
What should you keep in mind with Document / NoSQL Database?
The trade-offs are real. There are few or no joins, so relationships must be handled in code or by duplicating data. Reporting across many documents is harder than with SQL. For most business applications with customers, orders, invoices and their relationships, a relational database such as PostgreSQL or MySQL is still the more practical choice, and both support JSON columns for the flexible parts.
At a glance
| Category | Cloud services |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |