From Calling to Eventing

Author

Romain De Groote

Published

24 September 2026

Abstract
Step-by-step summaries of the SIN.04028 tutorial “From Calling to Eventing”, from direct method calls to an Event-Driven Architecture over MQTT. Process Control, given by Reto Konig, University of Fribourg, autumn semester 2026.

About these notes

These notes summarise the tutorial “SIN.04028 — From Calling to Eventing”, worked through step by step. The tutorial itself lives next to this book, in SIN.04028-From-Calling-to-Eventing/README.md, and belongs to the Process Control course given by Reto Konig at the University of Fribourg (autumn semester 2026).

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 tutorial rebuilds the same system again and again while asking 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.

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.

Building this book

The three books come from one source:

./render-all.sh              # figures, then html + pdf for en, fr, de
./render-all.sh --serve      # …and serve _book/ on http://localhost:8000

_book/ holds the English book, _book/fr/ the French one and _book/de/ the German one; the language menu in the sidebar switches between them and remembers the choice. A single quarto render builds English only and empties _book/, which removes the other two — so use the script.