Skip to content

ADR-0001 · Python control plane, Rust engine

Status: Accepted · 2026-09-30

Flux has two very different workloads: coordinating state (config, versions, schedules, rules, auth, UI APIs) and moving/transforming data at volume. The prototype was all Python + DuckDB. We need true multi-core concurrency, predictable memory, and fast start-up for per-run pods.

  • Control plane in Python (FastAPI): flux-api owns state and intent.
  • All engine and compute in Rust: runner, connectors, preview, dataset server, Forge.
  • The boundary is a versioned pipeline spec (JSON Schema, see design 01), REST between services, and NATS events.
  • Python stays fast to iterate on for product logic; Rust carries the hot path.
  • Two toolchains in CI. Mitigated by one monorepo and shared schema tests.
  • The spec must be validated identically on both sides (golden tests).