liveBook · Manning

MongoDB

As explained in Building Distributed Applications that Work

MongoDB is a document-oriented NoSQL database management system.

MongoDB is a document-oriented NoSQL database that stores data in flexible, JSON-like BSON documents organized into collections. This structure suits semistructured data such as product reviews. section 3.6.1

Documents can keep related data, such as reviews, alongside a product. MongoDB does not provide relational tables, relationships, or foreign-key constraints, so tracking relationships across entities can be difficult. Its data shape can also reduce the gap between stored data and application objects. section 3.6.1

Product reviews

An online shop can store product reviews in the same document as the product they describe. section 3.6.1

How Building Distributed Applications that Work covers it

How deep it goes
Defines the document model and trade-offs but stops short of implementation or operational guidance.
Examples
Uses product reviews stored alongside their product as the concrete example.
What you can do after
Evaluate whether document storage fits semistructured application data and its relationship needs.
How it connects
Contrasts document databases with relational databases and ORMs in data shape and relationship handling.

Also explained in

Compare how 7 books explain MongoDB →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Distributed Applications that Work. The section links point to the parts of the book it draws on.