replay

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

Documentation

Overview

Package replay defines the ReplayDriver contract for Murmur's backfill mode.

A ReplayDriver feeds historical events into the same pipeline DSL that the live streaming runtime uses, applying the same monoid Combine. Replays write into a fresh state table (so the live path is undisturbed) and finish with an atomic state-table swap. Concrete implementations:

  • replay/kafka: reads a Kafka topic from offset N to offset M (using franz-go). With Kafka tiered storage the offsets can span historical S3-backed segments transparently.
  • replay/s3: reads Firehose- or MSK-Connect-partitioned S3 archives and feeds the records through the pipeline at full throughput. The standard "kappa replay" for Kinesis-backed pipelines whose source retention is shorter than the desired replay window.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver[T any] interface {
	// Replay yields historical records into out. The driver is expected to drive its
	// internal sources (S3 file iteration, Kafka offset seeks) to completion or until
	// ctx is canceled, then close out.
	Replay(ctx context.Context, out chan<- source.Record[T]) error

	// Name returns a stable identifier for logging and metrics.
	Name() string

	// Close releases any underlying resources.
	Close() error
}

Driver replays a historical range of events through a pipeline.

Directories

Path Synopsis
Package s3 provides a replay.Driver that reads JSON-Lines event archives from S3 (or any S3-compatible store like MinIO) and feeds the records into the pipeline.
Package s3 provides a replay.Driver that reads JSON-Lines event archives from S3 (or any S3-compatible store like MinIO) and feeds the records into the pipeline.

Jump to

Keyboard shortcuts

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