~/talk

Avoiding Expensive Mishaps with Effective State Management

Talkat React Miami 2025 Β· 2025-04-17..04-18Β· [react, frontend-architecture]
links:none on file
slides:none on file

A junior mistake leads to a $50,000 cloud bill after an un-cached product page repeatedly fires fetches on remount, causing excessive API calls under traffic. The fix shown is explicit: use React Query (TanStack Query) to cache and background-refetch, use Zustand for selective global caching outside React’s render cycle, add alerts and rate limiting, and follow a practical β€œ321 rule” (where state lives, frequency, impact; cache + monitor; simplify). Example site is rebuilt and costs drop.

AI-written summary Β· about

  1. 0:00Introduction and context
  2. 2:30Defining the problem
  3. 3:30Analyzing the mistake
  4. 6:03Technical root cause
  5. 7:25State management overview
  6. 8:42Impact of poor state
  7. 9:53Server state with React Query
  8. 11:30React Query implementation
  9. 12:27Global state with Zustand
  10. 13:13Zustand implementation
  11. 13:58Preventative measures
  12. 14:32The 3-2-1 rule
  13. 15:45Mental health and wrap-up
  14. 19:20Closing and connections
~/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.