0
0
HLDsystem_design~5 mins

API gateway concept in HLD - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AStores all data for backend services
BActs as a single entry point for client requests
CReplaces the database layer
DRuns client-side code
Which of the following is NOT a typical feature of an API Gateway?
ARate limiting
BAuthentication and authorization
CRequest routing
DDirect database queries
How does an API Gateway improve security?
ABy centralizing authentication and authorization
BBy storing user passwords
CBy encrypting backend databases
DBy running client code securely
What is request composition in an API Gateway?
ACombining multiple backend responses into one
BEncrypting client requests
CCaching database queries
DRunning backend services
Which benefit does an API Gateway provide for scalability?
AStores all client data
BRuns all backend services itself
COffloads common tasks from backend services
DEliminates the need for load balancers
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.