This crate demonstrates a minimal ping-pong interaction using the Flawless framework for durable execution and memory passing over HTTP. It features two actors, Pinger and Ponger, that send a "ball" back and forth via HTTP requests until the number of rallies is reached.
- Durable Execution: Uses Flawless workflows for reliable, long-running tasks.
- Memory Passing Over HTTP: Communication between actors via HTTP post requests.
- Idempotent Actions: Ensures durable message handling in case of failure.
- Clone the repository and navigate to the project directory.
- Ensure Flawless CLI is installed and running:
flawless up
- Run the example:
cargo run
The Pinger and Ponger actors will start, and they will ping-pong a ball back and forth with a 1 second delay over HTTP until the rally count is reached.
- Kill the flawless server while the rally is going.
- Start it back up again and observe the power of durable execution:
flawless up
- Rust
- Flawless CLI for execution orchestration