internalsGet Pro

Module 10 · Lesson 8 of 13Pro

Flink SQL: streaming with SQL

Level
Intermediate
Topic
Stream processing with Flink
Reading time
17 min

When you finish this page you can

  1. Declare a Kafka topic with Avro values from a schema registry as a Flink SQL table, with event time and a watermark.
  2. Write a windowed aggregate that emits each result once, and explain when Flink emits it.
  3. Explain why a plain GROUP BY over a stream produces a changelog: inserts, retractions and updates.
  4. Choose a sink, or a different query, for a result that keeps changing.
  1. Event schemas and the schema registry17 min
  2. Windows: tumbling, sliding and session17 min
  3. Watermarks: deciding when late events stop counting17 min
  4. Checkpoints: recovering without losing results18 min

Twelve lines of SQL, then a refusal

is an online store in India. Its apps send about 200 million a day into the Kafka topic kartly.clicks. Meera, a data engineer, is building live-dashboard: a job that counts product views and add-to-carts per product every 10 seconds and writes them to ClickHouse. The dashboard team watches those numbers during sales.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan