Recall & Review
beginner
What is an API Gateway in system design?
An API Gateway is a server that acts as a single entry point for all client requests to multiple backend services. It handles routing, authentication, rate limiting, and sometimes response aggregation.
Click to reveal answer
beginner
Name two main responsibilities of an API Gateway.
1. Routing client requests to the correct backend service.<br>2. Handling security like authentication and authorization.
Click to reveal answer
intermediate
Why use an API Gateway instead of direct client-to-service communication?
It simplifies client interactions by providing one endpoint, improves security by centralizing access control, and can improve performance by caching and aggregating responses.
Click to reveal answer
intermediate
How does an API Gateway help with scalability?
It can balance load across multiple backend services and apply rate limiting to protect services from overload, helping the system scale smoothly.
Click to reveal answer
advanced
What is a common challenge when using an API Gateway?
It can become a single point of failure or a bottleneck if not designed or scaled properly.
Click to reveal answer
What role does an API Gateway play in a microservices architecture?
✗ Incorrect
An API Gateway acts as a single entry point that routes client requests to the appropriate backend services.
Which of the following is NOT a typical function of an API Gateway?
✗ Incorrect
API Gateways do not manage databases directly; they route requests and handle security and traffic control.
How does an API Gateway improve security?
✗ Incorrect
API Gateways centralize security by managing authentication and authorization for all incoming requests.
What is a potential risk of using an API Gateway?
✗ Incorrect
If not properly designed or scaled, the API Gateway can become a single point of failure.
Which feature helps an API Gateway protect backend services from too many requests?
✗ Incorrect
Rate limiting controls how many requests a client can make, protecting backend services from overload.
Explain the role and benefits of an API Gateway in a microservices system.
Think about how clients communicate with many services and how the gateway helps.
You got /5 concepts.
Describe common challenges when implementing an API Gateway and how to address them.
Consider what happens if the gateway goes down or gets overloaded.
You got /5 concepts.