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

Documentation

Overview

Live streaming worker for the mongo-cdc-orderstats example.

Consumes Mongo CDC events delivered via Kafka (the standard Debezium → Kafka bridge in production) and applies them through the per-customer Sum monoid into the same DynamoDB table the bootstrap binary populated. With WithDedup wired up, replays-after-crash are idempotent: a record arriving twice from Kafka after a worker restart is folded into the monoid exactly once.

Locally:

# After bootstrap has populated the initial state:
docker compose up -d kafka dynamodb-local
go run ./examples/mongo-cdc-orderstats/cmd/worker

Jump to

Keyboard shortcuts

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