0
0
Expressframework~5 mins

API gateway concept in Express - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AActs as a single entry point for client requests
BStores all user data
CReplaces backend services
DManages database transactions
Which of the following is NOT a typical function of an API Gateway?
ADirect database management
BAuthentication and authorization
CRequest routing
DRate limiting
How does an API Gateway improve security?
ABy encrypting backend databases
BBy replacing firewalls
CBy storing user passwords
DBy centralizing authentication and authorization
What is a potential risk of using an API Gateway?
AIt increases client complexity
BIt can slow down the database
CIt can become a single point of failure
DIt eliminates the need for backend services
Which feature helps an API Gateway protect backend services from too many requests?
ACaching
BRate limiting
CLoad balancing
DData encryption
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.