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
Copy file name to clipboardExpand all lines: Examples/ServiceLifecycle/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This example demonstrates a Swift Lambda function that uses ServiceLifecycle to
9
9
-**HTTP API Gateway**: HTTP endpoint to invoke the Lambda function
10
10
-**VPC**: Custom VPC with public subnets for Lambda/NAT Gateway and private subnets for RDS
11
11
-**Security**: SSL/TLS connections with RDS root certificate verification, secure networking with security groups
12
-
-**Timeout Handling**: 3-second timeout mechanism to prevent database connection hangs
12
+
-**Timeout Handling**: 3-second timeout mechanism to prevent database connection freeze
13
13
-**Secrets Manager**: Secure credential storage and management
14
14
15
15
For detailed infrastructure information, see `INFRASTRUCTURE.md`.
@@ -22,7 +22,7 @@ The Lambda function demonstrates several key concepts:
22
22
23
23
2.**SSL/TLS Security**: Connections to RDS use SSL/TLS with full certificate verification using region-specific RDS root certificates.
24
24
25
-
3.**Timeout Protection**: A custom timeout mechanism prevents the function from hanging when the database is unreachable (addresses PostgresNIO issue #489).
25
+
3.**Timeout Protection**: A custom timeout mechanism prevents the function from freezing when the database is unreachable (addresses PostgresNIO issue #489).
26
26
27
27
4.**Structured Response**: Returns a JSON array of `User` objects, making it suitable for API integration.
28
28
@@ -143,7 +143,7 @@ curl "$API_ENDPOINT"
143
143
144
144
The function will:
145
145
1. Connect to the PostgreSQL database using SSL/TLS with RDS root certificate verification
146
-
2. Query the `users` table with a 3-second timeout to prevent hanging
146
+
2. Query the `users` table with a 3-second timeout to prevent freezing
147
147
3. Log the results for each user found
148
148
4. Return a JSON array of `User` objects with `id` and `username` fields
149
149
@@ -243,7 +243,7 @@ Ensure you have:
243
243
-`samconfig.toml`: SAM configuration file
244
244
-`deploy.sh`: Deployment script
245
245
-`Sources/Lambda.swift`: Swift Lambda function code with ServiceLifecycle integration
246
-
-`Sources/Timeout.swift`: Timeout utility to prevent database connection hangs
246
+
-`Sources/Timeout.swift`: Timeout utility to prevent database connection freezes
0 commit comments