Thinking About Your Code: Push vs Pull
summary
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
chapters (9)
- 0:00Push vs pull concepts
- 2:04Live demo: push vs pull
- 5:38Producers and consumers in code
- 7:08Pull types in JavaScript
- 8:15Push types in JavaScript
- 10:47Iterables versus observables
- 14:34Push-pull pattern quadrants
- 17:10Push then pull with signals
- 19:58When to use each pattern effectively








