Visualize Throttling with Cats
summary
A personal itinerary-to-forecast script that hits a weather API with rate limit 1 call per second is implemented in Node using axios + async/await plus a simple sleep promise to serialize requests; earlier attempts used for‑loops, moment and lodash but were noisy. A React demo animates requests as a cats visualization to show throttling. The final code runs serially and respects the API limit, and OpenAI Codex generates equivalent rate‑limited axios code in seconds.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 6:20Finding an API
- 8:15Writing the Code
- 12:45What is the Event Loop
- 17:05Making Calls
- 20:19Fraud Links
- 25:17Investigate Throttling
- 27:05Explain Throttling
- 35:17Async Each Series
- 39:50Async await
- 42:52Demo
related talks
33mPainting with Data
33mBattle-Tested Techniques for Animation and Data Viz with React
41mData, Design, Code
38mStorytelling with your data
27mScalable Data Visualization
49mSaving the world with JavaScript: A Data Visualization story
44mUsing our Graphics Library to show them analytics!
43mVisualizations using SVG, Canvas, and WebGL in Vue
