~/talk

Extending Flink state serialization for better performance and smaller checkpoint size

Talkat Flink Forward Europe 2019 · 2019-10-07..10-09
links:none on file
slides:none on file

Shows that Kryo fallback often causes most CPU and state bloat, demonstrates registering custom serializers (protobuf, Scala sealed traits) and replacing string and primitive-array encoders, and gives benchmarks and code on GitHub. Reports a real case where changing serializers and using variable-length encoding and delta encoding cuts state from ~100 GB to ~40 GB and improves throughput; microbenchmarks show simpler string/varint writers run up to ~2x faster. Library published on Maven (flink-adt).

AI-written summary · about

  1. 0:00Introduction
  2. 2:38Stateful aggregations
  3. 3:53State processing
  4. 5:01Flame graph
  5. 10:06Use case
  6. 11:55Why
  7. 13:01Magic
  8. 13:33Micro
  9. 14:17Keys
  10. 14:46Sealed traits
  11. 15:23Sealed traits with Creole
  12. 15:57Scala compiler doesnt know
  13. 16:27Custom type information
  14. 17:04Nested types
  15. 17:34Micro function
  16. 17:47Shapeless
  17. 18:55Shapeless with Scala
  18. 19:49Demo
  19. 21:22Performance
  20. 22:06String Sterilizer
  21. 22:59Strings
  22. 23:59Variable length encoding
  23. 24:28Benchmark results
  24. 24:59The main problem
  25. 26:12Under footprint
  26. 27:03Primitives
  27. 29:35VAR int benchmark
  28. 31:12General results
  29. 31:40How to use
  30. 31:52String civilization
  31. 32:47GitHub
  32. 33:14Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.