lambda

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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