Back to AI Infrastructure Mind Map
中文·English
🖥️ AI InfrastructureID: data-pipeline-streaming

Data Pipelines & Streaming

数据管线与流处理
🎯Core Definition
Data pipelines and streaming. Kafka acts as the message bus (ordered per partition, append-only writes + page cache + zero-copy for high throughput; at-least-once / exactly-once consumption semantics), and Flink as a stateful stream engine (event-time windows, watermarks, state backends and checkpoints for exactly-once), emitting second-level real-time features for online inference and feeding a Feature Store aligned with offline features. Batch-stream unification: Lambda (separate batch and stream pipelines — double maintenance and consistency drift) versus Kappa (a single stream pipeline, with batch treated as historical replay of the stream). Data platform layering: ODS (raw ingestion) → DWD (cleaning, normalization, redaction) → DWS (wide tables and aggregated metrics for serving), with lakehouse formats (Iceberg/Hudi/Delta) unifying batch and stream storage. The watermark W=maxseen(tevent)εW = \max_{\text{seen}}(t_{\text{event}}) - \varepsilon governs out-of-order and late data, where ε\varepsilon is the maximum allowed disorder latency.
💡Use Cases
online ML systems (recommendation, risk control, ads) need second-level features; platform layering and warehouse modeling are classic system-design questions; interviews ask about Kafka's throughput mechanics and message semantics, Flink exactly-once, Lambda vs Kappa, and the duties of ODS/DWD/DWS.
Key Problems Solved
versus daily offline batch, end-to-end latency drops from days to seconds (the real-time chain finishes in about one second), letting online models consume the latest user behavior; Kappa unifies batch and stream via replay, removing Lambda's inconsistency and double maintenance; layering unifies metric definitions, clarifies lineage and keeps compliance controllable (redaction at DWD, metric unification at DWS).
🎯5 High-Frequency Exam Points
1
Why is Kafka high-throughput? Partitions, sequential writes and zero-copy; how are at-least-once and exactly-once achieved?
2
How does Flink achieve exactly-once? Checkpoint barriers and two-phase commit?
3
Lambda vs Kappa: tradeoffs and why Kappa is increasingly preferred?
4
Responsibilities of ODS/DWD/DWS and the data flow? Where do redaction and metric unification happen?
5
How to unify online and offline features for train-serve consistency?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "Data Pipelines & Streaming"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardData Loading & IONext CardGPU Hardware & HBM

🔗 More AI Infrastructure Knowledge Cards

Activation Memory EstimationAgent Runtime (cross-module)Autoscaling & CostCheckpointing & Recovery