~/talk

The Eventful API: Rethinking Frontend State from the Server Down

Talkat UtahJS Conf 2025 · on Friday, 2025-09-12· [api-design, frontend-architecture]
slides:none on file

Proposes that mutate endpoints return explicit events describing every state change so the frontend applies targeted mutations instead of re-fetching objects; demos a todo app and an Eventful API pattern implemented with an Express middleware that accumulates emits and attaches an events list to JSON responses. Shows alternatives: WebSockets, Server-Sent Events, and a hybrid stream, notes testing becomes simpler, and warns about race conditions solved by DB timestamps or a code‑check roundtrip to ensure correct ordering.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17The state synchronization issue
  3. 4:34Architectural principles
  4. 8:27Orchestration vs choreography
  5. 9:55Transitioning to eventful APIs
  6. 11:53Implementing event-driven flows
  7. 14:32Event delivery mechanisms
  8. 17:38Managing race conditions
~/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.