~/talk

FUNCTIONAL PROGRAMMING AND KAFKA: DO THEY MIX?

Talkat Scalar Conference 2023 · 2023-03-23..03-24· [kubernetes]
links:none on file
slides:none on file

Functional Scala integrates with Kafka using concrete libraries and patterns: examples use FS2 Kafka with cats-effect resources, reuse a single producer, and convert consumer.records into an FS2 stream that mapAsync processes with concurrency 10 to produce and then commit offsets. The demo builds an enrich-and-publish pipeline that composes producer+consumer resources, runs an HTTP server and the Kafka pipeline concurrently with racePair/fibers, parallelizes partitions via partitionStream + powerJoinUnbounded, and recommends commitBatchWithin (500 msgs or 15s) to avoid frequent commits.

AI-written summary · about

  1. 0:00Start
  2. 1:22Kafka Overview
  3. 2:11Kafka Architecture
  4. 3:05Kafka Workflow
  5. 8:16Kafka Summary
  6. 9:06Why Scala & Streaming?
  7. 11:49Scala & Kafka - Creating Producer
  8. 12:25Scala & Kafka - Creating Consumer
  9. 12:44Scala & Kafka - Combining Resources
  10. 20:13Performance tips
  11. 20:41Parallel partition processing
  12. 22:12Batching offset commits
~/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.