Book 2 · Lesson 2.1

Why event-driven?

  • Compare sync, async-in-process, and event-driven architectures
  • Explain why Team Radar decouples HTTP from enrichment
  • Name tradeoffs of Kafka operational complexity

Prerequisites: 1.12

Book 1 ended with a webhook that returns before the pipeline finishes. Book 2 explains why that shape is intentional.

Three patterns

Use EventPatternComparison to toggle:

PatternHTTP client waits for LLM?Survives worker restart?
Sync chainYesNo
Async tasks in one processNoRisky
Event log (Kafka)NoYes — replay from offset

Millipede choice

ingestion validates and publishes — llm-worker and analyzer catch up at their own pace. Managers see lag in metrics, not blocked webhooks.

Teach-back prompt

When would sync still be the right choice?

Lesson 2.1 check

1. Event-driven architecture decouples…