Skip to content
← All modules

05

Building a Workflow Engine

What decisions does building one actually force?

The architecture, and two opposite answers to one question: who assembles the workflow, and what is the durable artifact.

6 lessons · 7 checks · 53 min

Why it sits here

Fifth because it is where the previous four collide in one product. Module 02 told you what an engine does; this is what it costs to build, read from the source of a real one rather than its marketing. It also contains the sharpest live question in the space, which is what verifies a generated artifact.

Lessons

  1. Four communities coined this separatelyPick which altitude you mean before writing a line, because the choice decides your unit of retry.6m
  2. The execution model, and the scheduler lessonOne decision here is worth more than the rest of the module combined.9m
  3. The data model between stepsThe decision that shapes everything downstream, and the one place a major engine is quietly leaky.11m
  4. Persistence, history and the retention squeezeFour schema decisions to copy, and one knob you cannot avoid turning.8m
  5. Is a workflow code or data?The deepest question in the module, and it has an answer.8m
  6. Who assembles the workflow?Two products answer one question opposite ways. The third position already won, which changes what the live question is.11m

Pre-reading

10 sources · ~5h if you read all of it

Ranked, not exhaustive. The lessons stand on their own, so treat the first tier as the genuinely load-bearing sources and the rest as depth when a lesson makes you want it.