Query
A request for information that changes nothing in the system.
Example
«View my balance» is a query: asking 100 times leaves the balance the same.
Lessons that use it
TCP and UDP
Safe or fast
How DNS works
The internet's phone book
DNS records
Each domain's instructions
Cache
What's asked often, close at hand
Evicting and spreading the cache
The cache fills up
AVL trees
A tree that straightens itself
Graph operations
Adding and removing vertices and edges
Binary search in depth
2 pointers closing in
Databases
Where data is kept
SQL databases
Tables that relate
NoSQL databases
Beyond tables
SQL or NoSQL
Picking the right database
Replication
Copies of the database
Measure and optimize
Measure first
Normalize and denormalize
Each piece of data in one place
PACELC theorem
CAP plus latency
Sharding
Splitting the database into pieces
Database federation
Several databases that look like one
Message queues
Don't keep them waiting
Publish-subscribe
1 message, many listeners
Event-driven architecture
Announcing what happened
CQRS
Write on one side, read on the other
GraphQL and gRPC
Other ways to talk to an API
The design steps
From data to bottlenecks
Generating unique keys
Where 3I71d3o comes from
