All Questions
Api Gateway easy

How does an API Gateway decide where to route a request like `GET /api/v1/billing/history` in a microservices cluster?

  1. A It broadcasts the request to every microservice and waits for whichever one answers first.
  2. B It uses Path-Based Routing rules (e.g., anything starting with `/billing/` is mapped to the inner IP address of the Billing Service).
  3. C It queries the user's browser to ask which service should handle the request.
  4. D It randomly picks any available server to handle the request to ensure even load distribution.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions