Recall & Review
beginner
What is an API Gateway?
An API Gateway is a server that acts as a single entry point for all client requests to multiple backend services. It handles request routing, composition, and protocol translation.
Click to reveal answer
beginner
Name two main functions of an API Gateway.
1. Routing client requests to the correct backend service.<br>2. Handling security like authentication and rate limiting.
Click to reveal answer
intermediate
Why use an API Gateway instead of direct client calls to services?
It simplifies client communication by providing one endpoint, improves security by centralizing checks, and can optimize performance by aggregating responses.
Click to reveal answer
intermediate
What is request composition in the context of an API Gateway?
Request composition means the API Gateway combines data from multiple backend services into a single response for the client.
Click to reveal answer
intermediate
How does an API Gateway help with scalability?
By offloading tasks like authentication, rate limiting, and request routing, it reduces load on backend services and allows independent scaling of components.
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, routing requests to appropriate backend services.
Which of the following is NOT a typical feature of an API Gateway?
✗ Incorrect
API Gateways do not perform direct database queries; they route requests to backend services that handle data.
How does an API Gateway improve security?
✗ Incorrect
API Gateways centralize security checks like authentication and authorization before forwarding requests.
What is request composition in an API Gateway?
✗ Incorrect
Request composition means the API Gateway merges data from multiple services into a single response.
Which benefit does an API Gateway provide for scalability?
✗ Incorrect
By handling tasks like authentication and routing, the API Gateway reduces backend load, aiding scalability.
Explain the role and benefits of an API Gateway in a microservices system.
Think about how it simplifies client communication and protects backend services.
You got /5 concepts.
Describe how an API Gateway manages client requests and backend responses.
Consider the flow from client to backend and back.
You got /5 concepts.