sink-side-input

command module
v0.0.0-...-e9e02c5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

Redis E2E Test Sink

This Redis UDSink was specifically created for Numaflow end-to-end tests. It interacts with a Redis instance and, upon receiving data, it sets the content of the side input as the key in Redis, and the number of occurrences of that key as its value.

The name of a hash is pipelineName:sinkName.

How It Works:

Uses the fsnotify package to watch for changes to the side input file. Reads and stores the content of the side input file when created. For each received message, the sink: 1-Uses the content of the side input as the Redis hash field (key). 2-Increments the value associated with that key (number of occurrences of that key). 3- The hash name in Redis is determined by the environment variables NUMAFLOW_PIPELINE_NAME and NUMAFLOW_VERTEX_NAME.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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