Control Plane and Data Plane

An architectural separation between the control plane (which decides policies and task routing) and the data plane (which executes heavy workloads and data processing), ensuring monitoring and coordination never freeze under load.

General Meaning

Widely used in network routers and distributed cloud platforms like Kubernetes, this pattern separates a system into two distinct planes.

The Control Plane decides where packets or tasks should go (managing routing tables, leases, and policies), while the Data Plane performs the actual high-volume forwarding or heavy computation according to those instructions. Decoupling the two ensures that even when data plane workloads spike or hang, administrators and automated controllers can still monitor, reschedule, and govern the system.

Why It Matters

  • Preventing heavy workloads from freezing the control loop: Even if a data plane worker hangs or runs a long job, the control plane continues running independently to detect timeouts and reassign work.
  • Keeping the control plane lightweight and deterministic: Scheduling and state transitions remain simple, fast, and predictable Python and SQL logic.
  • Simplifying scaling and worker replacement: Worker counts or AI models in the data plane can be swapped or scaled without altering control plane policies.

How the Site Factory Uses It

The Site Factory strictly separates its Control Plane—the dispatcher patrol.py, macgakari, and Cloudflare Workers (honbu-dispatcher with D1 leases)—from its Data Plane, which consists of thin AI workers (agent_worker.py across Claude, Codex, Cursor, Antigravity, and local LLMs) and the Python site engine.

The control plane uses zero AI models, running fast, deterministic Python and SQL to reclaim stale tickets, enqueue jobs into D1, and squash-merge verified PRs before exiting immediately. The data plane workers then pull leased tasks and spend minutes or tens of minutes performing heavy LLM inference, code generation, testing, and static site builds in isolated workspaces.

Caveats & Operational Rules

  • The control plane must never perform data processing itself: If patrol.py invokes an LLM to fix even a tiny issue, the entire 15-minute patrol cycle stalls, blocking task dispatch and PR merges across all repositories.
  • The data plane must not unilaterally alter global policy: Workers focus solely on executing their single leased job and must never reorder the global queue or mutate system-wide orchestration state.

Related Terms

References

  • Book: Mark Richards & Neal Ford, *Fundamentals of Software Architecture*, Chapter 17 (Microkernel Architecture / Orchestration)

Verified: 2026-11-08