The page has been translated by Gen AI.

Building Reverse Proxy Using API Gateway

Building Reverse Proxy Using API Gateway

Overview

Reverse proxy (Reverse Proxy) is located behind the internet and in front of the server, acting as an intermediary that forwards client requests to the appropriate server. API Gateway can serve as a reverse proxy because it routes requests to multiple servers based on paths and handles and manages user authentication to control access to endpoints, thereby strengthening security and optimizing performance.

Architecture Diagram

Architecture diagram
Figure 1. Building a reverse proxy using API Gateway
  1. Invoke the single domain provided by API Gateway.

  2. Authenticate the client request and verify that the user has server access permissions.

  3. Based on the path name, route to Virtual Server and Cloud Functions respectively.

Use Cases

Server Security

By hiding the actual server IP address of the service provided to users, it becomes more difficult for hackers to launch targeted attacks such as DDoS. This allows the server to be protected from DDoS attacks. Additionally, user authentication and authorization can control access to the server, enhancing security.

distributed processing

Handling millions of requests on a single server is difficult, but you can distribute traffic across multiple servers using an API Gateway. By distributing traffic, you prevent overload on a single server and ensure that if a specific server goes down, other servers can handle the requests. This optimizes server performance and reduces server response time.

Prerequisites

N/A

Constraints

All components must use the same API name.

Considerations

N/A

Related service

This is a list of Samsung Cloud Platform services that are associated with the features or configurations described in this guide. Refer to it when selecting and designing services.

service groupserviceDetailed description
ComputeVirtual ServerVirtual server optimized for cloud computing
ComputeCloud FunctionsA service that runs application code in a serverless computing environment
Table. List of related services