0
0
Microservicessystem_design~5 mins

API Gateway pattern in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the primary role of an API Gateway in a microservices architecture?
An API Gateway acts as a single entry point that handles client requests by routing them to the appropriate microservices, simplifying client interactions and managing cross-cutting concerns like authentication and rate limiting.
Click to reveal answer
beginner
Name two common cross-cutting concerns handled by an API Gateway.
Authentication and rate limiting are two common cross-cutting concerns managed by an API Gateway to secure and control access to microservices.
Click to reveal answer
intermediate
How does an API Gateway improve client experience in a microservices system?
It consolidates multiple microservice calls into a single request, reducing the number of round trips and simplifying client logic.
Click to reveal answer
intermediate
What is a potential downside of using an API Gateway?
It can become a single point of failure or a performance bottleneck if not designed and scaled properly.
Click to reveal answer
advanced
Explain how an API Gateway supports versioning of microservices.
An API Gateway can route requests to different versions of microservices based on the request path or headers, enabling smooth version transitions without impacting clients.
Click to reveal answer
What is the main benefit of using an API Gateway in microservices?
AIt eliminates the need for authentication.
BIt replaces all microservices with one service.
CIt stores all data for microservices.
DIt provides a single entry point for all client requests.
Which of the following is NOT typically handled by an API Gateway?
ARequest routing
BDatabase management
CAuthentication
DRate limiting
How does an API Gateway help with microservice versioning?
ABy routing requests to different service versions.
BBy merging all versions into one.
CBy deleting old versions automatically.
DBy storing version data in a database.
What risk does an API Gateway introduce if not properly managed?
ASingle point of failure
BData loss
CIncreased client complexity
DMicroservices duplication
Which scenario best describes the API Gateway pattern?
AClients communicate directly with each microservice.
BClients bypass microservices and access the database directly.
CA central service routes client requests to multiple microservices.
DMicroservices are merged into a monolith.
Describe the role and benefits of an API Gateway in a microservices architecture.
Think about how clients interact with many services through one door.
You got /5 concepts.
    Explain potential challenges or drawbacks when implementing an API Gateway.
    Consider what happens if the gateway is slow or goes down.
    You got /4 concepts.