Kappa Architecture 00:00:01 One ticket machine can rebuild a scoreboard An arena stores every scoring event in an append-only history. A processing job reads it and maintains the scoreboard. When the rules change, a new copy of the same logic can read the history again. E1 to E4 are appended. The job has handled three and is reading the fourth. E4 is counted. The position is stored with the result. E5 arrives and is counted. Nothing was removed from the log. The app reads the table. It never reads the log. The serving table answers spectators quickly. Its rebuildability depends on the retained events, the matching input schema and enough information to reproduce the chosen scoring rule. 00:00:44 Run the corrected scoreboard beside the old one A refund has been counted as a sale. Start a new job that understands refunds and writes into a different table. Both jobs must continue while new events are still arriving. Refunds were counted as sales. Keep the old view isolated from the rebuild and choose how to show its known error to users. Version 2 has handled E1 to E3. The refund is left out. Users still see table 1. E6 arrived meanwhile. Both jobs have counted it. Table 2 says 5, table 1 says 6. After a few quiet days the old job stops and its table is deleted. Verify reconciled totals at the same source positions, and move the serving pointer only after the corrected job catches up. For a financial display, flag or suspend a known incorrect figure when appropriate. 00:01:34 A fast reader may still take a month Imagine ten thousand events per second keep arriving throughout a replay. The total read rate is only useful after subtracting those new arrivals. The rest is available to drain yesterday's backlog. Only 10,000 a second are left for the backlog, so 30 days take 30 days. With ninety thousand events per second of spare capacity, the illustrated thirty-day backlog takes about eighty hours. With one hundred ninety thousand events per second spare, it takes roughly thirty-eight hours. The job never catches up. If the replay rate only matches live input it never catches up. Estimate recovery time with sustained capacity, then check storage bandwidth, downstream write capacity and the cost of running both tables. 00:02:17 Compare the diagrams at a rule change Lambda has a distinct historical batch path and a recent speed path. Kappa applies a stream transformation to live data and replayed events. The replay can temporarily require another job and output store. Kappa has one road, so each rule is written once. Lambda starts its batch job. Kappa replays the log. Both must keep all raw events somewhere. Kappa keeps them in the log. A replay needs a second job and a second table for a while. Both need an authoritative history covering their promised rebuild horizon. One code path simplifies rule maintenance, although restoring a large history still consumes real time and resources. 00:02:58 The first five days have fallen off the log A correction needs twelve days of input and the configured log retains seven. Earlier events exist only if the team kept a longer archive or tiered history with compatible offsets and schemas. This example topic was configured with a seven-day retention window. The incident is discovered twelve days after the error began. A replay can only start 7 days back. Days 8 to 12 are gone from the log. A copy of the topic in object storage has all 90 days. Version 2 reads the files first, then continues in the log. Keep history as long as you may need to recompute it: in the log, in its remote tier, or as files. Measure the oldest recoverable event and rehearse a rebuild. One durable history, one transformation and a validated pointer switch make the architectural idea concrete.