internalsGet Pro

Data Engineering · Module 10

Stream processing with Flink

Lessons
13
Free
0
Reading
~4 h

Your progress

0 / 13 lessons done

Sign in to track

Lessons

  1. Stream processing: computing on data in motionLive dashboards, fraud signals and real-time features all need counts that stay correct while events keep arriving and machines keep failing. A stream processor such as Flink is where most data teams put that logic, instead of writing their own consumer loop for each metric.14 min
  2. Event time vs processing timeEvery streaming job that counts per minute or per second has to pick a clock. Pick the wrong one and the numbers look fine on a quiet day, then jump the moment the job restarts or falls behind.16 min
  3. Windows: tumbling, sliding and sessionEvery live count on a stream, from a dashboard tile to a fraud signal, is a window. The type you pick decides how fresh the number is, how many rows you write and how much memory the job holds, and a wrong argument order gives a number that looks fine and means something else.17 min
  4. Watermarks: deciding when late events stop countingEvery event-time job decides, millisecond by millisecond, when it has seen enough to publish a result. Get the watermark wrong and a dashboard either freezes, as Kartly’s did for four hours, or quietly undercounts every minute.17 min
  5. Stateful stream processing and state backendsEvery streaming job that counts, joins or remembers anything keeps state. Where that state lives, and whether it ever shrinks, decides whether the job runs for months or falls over a week after launch.18 min
  6. Checkpoints: recovering without losing resultsEvery streaming job crashes sooner or later. Whether the numbers people read stay right after the restart depends on the checkpoint, the sink and how the job is upgraded, not on the crash.18 min
  7. Flink architecture: jobs, tasks and slotsEvery Flink job you deploy asks you for a parallelism and a number of slots, and every streaming outage you debug happens in one of its processes. Knowing how operators become tasks and tasks land in slots is how you size a job for a sale, and how you read its web UI when it falls behind.17 min
  8. Flink SQL: streaming with SQLMany streaming jobs are a source, a filter, a window and a sink, and SQL says that in a dozen lines that analysts can read and review. The catch is that some SQL queries keep changing their answers, and your sink decides whether that works or fails.17 min
  9. Stream joins and enrichmentAlmost every streaming job needs data its events don’t carry: a category, a customer’s tier, the order that followed a click. The join you pick decides how much state the job holds, how much load it puts on a database, and whether a replay gives the same answer twice.18 min
  10. Flink, Spark Streaming or Kafka StreamsMost teams that start streaming already run Spark or Kafka. Before adding a third system, someone asks whether the tools they have can do the job, and the honest answer depends on the job’s latency, its state and who will run it.17 min
  11. Scaling and operating streaming jobsA streaming job that works on a normal day meets its real test at the busiest hour of the year. The engineer on call has minutes to find which operator is slow, whether more machines will help, and how to add them without losing the job’s state.18 min
  12. Case: Razorpay’s fraud checks in 200 ms with FlinkFraud checks, credit decisions and abuse filters all need a verdict while a person waits, built from that person’s recent history. Razorpay’s design shows which parts of that problem a stream processor solves well, and which ones it moves somewhere else.18 min
  13. Design: real-time fraud signals for paymentsFraud checks, rate limits and “too many tries” warnings all need a count that is seconds old, read in a few milliseconds, inside someone else’s request. Building one means choosing where the count is made, where it is stored, and what the request does when either is missing.30 min

Practise with

No tools or paper guides for this module yet.

Terms this module teaches 46

Open glossary

Allowed lateness

How long after a window fires a stream processor still accepts its late events and fires the window again with updated results.