Skip to content
StackDecode
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.

ClientAggregatorUsers APIOrders APIPricing API
  • 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

  1. 1Client sends filter parameters
  2. 2Server validates them
  3. 3Query applies them with indexes
  4. 4Smaller results return

Where it is used

Search and lists.

Watch out for

Unindexed filters cause slow queries.

Related