a-target-and-cron/

directory
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0

README

Example 10: Target property and Cron feature

Steps to run the example

1. Start Zipper Server
yomo serve -c ../config.yaml
2. Start sfn-1-executor

This stateful serverless function will emit data every 2 seconds.

go run sfn-1-executor/main.go
3. Start two instances of sfn-2-sink to consume the data

First one start with USERID=alice, this instance will consume the data with target property set to alice.

USERID=alice go run sfn-2-sink/main.go

Second one start with USERID=bob, this instance will consume the data with target property set to bob.

USERID=bob go run sfn-2-sink/main.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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