Lambda Architecture 00:00:01 Two scorekeepers at the stadium The scoreboard clerk reports goals the moment they arrive. The official scorer can replay the original record to correct the total later. Lambda architecture combines a fast recent view with an independently computed historical view. Each event is appended to the master data and is also counted by the speed job. Before the first batch run the live view answers alone: 798. Two events were missed. The batch view says 800 for everything before 00:00. The live view drops that part and keeps the 50 events since 00:00. At 10:00 the answer is 800 from the batch view plus 280 from the live view. Name the handoff exactly. A query must know what range the official view already includes and add only recent events beyond that boundary. 00:01:04 The finish time is the wrong dividing line The overnight job reads Monday's data and finishes partway through Tuesday. Meanwhile, Tuesday's first events have already reached the fast counter. Follow the first fifty through both descriptions of the cutoff. Monday is in the batch view. Tuesday until 02:00 arrived while the job was running. If the live view forgets everything before the end of the job, 50 events are in neither view. If the live view keeps Monday, Monday is counted twice. The boundary is the last moment the batch run read, not the moment it finished. Publish the historical view together with its input boundary. A timestamp alone can be ambiguous with late data, so implementations often need source positions or a reproducible snapshot identifier. 00:01:57 A corrected function leaves a wrong total behind A new scoreboard release accidentally awards two points for every click. Fixing the function stops future errors, but the incorrect aggregate already stored in the live view remains until it is rebuilt or displaced. Both views are right. Version 2 adds 2 per click. After 100 more clicks the live view is 100 too high. Version 3 counts well, but the wrong 100 are still in the live view. The batch job counts raw events: 1,200. The live view before the cutoff is dropped, with the error. Recomputation helps only if the authoritative raw inputs and correct rule survived. A bug shared by both implementations can produce two agreeing but wrong numbers. 00:02:50 Both scorers need the same rulebook The official scorer starts excluding test events and the live scorer keeps counting them. Compare their outputs over the same closed interval, using the same event set and boundary. Both pipelines use the same rule. Batch leaves out 40 test events. The speed job was forgotten. Both call the same function. Only the plumbing is different. Compare each finished day. A difference above 0.5% raises an alert. Share the rule where practical and test with known examples and late arrivals. A tolerable discrepancy on a live screen could still be unacceptable on an official invoice. 00:03:34 The official scorer misses a night A failure leaves the official boundary stuck on Monday. The live view now has to retain data for a longer period, and tomorrow's reconciliation has more work to catch up. The batch view covers Monday. The live view covers Tuesday. No new batch view. The cutoff stays where it is. The live view now covers two days. It needs space for that, so plan for three. It reads everything up to Thursday 00:00 and takes over both days. Size live retention for a missed run and its recovery. Remember the design by its two scorekeepers, one official boundary, and one query that combines non-overlapping portions.