Skip to content

Commit 1faeecf

Browse files
author
Sebastien Stormacq
committed
add links to the doc in the source code
1 parent bee9a59 commit 1faeecf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sources/AWSLambdaRuntime/LambdaRuntime.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@ public final class LambdaRuntime<Handler>: Sendable where Handler: StreamingLamb
8080

8181
// Get the max concurrency authorized by user when running on
8282
// Lambda Managed Instances
83-
// This is not documented anywhere, except the NodeJS runtime
83+
// See:
84+
// - https://docs.aws.amazon.com/lambda/latest/dg/lambda-managed-instances.html#lambda-managed-instances-concurrency-model
85+
// - https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html
86+
//
87+
// and the NodeJS implementation
8488
// https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/blob/a4560c87426fa0a34756296a30d7add1388e575c/src/utils/env.ts#L34
85-
// and
8689
// https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/blob/a4560c87426fa0a34756296a30d7add1388e575c/src/worker/ignition.ts#L12
8790
let maxConcurrency = Int(Lambda.env("AWS_LAMBDA_MAX_CONCURRENCY") ?? "1") ?? 1
8891

0 commit comments

Comments
 (0)