~/talk

Optimizing Streaming SQL Illustrated by TopN in Apache Flink

TalkinRussianat CodeFest 12 · 2022-05-28..05-29· [data-engineering]
links:none on file
slides:none on file

This talk covers implementing a streaming TopN query using SQL on Apache Flink, explaining how stream aggregation works and the challenges involved. It compares TopN implementations on Apache Spark versus Apache Flink to show which performs better and why, and demonstrates simple optimizations that speed up computation by tenfold.

AI-written summary · about

  1. 0:00Introduction
  2. 2:34Problem setup
  3. 5:25Stream aggregation methods
  4. 8:36Kafka Streams attempt
  5. 10:25Switching to Flink and Spark
  6. 11:49Spark Streaming attempt
  7. 15:18Flink implementation results
  8. 16:01Flink TopN internals
  9. 17:45TopN explosion problem
  10. 19:09Benchmarking baseline
  11. 19:51Optimization: Primary key
  12. 22:00Optimization: Exclude rank field
  13. 23:47Optimization: Output buffer
  14. 25:34Future optimizations
  15. 27:40Tool selection advice
  16. 28:23Benchmarking importance
  17. 29:25User expectations
  18. 29:48Code comparison
  19. 30:08Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.