Skip to content
StackDecode
System Design
10. API Design and ManagementAnimated

Request Validation

Checking input before using it.

The idea

Validate types, ranges and formats at the edge to reject bad data early and block attacks.

Watch it work

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

TrafficWAF / DDoS shie…Bad requestApplication
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

All traffic passes through the WAF.

step:
1/4
at:
Traffic
1/7

The green dot is a request moving through the system.

Step by step

  1. 1Parse the request
  2. 2Check against a schema
  3. 3Reject invalid ones with 400
  4. 4Pass valid data on

Where it is used

Security and reliability.

Watch out for

Validate on the server even if the client validates.

Related