dbsp

Module circuit

Source
Expand description

Synchronous circuits over streams.

A circuit consists of operators connected by streams. At every clock cycle, each operator consumes a single value from each of its input streams and emits a single value to the output stream (except that nested circuits can execute multiple operations for each outer clock tick).

Use RootCircuit::build to create and populate an circuit that executes in the calling thread, or Runtime::init_circuit to create a multi-circuit, multi-worker threaded runtime. These functions return a CircuitHandle or DBSPHandle, respectively, that control the circuits’ execution, plus, when used in the recommended way, additional input handles for feeding data into the circuits and output handles for obtaining their output.

Re-exports§

Modules§

Structs§

  • A config for instantiating a multithreaded/multihost runtime to execute circuits.
  • A handle to control the execution of a circuit in a multithreaded runtime.
  • A host for some workers in the Layout for a multi-host DBSP circuit.
  • A multithreaded runtime that hosts N circuits running in parallel worker threads. Typically, all N circuits are identical, but this is not required or enforced.
  • Handle returned by Runtime::run.
  • Configuration for persistent storage in a PipelineConfig.

Enums§

Type Aliases§

  • Local data store shared by all workers in a runtime.