~/talk

How to build a Clean SSEClient Flow

Talkat droidcon Berlin 2023 · 2023-07-05..07-07· [android, reactive-programming]
links:none on file
slides:none on file

Claim: a Kotlin-based client uses Server-Sent Events (SSE) + StateFlow inside a Clean Architecture to deliver real-time updates with minimal complexity. The system opens one SSE HTTP stream, exposes a hot StateFlow from the data layer, and propagates parsed events through repository and use cases to ViewModel and UI. A sample app is implemented and ported between Just Eat Takeaway and Just Eat for live order and driver location tracking, it continuously receives many events and the demo shows it working reliably.

AI-written summary · about

  1. 0:00Introduction and use cases
  2. 1:49Choosing client-server communication
  3. 6:23Clean architecture layers
  4. 9:52Streaming data options
  5. 15:55Implementing StateFlow
  6. 17:39Sequence diagram walkthrough
  7. 19:46Closing and resources
~/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.