I would like to do a small intro to GenServer and also GenStage to solve a real world problem. Using GenServer I will build a Leaky Bucket API emulator and the use GenStage to optimize the requests against the API. The real world problem I was solving was making sure I was maxing out my requests against the Shopify API.
The code is short enough to do it live, which might be a nice opportunity to give an intro to how GenServer works.