lambda

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Lambda binary for the recently-interacted-topk example.

Reads Segment-style interaction events from Kinesis (via Lambda's Kinesis trigger) and folds them into the shared TopK sketch in DynamoDB. Pair with the cmd/worker binary that consumes a parallel Kafka topic — both write to the same DDB row, so the merged TopK reflects interactions from BOTH channels.

Build (Lambda runs the `provided.al2` runtime):

GOOS=linux GOARCH=arm64 go build -tags lambda.norpc \
    -o bootstrap ./examples/recently-interacted-topk/cmd/lambda
zip lambda.zip bootstrap

Deploy via your Lambda toolchain of choice (SAM / CDK / Terraform). The event-source mapping should set:

FunctionResponseTypes = ["ReportBatchItemFailures"]
BatchSize             = 100..1000 (tune per processing time)
StartingPosition      = LATEST  (or TRIM_HORIZON for full backfill)

Jump to

Keyboard shortcuts

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