How do relational databases and NoSQL differ, and when do you pick each?

2 stars Asked often.

In one or two sentences
Relational databases center on tables, SQL and transactions. NoSQL stresses flexible models such as documents or key value pairs and horizontal scaling. You choose by the shape of the data and how it is accessed.

Think of your own answer first

Say it out loud, or type it below. What you type never leaves this device.

Follow-up questions

These are likely next questions from an interviewer. Think of your answer first, then press the button.

  1. 1 / 3

    How do horizontal and vertical scaling differ?

Sources checked

This is a textbook level concept, so no outside source is listed.