~/talk

The many ways to hold a token

Talkat Code BEAM Lite Amsterdam 2019 · on Thursday, 2019-11-28· [elixir-and-erlang]
links:none on file
links:none on file
slides:none on file

External API issues a short‑lived token that expires every few minutes and authentication has noticeable network latency, so naive reauth for every request doubles calls. Tried four implementations: no cache (works if traffic is low), a task that refreshes into the global app env using Process.sleep is dangerous (shared global state, brittle), a GenServer (blocks or serializes access), and a GenServer writing into ETS for parallel reads with startup races resolved by polling tests; practical winner: GenServer + ETS or no cache depending on load.

AI-written summary · about

  1. 0:00Start
  2. 2:39Token Holding
  3. 3:45Holding a Token
  4. 4:57Refresh Token
  5. 15:06Summary
~/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.