๐—•๐˜‚๐—ถ๐—น๐—ฑ ๐—” ๐——๐˜‚๐—ฟ๐—ฎ๐—ฏ๐—น๐—ฒ ๐—–๐—Ÿ๐—œ ๐—ง๐—ผ๐—ผ๐—น ๐—œ๐—ป ๐—ฅ๐˜‚๐˜€๐˜

Build a CLI tool with Rust. Use event sourcing to make it durable.

This tool is a to-do manager. It does not save the final state. It saves every action.

Actions include:

Why use this method?

The system uses three parts:

To keep it fast, use snapshots. A snapshot saves the state. The tool loads the snapshot. It reads the new events.

Testing is simple. Use unit tests for state changes. Use integration tests for the CLI flow.

Source: https://dev.to/therizwansaleem/building-a-small-durable-event-sourced-cli-tool-in-rust-k3j