BASE
Basically Available, Soft state, Eventual consistency: a looser model than ACID that prioritizes answering and scaling.
Example
Cassandra always answers, even if a copy is 2 seconds behind.
Test yourself: BASE
ACID and BASE
What does BASE give up in exchange for scaling and being available?
A replica may take 2 seconds to hear about a change, but the database never stops answering.
ACID and BASE
With BASE, developers must handle data that may be ___.
If a copy is 2 seconds behind, the app must be ready to show old data.
0/2
â–¶ PlayLessons that use it
How numbers are stored
Negatives and decimals in binary
Arrays
Adjacent cells
Binary search trees
Smaller on the left, larger on the right
Binary search in depth
2 pointers closing in
Insertion sort
Like arranging the cards in your hand
Radix sort
Digit by digit
Dynamic programming
Solve each thing only once
Solving with DP
State, transition and borders
NoSQL databases
Beyond tables
ACID and BASE
Two promises about data
Database federation
Several databases that look like one
Service bus (ESB)
One hub to integrate everything
Microservices done right
Microservices without traps
Designing Uber
10 million rides a day
