projector

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: 10 Imported by: 0

Documentation

Overview

Lambda binary for the search-projector example. Tails a Murmur counter table via DDB Streams and projects bucket transitions into OpenSearch.

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

GOOS=linux GOARCH=arm64 go build -tags lambda.norpc \
    -o bootstrap ./examples/search-projector/cmd/projector
zip lambda.zip bootstrap

Configure the event-source mapping with:

StreamViewType        = NEW_AND_OLD_IMAGES   (both images required)
FunctionResponseTypes = [ReportBatchItemFailures]
BatchSize             = 100..1000

Environment:

OPENSEARCH_ENDPOINT  — https://your-domain.us-east-1.es.amazonaws.com
OPENSEARCH_INDEX     — target index, e.g. "posts"
OPENSEARCH_FIELD     — field name (default: popularity_bucket)
HYSTERESIS           — fractional band, e.g. "0.10" (default: 0)

Jump to

Keyboard shortcuts

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