Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add example for Cron and Target #715

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Conversation

fanweixiao
Copy link
Member

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
image

@fanweixiao fanweixiao added the feat/serverless Feature: Serverless label Feb 5, 2024
@fanweixiao fanweixiao self-assigned this Feb 5, 2024
Copy link

vercel bot commented Feb 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
yomo ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2024 10:12am

@fanweixiao fanweixiao merged commit 6ebf28c into master Feb 5, 2024
5 checks passed
@fanweixiao fanweixiao deleted the example/target-and-cron branch February 5, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/serverless Feature: Serverless
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants