Process Control

Author

Romain De Groote

Published

6 October 2026

Abstract
One small program, rebuilt step by step from direct method calls to an Event-Driven Architecture over MQTT: what moves at each step, and who ends up knowing whom.

About these notes

These notes follow one small program through a long series of rebuilds, from direct method calls to an event-driven architecture over MQTT. Every rebuild leaves the program doing exactly what it did before, and changes who knows about whom.

The program under construction never changes: you type a line, it comes back rotated by 13 letters.

keyboard → ROT13 → console

What changes is everything around it. The same system is rebuilt again and again, and each rebuild asks three questions, in this order:

Who knows whom?

Who owns what?

Who decides how the system is wired together?

One summary is added here each time a step is finished, so the book grows at the pace of the work. Each summary says what the step did, what was observed when it ran, and what moved architecturally — usually a piece of knowledge that changed hands.

Based on material by Reto Konig, University of Fribourg.

How to read the diagrams

Every diagram exists once as a drawing and three times as a language. In the web version, a diagram that carries a message flow has a small play bar under it: Play walks one message through the whole chain, One hop advances a single step, and Reset puts it back. Boxes light up as the message reaches them, so you can see which component is waiting and which one is working.

In the PDF, and in a browser with JavaScript switched off, the same picture is there — just still. Nothing in the notes depends on the animation.