This directory contains a collection of examples that demonstrate the use of the elfo
ecosystem.
Run cargo run --bin <name>
to execute specific example if not specified something other.
Describes common concepts of elfo
, also how to work with configuration, combine actors together, enable metrics, logs and dumps.
Shows how to connect distributed actor groups.
For simplicity, it uses one common binary that runs a specific service based on the CLI argument:
cargo run --bin network --features network -- alice &
cargo run --bin network --features network -- bob
Demonstrates how to attach streams to an actor's context.
Shows how to write functional tests for your actors.
Run it as cargo test --bin test --features test-util
.
Demonstrates how to attach other channels to an actor's context, e.g. tokio::sync::broadcast
.