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.
- 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
- 1Parse the request
- 2Check against a schema
- 3Reject invalid ones with 400
- 4Pass valid data on
Where it is used
Security and reliability.
Watch out for
Validate on the server even if the client validates.