ArticleslgStudy

computer science

Dataflow

Dataflow is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Dataflow rather than just read about it. In short: In computing, dataflow is a broad concept, which has various meanings depending on the application and context. In the context of software architecture, data flow relates to stream processing or reactive programming.

Key takeaways

  • Dataflow belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Dataflow to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Dataflow from memory before moving on to harder problems.

Reference excerpt

In computing, dataflow is a broad concept, which has various meanings depending on the application and context. In the context of software architecture, data flow relates to stream processing or reactive programming.

Software architecture Dataflow computing is a software paradigm based on the idea of representing computations as a directed graph, where nodes are computations and data flows along the edges. Dataflow can also be called stream processing or reactive programming. There have been multiple data-flow/stream processing languages of various forms (see Stream processing). Data-flow hardware (see Dataflow architecture) is an alternative to the classic von Neumann architecture. The most obvious example of data-flow programming is the subset known as reactive programming with spreadsheets. As a user enters new values, they are instantly transmitted to the next logical "actor" or formula for calculation. Distributed data flows have also been proposed as a programming abstraction that captures the dynamics of distributed multi-protocols. The data-centric perspective characteristic of data-flow programming promotes high-level functional specifications and simplifies formal reasoning about system components.

Hardware architecture

Hardware architectures for dataflow was a major topic in computer architecture research in the 1970s and early 1980s. Jack Dennis of the Massachusetts Institute of Technology (MIT) pioneered the field of static dataflow architectures. Designs that use conventional memory addresses as data dependency tags are called static dataflow machines. These machines did not allow multiple instances of the same routines to be executed simultaneously because the simple tags could not differentiate between them. Designs that use content-addressable memory are called dynamic dataflow machines by Arvind. They use tags in memory to facilitate parallelism. Data flows around the computer through the components of the computer. It gets entered from the input devices and can leave through output devices (printer etc.). An example for a hardware structure like in a dataflow machine can be found in analog computers or more precisely differential analyzers.

In hardware accelerators composed of many processing elements that collectively coordinate to parallelize a compute kernel, dataflow refers to the pattern in which data is transferred between processing elements to satisfy data dependencies and complete the computation. These architectures inherit many of the concepts of dataflow architectures and apply them to more specialized workloads, such as AI acceleration. However, unlike dataflow architectures, the computation is not actively driven by data dependencies, rather, the simple data dependencies of the accelerated kernel are used to program the whole architecture prior to its execution.

Concurrency A dataflow network is a network of concurrently executing processes or automata that can communicate by sending data over channels (see message passing.) In Kahn process networks, named after Gilles Kahn, the processes are determinate. This implies that each determinate process computes a continuous function from input streams to output streams, and that a network of determinate processes is itself determinate, thus computing a continuous function. This implies that the behavior of such networks can be described by a set of recursive equations, which can be solved using fixed point theory. The movement and transformation of the data is represented by a series of shapes and lines.

Other meanings Dataflow can also refer to:

Power BI Dataflow, a Power Query implementation in the cloud used for transforming source data into cleansed Power BI Datasets to be used by Power BI report developers through the Microsoft Dataverse (formerly called Microsoft Common Data Service). Google Cloud Dataflow, a fully managed service for executing Apache Beam pipelines within the Google Cloud Platform ecosystem.

See also The dictionary definition of dataflow at Wiktionary

Binary Modular Dataflow Machine (BMDFM) Communicating sequential processes Complex event processing Data-flow diagram Data-flow analysis, a type of program analysis Data stream Dataflow programming (a programming language paradigm) Erlang (programming language) Flow-based programming (FBP) Flow control (data) Functional reactive programming Lazy evaluation Lucid (programming language) Oz (programming language) Packet flow Pipeline (computing) Pure Data State transition TensorFlow Theano Ward-Mellor methodology

References

Worked examples

Example 1 — a first encounter with Dataflow

Start with the simplest possible case. Write down what Dataflow claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Dataflow before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Dataflow ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Dataflow

In research
Dataflow appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Dataflow in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Dataflow is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer architecture, Models of computation, so understanding it makes those chapters shorter.
In everyday life
Look for Dataflow outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Dataflow” →

How to study Dataflow in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Dataflow means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Dataflow out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Dataflow in simple terms?

In computing, dataflow is a broad concept, which has various meanings depending on the application and context. In the context of software architecture, data flow relates to stream processing or reactive programming.

Why does Dataflow matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Dataflow?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Dataflow.

Tags

  • Computer architecture
  • Models of computation

Keep exploring