internalsGet Pro

Module 06 · Lesson 6 of 11Pro

Late and out-of-order records in batch pipelines

Level
Intermediate
Topic
Data pipelines: ETL and ELT
Reading time
17 min

When you finish this page you can

  1. Tell late records from out-of-order ones by comparing event time, version time and load time.
  2. Measure how late each source’s records arrive, and choose how many days a nightly transform rebuilds.
  3. Pick the newest version of a record by the source’s own version time, never by the order rows were loaded.
  4. Close a day after a fixed window and book anything later as an adjustment on the day it arrived.
  1. Window functions: running totals and rankings17 min
  2. Idempotent pipelines: safe to run twice16 min
  3. Incremental loads with watermarks17 min

Monday’s revenue keeps moving

is an online store in India. It has grown since the earlier modules and now takes about 500,000 orders a day. Meera, a data engineer, loads them every hour from the orders database’s read replica into Snowflake, and four marketplace partners, A to D, send daily files of the sales they make for Kartly. Daniel, who leads finance reporting, reads the daily revenue report at 07:00.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan