lobby-lambda

command
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL