~/talk

Thinking About Your Code: Push vs Pull

Talkat dotJS 2024 · on Thursday, 2024-06-27· [reactive-programming]
name:Ben Lesh
github:benlesh
slides:none on file

Code is cast as producers and consumers and categorized into a four-way chart: push vs pull primitives are functions and iterables (pull), callbacks/promises/observables (push), async iterables (pull then push), and signals (push then pull). A live M&M demo shows back pressure when production outpaces consumption. Examples use observables, async/await, async iterators and a real Netflix dashboard handling hundreds of millions of devices across thousands of servers and over half North America bandwidth.

AI-written summary · about

  1. 0:00Push vs pull concepts
  2. 2:04Live demo: push vs pull
  3. 5:38Producers and consumers in code
  4. 7:08Pull types in JavaScript
  5. 8:15Push types in JavaScript
  6. 10:47Iterables versus observables
  7. 14:34Push-pull pattern quadrants
  8. 17:10Push then pull with signals
  9. 19:58When to use each pattern effectively
~/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.