worker

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

Streaming worker binary for the recently-interacted-topk example.

Reads interaction events from a Kafka topic (typically internal application events) and folds them into the shared TopK sketch in DynamoDB. Pair with the cmd/lambda binary that consumes a Kinesis stream — both binaries write to the same DDB row, so the merged TopK reflects interactions from BOTH channels.

In production this binary runs as an ECS Fargate service. Locally:

docker compose up -d kafka dynamodb-local
export KAFKA_BROKERS=localhost:9092
export KAFKA_TOPIC=interactions
export DDB_ENDPOINT=http://localhost:8000
go run ./examples/recently-interacted-topk/cmd/worker

Jump to

Keyboard shortcuts

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