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.
Output tapes become input tapes.
Each stage records its emitted events in an append-only journal. Downstream stages read that journal as their input tape, each advancing its own cursor. The recorded history remains available for inspection and replay. Automata theory in action!
Join live streams with reference data.
Stream-table joins are a powerful primitive in stream processing, and ObzenFlow brings that primitive to durable execution. For instance load a table of accounts and then match transactions to that reference data. Notice how all the types line up!
Easily manage state.
ObzenFlow gives you easy-to-use primitives for accumulating and managing state. Reduce events, group by key, or track the top N. Emit on every update, by count, on a timer, or when input ends.
Durable delivery, backed by contracts.
Sinks deliver journaled facts and record delivery outcomes. Contracts check that each consumed event has a matching receipt. Explicit idempotency declarations govern redelivery during replay and resume.
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;
}
}
