Distributed

Lesson 06.1

SQL vs key-value / document

Relational, key-value, and document databases arrange data around different access patterns and guarantees, so the best fit depends on the reads, writes, relationships, and invariants a system needs.

One order with several related rows

Ava and Ben work in a cookie shop. An order connects a customer, items, payment, and stock, and the computer must update them together.

In this lesson you'll

  1. 1Choose a data layout from its actual lookup path and transaction boundary.
  2. 2Predict what changes before revealing the result
  3. 3Help Ava with the new request while keeping every rule