~/talk

Taming WebSocket with Scarlet

Talkat Mobile Era 2018 · 2018-11-01..11-02· [android, networking]
linkedin:zhxnlai
slides:none on file

Tinder’s Scarlet is an extensible Kotlin library (Retrofit-inspired) that turns a WebSocket API into a declarative interface so a GDAX subscribe/receive flow emits tickers as a Flowable with about ten lines of code. It plugs into any WebSocket factory (example: OKHttp), uses Moshi adapters or Jackson/Gson for serialization, converts streams to RxJava or coroutines, and coordinates lifecycle plus exponential backoff retry strategies. Scarlet runs a state machine, ships from Tinder to thousands of devices, and reports eight months in production with zero issues while swapping protocols or parsers in one line.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08Why WebSocket matters
  3. 7:59WebSocket challenges on Android
  4. 13:11Introducing Scarlet library
  5. 16:55Real-world Bitcoin demo
  6. 21:46Scarlet plugins explained
  7. 26:36Scarlet in production at Tinder
  8. 29:54State machine in Scarlet
  9. 32:33Scarlet v2 and future plans
  10. 36:16Summary and Q&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.