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)−ε governs out-of-order and late data, where
ε is the maximum allowed disorder latency.