AlgoViz

Kappa architecture

medium 27 min

Kappa architecture uses one stream job and one log that keeps its events.

Where it shows up

The same pattern appears across everyday software.

  • The original proposal

    Kreps describes keeping, for example, 30 days in Kafka when you want to reprocess up to 30 days, and names the costs: twice the output storage for a while, and a database that can take the load.

  • Apache Kafka

    Its introduction says that events are not deleted after consumption and that retention is set per topic. This is the property Kappa depends on.

  • Kafka tiered storage

    Its documentation describes a local and a remote tier for a topic, so longer history does not have to stay on the brokers' disks.

  • Apache Flink

    The same program can run over a topic or, in batch execution mode, over bounded input with the same final results: useful for a backfill.

  • Search index rebuild

    A design example: product changes are a topic. A new index version reads it from the start, then an alias is moved.

  • Fraud features

    A design example: a new feature is computed for past payments by replaying them, so the model can be trained on it.