#🧱 Building Block: Apache Flink

#Overview

Apache Flink is a distributed stream processing framework designed for stateful computations over bounded (batch) and unbounded (stream) data with true event-time processing and exactly-once semantics.

#Key Concepts

#When to Use

Dimension Flink Spark Streaming
Processing Model True streaming (event-by-event) Micro-batch (small batch intervals)
Latency Sub-second Seconds (batch interval)
Event-Time First-class support Added later, less mature
Exactly-Once Built-in with Kafka Requires careful config
State Management Built-in, managed External (e.g., Redis)

#Trade-offs

#Used In This Repo