Skip to content
About
Main content
Operations

Orchestration & Workflow

How do you make unreliable, unobservable, irreversible side effects behave like a pure function of a time interval?

Who this mechanism is for: a developer who writes code, schedules jobs with or has seen a tool such as Airflow, and knows basic SQL, but has never studied how a really works inside. You do not need any database or distributed-systems background. Every technical term is explained the first time it appears, and again in the glossary at the end.

The story we will follow

Tomás is a data engineer at Marigold Market, an online grocery company. Every night a pipeline builds the daily_sales table. It copies the day's orders out of the shop database, cleans them with a Spark job (a tool that processes large data on many machines), loads them into a cloud data warehouse, and finally refreshes the dashboard that the finance lead, Nadia, reads at 07:00. Other teams also depend on these tables: the marketing team, the refund team and a partner company that sends delivery files.

At the start the pipeline is a handful of cron entries (scheduled commands). During the next quarter Tomás will move it to a workflow and meet eight problems, one at the start of each article below. Each problem looks like a bug. Each one is actually a structural limit of : a thing that the coordinator cannot know, cannot undo, or cannot wait for. At the end of each article we go back and solve the problem with that part's mechanisms.

This is the main idea of this whole mechanism:

How this mechanism is organized

After that: a summary, hands-on labs, interview questions and a glossary.

One request: read the one-sentence ending of each section (the quoted line in italics). Each is the whole lesson of its section in short form.

What do I do, and what does each option cost?

Can I see it myself?

Can I reason about it under questioning?

Trade-offs

The tensions this mechanism takes a position on. Each recurs across mechanisms.

Recurring principles

Ideas this mechanism meets that keep coming back, mechanism after mechanism.

Show all 11 principles