ObzenFlow 0.3.0 is on crates.io

Durable execution that streams.

ObzenFlow gives Rust developers a simple, ergonomic, open-source framework for building durable workflows. Get started from a single binary without any coupling to third-party infrastructure or databases.

Compose batch and live data in one flow.

Data composition is at the heart of ObzenFlow. Ingest from one or more sources of data, mix and match batch data with live data. Use one of our built-in source connectors or create your own. Easily apply middleware to your logic.

flow! {
    name: "http_ingestion_piggy_bank_demo",
    journals: disk_journals(PathBuf::from(
        "target/http-ingestion-piggy-bank-demo-logs"
    )),

    stages: {
        // Ingestion
        accounts = source!(AccountOpened => accounts_source);
        tx = async_infinite_source!(
            LedgerEntry with { rate_limit(50.0) } => tx_source
        );

        // Processing
        posted = join!(
            catalog accounts: AccountOpened,
            LedgerEntry -> PostedEntry => post_entry
        );
        checkbook = stateful!(
            PostedEntry -> CheckbookSnapshot => checkbook_handler
        );

        // Delivery
        printer = sink!(
            CheckbookSnapshot => printer_sink
        );
    },

    topology: {
        (accounts, tx) |> posted;
        posted |> checkbook;
        checkbook |> printer;
    }
}
The piggy bank flow, from inputs to deliveryThe accounts source loads a YAML file once and the tx source streams live HTTP input, each publishing to its own journal. The posted join enriches transactions with account data. Checkbook maintains balances by account and journals snapshots. The printer sink writes each snapshot as a console table and records the delivery outcome in its own journal.accountsLoad reference datatxStream transaction datapostedStream-table joincheckbookAccumulate bank balancesState keyed by accountprinterConsole sinkprintsConsole

The complete bank service is included in the ObzenFlow repository. Run it locally as a single binary with one command.

cargo run -p obzenflow \
    --example http_ingestion_piggy_bank_demo \
    --features prometheus,web-host

How can you run a flow?

Run your flow, then replay or resume from any archive.

ObzenFlow provides an ergonomic way to build intelligent streaming workflows for the next era of computing, while making them reconstructable, verifiable, replayable, and resumable.

What kinds of durable workflows can you build?

Built for high-consequence systems.

A high-consequence system is one where being wrong costs something real, like a card charged twice, a fee charged on every retry of one payment, a night of transactions that monitoring never saw, or an AI job that pays again for different answers. ObzenFlow was built for exactly these systems, and correctness is the constraint the rest of the design bends around.

Order & Payment Flows

A charge or a shipment must happen exactly once, and the decision trail has to survive the process that made it.

See the use case

Ledgers & Accounts

When a fee rule is found unfair, every payment it decided has to be decided again, years after the fact. Each fee here names the payment and the rule behind it.

See the use case

Durable AI Inference

A model can answer the same prompt differently every time, so an AI job that crashes and starts over pays again for different answers. Every answer here stays in the record.

See the use case

Overnight Transaction Monitoring

A monitoring run that sets transactions aside without counting them can miss years of laundering. Here every transaction is counted at every step, every night.

See the use case

What do you get out of the box?

Ships with the resilience patterns you need.

ObzenFlow is a durable execution runtime built with site reliability engineering teams in mind. It ships with critical resilience patterns like circuit breakers, rate limiters, retry, and backpressure. It also comes equipped with operational integrations like Prometheus support, plus a CLI for detailed root cause analysis of archival runs. Everything you need on day one for operational success.

What happens when things go wrong?

Built-in resilience patterns

Rate limiting, retries, backpressure, and circuit breakers are available as composable controls. Configure protection where the application needs it, while handlers remain focused on business decisions.

See the resilience policy

How are API calls handled during replay?

First-class side effects

Every non-deterministic operation in ObzenFlow can be wrapped with an effect. During a live run side effects are processed. During replay and resume the original run's outcomes are used to rehydrate your flow.

See declared effects

How can I support ObzenFlow in production?

Integrations and operations included

Prometheus metrics, health and readiness endpoints, and graceful shutdown provide the operational surface. HTTP, AI-provider, and PostgreSQL integrations connect the application to its environment.

Explore built-in integrations

How can I understand what happened?

Causal history you can inspect

Run obzenflow show on any run (either live or an archive) to understand precisely what happened and why. Each event-sourced record carries a vector clock, which tells you what happened and in what order.

Inspect a real run

How does it actually work?

Every stage is an eventโ€‘sourced state machine.

Each stage records its decisions and effect outcomes as facts in an append-only journal, and that journal becomes the next stage's input. Because state is a fold of those facts, you can replay and verify a run, or resume it after a crash, without repeating committed effects.

Deterministic reconstruction

Journaled inputs rebuild the same state across deterministic and order-certified regions. Verification catches divergence instead of silently accepting it.

Exactly-once processing

Once an effect outcome is committed, reconstruction reuses it instead of calling the dependency again. A call cut off before its outcome was committed is made again, and the guarantee declared on the call says how it still takes effect once.

Durable progress

Progress becomes durable when a fact is committed to the stage journal. If the process dies, ObzenFlow reconstructs the run from those committed facts rather than treating uncommitted work as progress.

Resume over restart

Resume treats an interrupted run as unfinished rather than failed. The same run continues from its journals, finished work untouched, and one command drives it the rest of the way to done.
ObzenFlow monkey logo.

How is ObzenFlow licensed?

MIT and Apache 2.0, like Rust itself.

ObzenFlow is available under the MIT License or Apache License 2.0, at your option. Both are OSI-approved licenses, so the framework stays open to inspect, modify, and build on.