sagelearnai

Stream and Batch Processing

Many designs include counting, aggregating or analysing large volumes of events: view counts, trending topics, fraud signals, billing. You need to choose between batch (complete, cheap, delayed) and stream (fresh, more complex), and know the core streaming ideas: windows, event time and late data.

In this lesson

  • Learning objectives
  • Batch vs stream
  • Windows and time
  • Exactly-once results
  • Example: YouTube-style view counts
  • Self-check

Questions covered

  1. Design trending hashtags for the last hour.
  2. When choose batch over stream?

This lesson is part of System Design Interview: Concepts, Patterns & Real Designs. Unlock the full course to read it, take the quiz and track your progress.

See plans →

Last reviewed 2026-11-05.