Skip to content
StackDecode
System Design
4. Database FundamentalsAnimated

NoSQL

A family of non-relational databases built for scale and flexibility.

The idea

NoSQL systems favour horizontal scaling and flexible schemas. Types include key-value, document, column-family and graph.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Node 1Node 2Node 3Node 4Node 5
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Independent machines coordinate only by passing messages.

step:
1/4
at:
Node 1
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Choose the type that matches your access pattern
  2. 2Model data around queries
  3. 3Partition across nodes
  4. 4Handle consistency in design

Where it is used

Large-scale and flexible-schema workloads.

Watch out for

Not automatically better. Relational databases fit many problems well.

Related