You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lambda and API Gateway combined infrastructure is a powerful means for realizing serverless architecture. Lambda is a service for executing code, while API Gateway creates HTTP endpoints and forwards requests to Lambda functions.
This combination offers the following characteristics:
9
+
10
+
- Simplified Serverless Architecture: Combining API Gateway with Lambda allows for the creation of a serverless architecture, eliminating issues with server management and scaling.
11
+
- Cost Efficiency: Being billed only for the resources you use, costs can scale with traffic, reducing wasteful spending.
12
+
- Seamless Integration: API Gateway provides seamless integration with Lambda, allowing you to define API endpoints and route requests to Lambda functions.
13
+
- Facilitates the implementation of microservices architecture, allowing deployment of independent Lambda functions for each functionality.
14
+
15
+
### Limitations
16
+
- Long Processing Time: Lambda functions are limited by execution time. If long processing is required, Lambda might not be suitable. Alternative methods should be explored for long-running processes.
17
+
- Heavy Data Processing: Lambda functions have resource limits. For tasks requiring heavy data processing or significant memory, other services or architectures might be more suitable.
18
+
- Always Active Services: Lambda is event-driven and goes to sleep when there are no requests. For services that need to be always active or for background processing, Lambda might not be appropriate.
19
+
20
+
21
+
### How to deploy
22
+
> [!NOTE]
23
+
> Before running `make deploy`, ensure you have configured AWS credentials and set the correct region. Otherwise, you use single sign-on (SSO).
24
+
25
+
```shell
26
+
$ make deploy
27
+
```
28
+
29
+
### Endpoint Base URL Syntax
30
+
The URL syntax for the API Gateway endpoint is as follows:
0 commit comments