Different pipes. One standard.

Type to search this site.

Search runs in your browser against a static index built with this site (Pagefind). Nothing you type is sent to a server.

Draft v0.1 · Experimental

How is OpenFlange different from other data tools?

OpenFlange replaces none of the six tools below. For each one this page says what it is in its own documentation’s words, where the two overlap, where the other tool is the better choice, what OpenFlange adds, and how to use them together.

OpenFlange in one sentence. OpenFlange is an open standard for describing, connecting and running data-processing steps, called pipes: each pipe declares its inputs, outputs and parameters, so the same step runs from a terminal, over HTTP, inside a query or on a visual canvas.

Last reviewed: . Is something here wrong or out of date? Open an issue in the specification repository and it will be corrected.

OpenFlange’s own limits

Read the comparisons with these in mind.

  • Draft v0.1, experimental. The specifications may change incompatibly before 1.0, and nothing in them is labelled stable.
  • One implementation. The only runner is the Go reference implementation, whose first release, v0.0.1, is experimental.
  • No scheduler. OpenFlange does not decide when things run, and it has no retries, backfills or run history.
  • No warehouse. It stores nothing: streams go in and come out.
  • A small catalogue. The standard library has 28 pipes. It is not a catalogue of hundreds of connectors.
  • Not always worth it. A one-off script of a few lines may not need a contract at all.

Summary

OpenFlange next to six other data tools: what each one is, when to choose it, and how it works with OpenFlange
ToolWhat it isChoose it forWith OpenFlange
Apache AirflowA platform for developing, scheduling and monitoring workflows.Scheduling and orchestration.An Airflow task runs openflange run.
dbtA framework for SQL transformations of data in a warehouse.SQL transformations inside a warehouse, with lineage.OpenFlange prepares data before the warehouse or processes exports after it.
Unix pipesThe shell connects one command’s output to the next command’s input.Quick text plumbing on one machine.openflange run is a filter in a shell pipeline.
SingerA specification for taps and targets that exchange JSON messages.Replication with an existing tap and target.A pipe reads a tap’s output line by line.
AirbyteA data replication platform with connectors for sources and destinations.A large existing connector catalogue.Airbyte lands the data; a pipeline processes it afterwards.
Apache BeamA unified model for batch and streaming pipelines, executed by distributed runners.Distributed, large-scale stream and batch processing.No tested integration.

Apache Airflow

What it is
Apache Airflow is an open-source platform for developing, scheduling and monitoring workflows, which are written as Python code. (source: What is Airflow?)
Where they overlap
Both describe work as a directed acyclic graph. In Airflow the graph is made of tasks, and it says in what order and when they run. In OpenFlange the graph is made of pipes, and it says which output stream feeds which input.
Where it is the better choice
Choose Airflow for scheduling and orchestration: running work on a schedule or in response to events, handing tasks to executors, and monitoring runs in a web interface. OpenFlange does none of this.
What OpenFlange adds
A declared contract for every step — named input and output ports, schemas, parameters and permissions in an OPENFLANGE.md manifest — that does not depend on the orchestrator. The same step also runs from a terminal or over HTTP.
Using them together
Run an OpenFlange pipeline from an Airflow task that executes a shell command, for example with BashOperator: the task calls openflange run ./pipeline.yaml. Airflow decides when the task runs; the runner exits with status 0 on success and a non-zero status when the run fails or the pipeline is invalid. We have not published a tested Airflow example yet.

Sources: What is Airflow? · Architecture Overview · BashOperator

dbt

What it is
dbt is a framework for transforming data that is already in a warehouse: you write SQL select statements as models, and dbt builds them in the warehouse. (source: What is dbt?)
Where they overlap
Both make transformations modular, testable and easy to keep in version control. A dbt model is SQL executed by the warehouse. An OpenFlange pipe is a program or an expression executed by a runner on a stream of records.
Where it is the better choice
Choose dbt for SQL transformations inside a warehouse, with the lineage graph, documentation and data tests that dbt produces from the project. OpenFlange does not run SQL in a warehouse and does not track lineage between tables.
What OpenFlange adds
Steps that are not SQL — an R script, a Python service, a Go binary, a remote HTTP service — under one declared contract, and steps with several named outputs, such as valid and rejected records.
Using them together
Use OpenFlange around the warehouse: a pipeline that extracts, validates and writes the files that dbt then models, or a pipe that processes rows exported from a dbt model. Calling pipes as functions inside a query is proposed in RFC 0002; it is not a dbt feature.

Sources: What is dbt? · SQL models · About documentation · Add data tests to your DAG

Unix pipes

What it is
A Unix pipeline is a sequence of commands in which the shell connects the standard output of each command to the standard input of the next. (source: POSIX Shell Command Language, 2.9.2 Pipelines)
Where they overlap
OpenFlange builds on Unix pipes. A simple pipe is an ordinary program that reads standard input and writes standard output, and the CLI protocol keeps that convention intact.
Where it is the better choice
Choose plain Unix pipes for quick text plumbing on one machine. A one-off chain of grep, sort and awk needs no manifest and no runner.
What OpenFlange adds
What a byte stream between two processes does not carry: more than one named input or output, declared schemas and parameters that are checked before anything runs, declared permissions, and the same step reachable over HTTP or from a visual canvas.
Using them together
The openflange command reads standard input and writes standard output, so it is one more command in a shell pipeline:
bash
$ printf '%s\n' '{"n":3}' '{"n":1}' '{"n":2}' | openflange run std:filter --param 'expr=item["n"] > 1' | sort
{"n":2}
{"n":3}

Run with the reference runner; the lines after the command are its standard output.

Sources: POSIX Shell Command Language, 2.9.2 Pipelines · GNU Bash Reference Manual, 3.2.3 Pipelines

Singer

What it is
Singer is an open-source specification in which data extraction scripts, called taps, and data loading scripts, called targets, communicate through JSON messages written to standard output. (source: Singer: getting started)
Where they overlap
Both are open specifications that describe a program by what it reads and writes, both allow any programming language, and both move JSON over standard streams. Singer fixes one shape: a tap, a target and one stream of schema, record and state messages between them. OpenFlange describes any processing step, with any number of named ports.
Where it is the better choice
Choose Singer when the job is to replicate data from a source to a destination and a tap and a target for them already exist, or when you need extraction that resumes from saved state. OpenFlange defines no state messages and has no comparable set of existing connectors.
What OpenFlange adds
Steps between and around extraction and loading — filtering, casting, validating, routing rejected records to a separate output — each with a contract that is checked before the run starts.
Using them together
A tap writes one JSON message per line, which is what an OpenFlange pipe of kind records reads. Here printf stands in for a tap; the two pipes keep the record messages and unwrap them:
bash
$ printf '%s\n' '{"type":"SCHEMA","stream":"users","schema":{"type":"object"},"key_properties":["id"]}' '{"type":"RECORD","stream":"users","record":{"id":1,"name":"Ada"}}' '{"type":"STATE","value":{"users":1}}' | openflange run std:filter --param 'expr=item["type"] == "RECORD"' | openflange run std:map --param 'expr=item["record"]'
{"id":1,"name":"Ada"}

Run with the reference runner; the lines after the command are its standard output.

Sources: Singer: getting started · Singer Specification

Airbyte

What it is
Airbyte is an open-source data replication platform: connectors pull data from a source or push it to a destination, and a connection syncs the data at the frequency you configure. (source: Airbyte documentation)
Where they overlap
Both define a contract between independently written programs. The Airbyte Protocol does it for sources and destinations; OpenFlange does it for any processing step.
Where it is the better choice
Choose Airbyte when you need a large existing connector catalogue — its documentation lists hundreds of sources and destinations — together with a platform that runs the syncs. OpenFlange has 28 standard pipes, of which three are sources (stdin, file-source, http-source).
What OpenFlange adds
A contract for the processing steps themselves, in any language, with several named inputs and outputs, runnable without a platform: a folder of files is a complete project.
Using them together
Let Airbyte land the data, then process the landed files or exported rows with an OpenFlange pipeline. No Airbyte connector for OpenFlange exists.

Sources: Airbyte documentation · Connectors · Core concepts · Airbyte Protocol

Apache Beam

What it is
Apache Beam is an open-source, unified model for defining batch and streaming data-parallel processing pipelines, which are executed by a runner such as Apache Flink, Apache Spark or Google Cloud Dataflow. (source: Apache Beam Overview)
Where they overlap
Both separate the description of a pipeline from the engine that executes it, and both call that engine a runner. A Beam pipeline is defined by a program written with one of the Beam SDKs. An OpenFlange pipeline is a YAML file that connects pipes.
Where it is the better choice
Choose Beam for distributed, large-scale batch and stream processing: parallel execution on a cluster, windowing with watermarks and triggers, and runners with exactly-once processing guarantees, such as Flink and Dataflow. The OpenFlange reference runner does not distribute a pipeline across a cluster: distributed execution, checkpointing and exactly-once delivery are deferred, and windows are a proposed feature.
What OpenFlange adds
A contract that is a file, independent of any SDK: an existing executable in any language becomes a step without being rewritten against a programming model.
Using them together
There is no tested integration. A pipe served with the HTTP Pipe Protocol can be called from any program, a Beam transform included, but nothing in the specifications addresses Beam and we have not tried it.

Sources: Apache Beam Overview · Basics of the Beam model · Beam Capability Matrix · Apache Flink Runner · Exactly-once in Dataflow