Skip to content
aiqbenchAI & Quantum Intelligence
NewsInsightsBenchmarksSkillsAsk AILearnAbout
...Loading your session
NewsInsightsBenchmarksSkillsAsk AILearnAbout
  1. Future Jobs
  2. ›
  3. Data & Intelligence Engineer
  4. ›
  5. Lesson 2 of 8

Ingestion — Batch, Streaming & CDC

Intermediate¶ Read · 3 min⚑ Mission · 25 min◆ Test · 5 questions✓ Checked Nov 30, 2026

You'll be able to:

You can pick an ingestion pattern (batch, micro-batch, streaming, change-data-capture) for a given source and articulate the tradeoffs in latency, cost, and operational complexity.

A team spends six weeks building a Kafka pipeline so their data is available within seconds. The dashboard it feeds is reviewed once each morning over coffee. They now carry consumer lag alerts, partition rebalancing, and an on-call rotation, in exchange for latency nobody will ever perceive. Choosing an ingestion pattern badly is expensive in a way that does not show up until you are maintaining it.

The four patterns

Batch moves data in scheduled bulk loads — simple, cheap, and easy to reason about. Micro-batch does the same on a tight interval, trading a little efficiency for minutes-level freshness. Streaming processes events continuously as they arrive. Change data capture reads the source database's write-ahead log, turning every insert, update, and delete into an event.

The decision rule that experienced engineers apply, and beginners skip: choose based on how the data is consumed, not on how fresh it could theoretically be. Latency is a business requirement, and most requests for real-time data actually mean "I do not want to wait until tomorrow" — which hourly batch satisfies completely, at a fraction of the operational cost.

Why CDC is different from an incremental query

The common approach to incremental loading is a periodic query filtering on an updated-at column. This looks equivalent to CDC and is not, for one important reason: it can only see the current state of a row. A row that was deleted is simply absent, indistinguishable from a row that never existed. A row updated twice between runs shows only its final value.

CDC reads the log itself, so it captures every state transition including deletes. If your source system ever hard-deletes rows, an incremental query will drift away from the truth permanently and quietly.

Failure modes

Silent delete blindness — incremental ingestion on an updated-at column never observes hard deletes, so rows accumulate in the warehouse forever. Signal: warehouse row count exceeds the source and the gap widens month over month.

Backfill storm — a CDC connector loses its position and restarts from the beginning of the retained log, replaying months of history at once. Signal: write volume and warehouse spend jump by orders of magnitude within an hour, with no change in source activity.

Watermark gap — a batch job selects rows where updated-at is greater than the previous run's end time (or the maximum updated-at it saw). Rows that commit late — written by a transaction that began before the scan but committed after it — carry timestamps inside the window that was already scanned, so they are never picked up. Watermarking on the previous run's start time minus a safety margin longer than the longest-running transaction, and de-duplicating the overlap that produces, is the standard mitigation. Signal: a small, random scatter of missing records with no errors anywhere — the hardest ingestion bug to detect, because nothing looks wrong.

Schema evolution break — a producer adds a field, and a consumer with a strict schema refuses the message. Signal: consumer lag climbing steadily while the source system reports perfect health.

Explaining this to stakeholders

On the three patterns: batch is mail delivered once a day, streaming is a phone line held permanently open, and CDC is a security camera on the database — instead of photographing the room each night and guessing what moved, you have a recording of every change.

On why the team is not building streaming: a phone line that is always open costs more than a mailbox, and it only pays off if someone is always listening. Nobody reads this report before 9am.

On the cost of freshness: each step from daily to hourly to instant roughly multiplies the operational burden. The honest question is not "would you like it faster" — everyone says yes — but "what decision would you make differently if you had it faster."

Curated Materials

1h

The deep work happens here — the lesson is your briefing.

  • Debezium: Change Data Capture ConceptsDocs· 20 min
  • Kafka: Streams ConceptsDocs· 25 min
  • What Data Pipeline Architecture Should I Use? (Google Cloud)Tutorial· 15 min

Live on aiqbench

This lesson's subject on the rest of the site, today.

In the news, last 30 days

  • RoboIntervene: A Dataset for Learning When to Step In and How to Recover Robot Policy ExecutionarXiv · Dec 4
  • HuGEM: A Humanoid Manipulation Dataset with Paired Goal- and Execution-Level InstructionsarXiv · Dec 4
  • Human-Agent Forensics and Recovery of an Extreme-Scale Climate DatasetarXiv · Dec 4
More news on this subject →

Go further

  • Benchmark report cardsWhat each benchmark measures and where it falls short.
  • Ask AI about this lessonOpens Ask AI with a question about this lesson, answered from the news archive with sources.
  • Agent skills for this workReady-made skills for AI coding agents, checked and rated.

Test your knowledge

5 questions in 100 seconds, on a page of its own. Read everything above first.

Test your knowledge →

Module Mission

20–30 min

For three sources — a nightly Postgres export, a Kafka clickstream, and a third-party SaaS API — choose an ingestion pattern for each and justify it in one sentence, calling out the failure mode you are accepting.

Loading your work…

← Previous lesson1. Foundations of Data EngineeringNext lesson →3. Data Modelling & Transformation
aiqbench
AI & Quantum Intelligence© aiqbench. All rights reserved.

Feeds:RSS·JSON Feed

LanguageEnglish·Românăbeta
NewsAI & TechQuantumInsights
ExploreBenchmarksLearn
CompanyAboutTrustLegal noticeTerms of ServicePrivacy PolicyCopyright noticesData erasureReport content

The aiqbench take, the insights, the daily digest and Ask answers are written by AI models from the sources shown, without editorial review before publication. They may contain errors — check the source. How the model is used →

  • News
  • Insights
  • Ask AI
  • Benchmarks
  • Account