System Design · Junior · Question 22 of 75

In general, how do relational (SQL) databases differ from NoSQL?

Explanation

Relational DBs (PostgreSQL) provide transactions, JOINs and a strict schema. NoSQL - document (MongoDB), key-value (Redis), columnar, graph - scale horizontally more easily or fit a specific access pattern better. The choice depends on the data and queries.

Further reading

Problem with a question

System Design · Junior · question 22

Test yourself

Take the System Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz