~/talk

Tracking and Triggering Pattern with Spark Stateful Streaming

Talkat ApacheCon@Home 2021 · 2021-09-21..09-23· [data-engineering]
links:none on file
slides:none on file

A long‑running Spark Structured Streaming tracker processes metadata only, grouping incoming events with mapGroupsWithState into accumulator objects and firing HTTP or Kafka triggers (e.g., a 1GB trigger threshold or >2k files) to start short‑lived Spark workers that compact, consolidate or clean data. The system achieves exactly-once processing, scales by adding executors, handles failed triggers by retaining state, processes hundreds of thousands of metadata records per minute while workers touch tens of millions of data rows, runs 2–3 years in production with minimal incidents and costs about $25k/year.

AI-written summary · about

  1. 0:00Introduction
  2. 1:58Adobe Experience Platform overview
  3. 3:26Control plane vs data plane
  4. 5:12Tracking and triggering pattern
  5. 7:18Why Spark Stateful Streaming
  6. 9:03Tracker architecture components
  7. 10:48Serialization and augmentation
  8. 13:17Accumulator row groups
  9. 15:01MapGroupWithState function
  10. 16:49Triggering rules and actions
  11. 18:54Timeline of data processing
  12. 22:03Complexities and weak points
  13. 24:10Use cases for the pattern
  14. 26:19Cost and resource analysis
  15. 27:25Demo introduction
  16. 37:34Q&A session
~/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.