SYSTEM-DESIGN
    intermediate

    API Gateway

    Software Engineer path · lesson 71 of 99

    API Gateway Architecture

    Microservices
    Step 0/5
    Ready
    Route to:
    Web Client
    Mobile App
    API Gateway
    Authentication
    JWT token validation
    Rate Limiting
    Request quota management
    Load Balancing
    Traffic distribution
    Monitoring
    Request logging
    User Service
    /api/v1/users
    Order Service
    /api/v1/orders
    Inventory Service
    /api/v1/inventory
    Request
    Auth
    Rate Limit
    Route
    Response

    Gateway or service?

    Sort

    Sort each responsibility into where it belongs.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    API gateway

    Drop items here

    Backend service

    Drop items here
    6 pieces left to place

    Test your knowledge

    21 questions
    Question 1 of 21
    Score: 0

    Which of the following is typically NOT a responsibility of an API Gateway?

    The short version

    An API Gateway is like a hotel receptionist. Guests (clients) talk only to the receptionist, who then figures out which department (microservice) needs to handle their request.

    In more depth

    API Gateway

    An API Gateway is the single point of entry into a microservices architecture.

    Key Responsibilities

    Routing: Forwarding requests to the appropriate internal services.
    Authentication & Authorization: Validating tokens before requests hit backend services.
    Rate Limiting: Preventing abuse by throttling excessive requests.
    Load Balancing: Distributing load across service instances.
    Response Tailoring: Aggregating data from multiple services to reduce client round-trips.

    Interview Questions

    Netflix
    Amazon
    Uber
    Netflix
    Airbnb
    Microsoft
    Uber
    Google
    Stripe
    Amazon
    Meta
    LinkedIn

    Love this visualization?

    Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.

    100% free • No credit card required