0
0
Rest APIprogramming~5 mins

API gateway patterns in Rest API - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the primary role of an API Gateway in system design?
An API Gateway acts as a single entry point for clients to access multiple backend services. It handles request routing, composition, and protocol translation, simplifying client interactions.
Click to reveal answer
intermediate
Explain the 'Backend for Frontend' (BFF) pattern.
The BFF pattern creates separate API gateways tailored for different client types (like web, mobile). Each gateway provides a customized API optimized for its client, improving performance and user experience.
Click to reveal answer
intermediate
What is the 'Aggregator' pattern in API gateways?
The Aggregator pattern combines responses from multiple backend services into a single response for the client. This reduces the number of client requests and simplifies client logic.
Click to reveal answer
beginner
How does the API Gateway pattern improve security?
API Gateways centralize security by enforcing authentication, authorization, and rate limiting. This protects backend services and reduces duplicated security logic across services.
Click to reveal answer
advanced
What are some challenges when using an API Gateway?
Challenges include creating a single point of failure, increased latency if not optimized, and complexity in managing the gateway itself. Proper design and scaling strategies are needed to address these.
Click to reveal answer
What pattern involves creating separate API gateways for different client types?
AProxy
BAggregator
CBackend for Frontend (BFF)
DCircuit Breaker
Which API gateway pattern combines multiple backend responses into one?
AAggregator
BProxy
CBackend for Frontend
DRate Limiter
How does an API Gateway improve security?
ABy enforcing authentication and rate limiting centrally
BBy decentralizing authentication
CBy removing all security checks
DBy exposing backend services directly
What is a potential risk of using an API Gateway?
AIt reduces latency to zero
BIt eliminates the need for backend services
CIt removes the need for client requests
DIt can become a single point of failure
Which of the following is NOT a typical responsibility of an API Gateway?
ARequest routing
BData storage
CProtocol translation
DRequest aggregation
Describe the main patterns used in API gateways and their purposes.
Think about how API gateways tailor responses and combine backend data.
You got /4 concepts.
    What are the benefits and challenges of using an API Gateway in a microservices architecture?
    Consider both advantages and risks of centralizing API management.
    You got /4 concepts.