Skip to content
StackDecode
System Design
16. Performance EngineeringAnimated

Parallel Processing

Doing work simultaneously on many cores or machines.

The idea

Divide the problem and run pieces at the same time.

Watch it work

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

TriggerWorkflow engineStep 1Step 2Step 3State store
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A durable engine stores the workflow's state.

step:
1/4
at:
Trigger
1/12

The green dot is a request moving through the system.

Step by step

  1. 1Split the data
  2. 2Process pieces in parallel
  3. 3Combine results
  4. 4Watch for stragglers

Where it is used

Data processing.

Watch out for

Overhead and uneven splits.

Related