~/talk

Marrying Kafka and Kotlin/Native: The Amazing Adventures of a Java Dev in Kotlin/Native

TalkinRussianat Joker 2022 · 2022-11-08..11-19· [kotlin, distributed-systems]
links:none on file
slides:none on file

A Java developer describes implementing a Kafka client for Kotlin/Native, covering what a Kafka client does and why they needed a native Kotlin implementation. The talk explains C interop challenges with a native library, how Kotlin Native coroutines differ and how to avoid common pitfalls, and how to structure a Kotlin MPP project on Gradle so the client works; it finishes with a demo using the client as a library.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07Kafka and Kotlin/Native
  3. 3:14What is a Kafka client
  4. 5:53Why build a Kafka client
  5. 6:57Project structure
  6. 9:50Why librdkafka
  7. 10:32Kotlin/Native advantages
  8. 13:30Kotlin/Native disadvantages
  9. 14:14Multiplatform setup
  10. 17:13Linking issues and fixes
  11. 19:27Variadic functions problems
  12. 21:17Handling varargs in interop
  13. 28:51Working with pointers
  14. 33:02Coroutines multithreading
  15. 38:36Consumer polling strategy
  16. 40:50Workers vs threads
  17. 43:50Live demo and code
  18. 48:01Q&A
~/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.