Documentation
¶
Overview ¶
Command lobby-lambda serves the lobby from AWS Lambda behind a Function URL. The Function URL must use the RESPONSE_STREAM invoke mode, which lambdaurl requires, as the Island Battles backend's Lambda does. Build it for the provided.al2023 runtime on arm64:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -tags lambda.norpc -trimpath -ldflags='-s -w' -o bootstrap ./cmd/lobby-lambda
The runtime looks for an executable named bootstrap at the root of the zip.
It reads the same LOBBY_* environment as the local server, cmd/lobby, except LOBBY_HTTP_ADDR, with the pool limits' Lambda defaults, and runs no schema changes: a deploy migrates the lobby's schema before a new build serves. It logs JSON lines to standard output.
Click to show internal directories.
Click to hide internal directories.