BlueprintBETA

← Roadmap / Level 3 · Databases and storage · lesson 1 of 11

Lesson 3.1

SQL vs NoSQL

Your turn · required

Store a ticket app's data

You run the data side of a new concert ticket app. Fans sign up, buy seats and pay. Over a year it grows from a few gigs to world tours. At each moment, choose where and how the data is stored. Watch the diagram and the meters.

12345
FansTicket appserver
Wrong orders a week
0
Checkout time
0ms
Orders DB busy
0%
Cost a month
0$

Moment 1 of 5

Selling seats

The app needs to keep fans, concerts, seats and orders. When a fan buys seat B12, two things must change: the payment is saved, and the seat is marked as sold. If only one of them happens, someone pays for nothing, or one seat is sold twice.

Where do you keep this data?

Pass the exercise above to finish this lesson. You can still move on and come back later.