Skip to content
StackDecode
System Design
18. Advanced Distributed ArchitectureAnimated

Data Locality

Keeping data close to where it is used.

The idea

Place compute and data together to avoid slow transfers.

Watch it work

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

DevicesEdge nodeCloudData lake
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Devices send data to a nearby edge node.

step:
1/4
at:
Devices
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Know access patterns
  2. 2Place data near users or compute
  3. 3Route requests accordingly
  4. 4Move data when patterns change

Where it is used

Latency and cost.

Watch out for

Hot spots and rebalancing costs.

Related