configsnapshot

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct{}

func NewCodec

func NewCodec() Codec

func (Codec) Decode

func (Codec) Decode(raw []byte) (*readmodel.Snapshot, error)

func (Codec) Encode

func (Codec) Encode(snapshot *readmodel.Snapshot) ([]byte, error)

func (Codec) Version

func (Codec) Version(raw []byte) string

type DistributedSignaler added in v0.5.0

type DistributedSignaler struct {
	// contains filtered or unexported fields
}

DistributedSignaler recompiles the snapshot on the local admin process and fans the same nudge out to every other admin replica over the Redis event bus.

Version broadcast to data planes is in-process per admin pod: a write handled by replica A only reaches the data planes streaming from A. Publishing a SnapshotDirtyEvent makes replica B recompile and push to its own data planes immediately, instead of leaving them stale until B's periodic backstop fires.

func NewDistributedSignaler added in v0.5.0

func NewDistributedSignaler(local LocalSignaler, publisher cache.EventPublisher, logger *slog.Logger) *DistributedSignaler

func (*DistributedSignaler) Signal added in v0.5.0

func (s *DistributedSignaler) Signal(ctx context.Context)

type LocalSignaler added in v0.5.0

type LocalSignaler interface {
	Signal(ctx context.Context)
}

LocalSignaler triggers a recompile-and-broadcast on the current process.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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