System Design
10. API Design and ManagementAnimated
API Filtering
Restricting results by field values.
The idea
Query parameters select a subset on the server.
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
One client call, several backends.
- step:
- 1/4
- at:
- Client
1/11
The green dot is a request moving through the system.
Step by step
- 1Client sends filter parameters
- 2Server validates them
- 3Query applies them with indexes
- 4Smaller results return
Where it is used
Search and lists.
Watch out for
Unindexed filters cause slow queries.