NoSQL databases were built for records that don't all share one shape, and for more people than one machine can serve. Documents in place of rows, thousands of machines in place of one, each record found by its key, and the choice between agreeing first and answering now.
NoSQL databases were built for two things a relational database handles badly. One is records that don’t all share one shape. The other is more people than one machine can serve.
Shape. Every product in a shop needs its own facts. A phone has a screen size, a shirt has a sleeve length, a book has an author. A relational table wants every row to have the same columns, so a catalogue like that ends up with hundreds of columns, most of them empty. A document database drops the rule. Each product becomes its own document, with the fields it needs and nothing else.
Size. A relational database was built to live on one machine. Here the records are split across thousands of machines, and to serve more people you add more machines. Every document has a key, such as a customer number, and the database turns that key into a number that names the machine, so a request by key goes straight there. Ask by anything else and every machine has to be searched, which is why the key you choose matters.
The trade. Spreading records means keeping copies. Change your address and the change lands on one copy. Ask a different copy a moment later and it may still hold the old address. So the database has to choose. It can wait until every copy agrees before it answers, or answer at once with what it has and catch up later. Most NoSQL databases let you pick per request. Amazon chose answering at once for its shopping cart, because a cart that never refuses mattered more than one that was always exact.
That suits catalogues, profiles, carts and feeds. A bank transfer still wants every copy to agree before anyone is told, which a relational database does as standard. So NoSQL sits beside relational databases and doesn’t replace them.
Every claim was checked against MongoDB’s, Cassandra’s and DynamoDB’s own documentation and Amazon’s 2007 Dynamo paper in September 2026. No product is recommended. This is an independent explainer, not affiliated with any vendor.
The line to keepDocuments in place of rows, thousands of machines in place of one, and a choice between agreeing first and answering now.
Transcript of the video
Every product in a shop needs its own facts. A phone has a screen size, a shirt has a sleeve length, a book has an author. A relational table wants every row to have the same columns, so a catalogue like that ends up with hundreds of columns, and most of them empty.
A relational database has a rule that every record in a table shares one shape. A document database drops that rule. Each product becomes its own document, with the fields that product needs and nothing else, and two documents in the same collection don't have to match.
Shape was one problem, and size was the other. A relational database was built to live on one machine, and a million people at once is more than one machine can serve.
So the records are split across thousands of machines, each holding its own part. A request goes straight to the machine that holds the record, and to serve more people, you add more machines.
So how does it find one record among thousands of machines? Every document has a key, such as a customer number. The database turns that key into a number that names the machine, so a request by key goes straight there. Ask by anything else, and every machine has to be searched, which is why the key you choose matters.
Spreading records across machines means keeping copies. Say you change your address, and the change lands on one copy. A moment later, a different copy is asked for your address. Which address does that copy give back?
For a moment, that copy may still hold the old address, so the database has to choose between two things. It can wait until every copy agrees before answering, or it can answer at once with what it has and catch up later.
Most NoSQL databases let you pick per request. Amazon chose answering at once for its shopping cart, because a cart that never refuses mattered more than one that was always exact.
Documents and many machines suit catalogues, profiles, shopping carts and feeds. A bank transfer still wants every copy to agree before anyone is told, which a relational database does as standard. That is why NoSQL sits beside relational databases rather than replacing them.
NoSQL stores documents instead of rows, on thousands of machines instead of one, each found by its key. It was built for records that don't all share one shape, and for more people than one machine can serve.
Found this useful?
Subscribe for the next one, or tell me what you want explained. I take requests.