01Batch vs stream
Batch processing waits for a bounded dataset โ yesterday's file โ then processes it all at once. Simple, but results are only as fresh as the last batch.
Streaming processes an unbounded sequence of events continuously as they arrive: market agents reporting prices from their phones, sensors, clicks. Results update within seconds.
Streaming forces three questions batch never asks: Which time do I group by? When is a result final? What do I do with data that arrives late or twice?