Skip to content

infinyon/stateful-dataflow-examples

Repository files navigation

Stateful Dataflows Examples

This repository offers a comprehensive range of dataflow examples from basic to advanced levels, designed to familiarize you with the concepts and techniques essential for deploying Stateful Dataflows.

Prerequisites

  • Install and Updated Rust

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh rustup update
  • Install Fluvio and SDF

    curl -fsS https://hub.infinyon.cloud/install/install.sh | bash fvm install sdf-beta11
  • Run SDF setup to install dependencies

sdf setup

You might be prompted to install wasm dependency. Copy paste the command and run.

  • Start Cluster

    fluvio cluster start

DataFlows

Dataflow examples:

Primitives

Examples centered around primitive concepts and operations.

Packages

Step-by-step instructions on how to build your own package:

Pre-built packages used in dataflows:

References

Troubleshooting

Stateful DataFlow workers continue to run even if you remove a fluvio cluster. If you delete a cluster and start a new one, or if you unintentionally start a dataflow in a cluster and need to clean up the workers, you can use the following command:

ps aux | grep sdf
kill -9 <PID>
rm -rf ~/.sdf/local/

In the above example local is the cluster name & profile name. If you have a different cluster name, replace local with your cluster name.

About

Stateful Dataflows tutorials and examples.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7