locality
Keeping data close to the code or users that need it, to avoid slow trips across a network.
In more detail
A datacenter round trip is about three hundred times faster than an intercontinental one, so locality outranks almost every other optimisation. Partition keys also create locality by keeping related records on one machine.
Related terms
- propagation delay — The time a signal needs to physically travel a distance, set by the speed of light in the cable.
- partition key — The DynamoDB attribute whose value decides which storage partition an item lives in, and which every query must name.
- CDN — A network of servers near users that keep copies of public content, such as images, and serve them quickly.
Taught in
- Latency Numbers Every Engineer Should Know — Scalable System Design & Distributed Architecture
- Partitioning, Sharding And Hot Keys — Scalable System Design & Distributed Architecture