Distributed lock
A lock shared across several machines so only 1 process uses a piece of data at a time.
Example
With a lock on the counter, out of 1,000 requests only 1 touches it at a time.
Test yourself: Distributed lock
Rate limiting
What avoids the race condition without slowing everyone down?
The atomic add returns 100 to one and 101 to the other: the second is rejected.
0/1
â–¶ PlayLessons that use it
What an IP is
Every machine has an address
The OSI model
The network, in 7 layers
Kinds of load balancers
Not all load balancers are alike
Proxies
A middleman in between
Basic data types
The bricks of everything
Radix sort
Digit by digit
Backtracking
Try, and if it fails, go back
Transactions
All together or nothing
Sagas
Steps that can be undone
Microservices done right
Microservices without traps
Rate limiting
A cap on requests
Service discovery
Where is that service?
SSL, TLS and mTLS
Talk without anyone listening
Generating unique keys
Where 3I71d3o comes from
Designing Uber
10 million rides a day
