All Questions
Api Design medium

Your microservices architecture has 20 services. Each has its own auth, rate limiting, and logging. You introduce an API Gateway. What does it centralize?

  1. A Cross-cutting concerns such as authentication, request routing, rate limiting, and request/response logging, simplifying the underlying microservices.
  2. B The core business logic and domain validation rules, ensuring that every microservice remains a thin wrapper around a shared central controller.
  3. C Database connection pooling and object-relational mapping (ORM) logic to provide a unified data access layer for all downstream services.
  4. D The static asset hosting and frontend template rendering (SSR) logic to reduce the load on the client-side browser and improve SEO scores.

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

Get the app

Related questions